]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Apply suggestions from code review 14591/head
authorLuca Heltai <luca.heltai@sissa.it>
Tue, 20 Dec 2022 16:42:33 +0000 (17:42 +0100)
committerGitHub <noreply@github.com>
Tue, 20 Dec 2022 16:42:33 +0000 (17:42 +0100)
Co-authored-by: David Wells <drwells@email.unc.edu>
doc/news/changes/minor/20221220StefanoZampini
source/lac/petsc_matrix_base.cc

index ef85a859634a47edd9636a111ee059a6fcf6b828..f21b3b552c6b72222b73cae0c376234d122dfad8 100644 (file)
@@ -1,4 +1,4 @@
 Fixed: Small fixes to commnicator handling in PETSc classes. Move from 
 GetArray to GetArrayRead (threadsafe version).
 <br>
-(StefanZampini, 2022/12/20)
+(StefanZampini, 2022/12/20)
index 6bcede476fd0e8da70fb62668fb530ce3228dc5a..e9b2b5fb011633cd05b4c3c4250f60cdc160e20e 100644 (file)
@@ -639,7 +639,7 @@ namespace PETScWrappers
   MatrixBase::write_ascii(const PetscViewerFormat format)
   {
     assert_is_compressed();
-    MPI_Comm comm = PetscObjectComm((PetscObject)matrix);
+    MPI_Comm comm = PetscObjectComm(reinterpret_cast<PetscObject>(matrix));
 
     // Set options
     PetscErrorCode ierr =

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.