]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Use PetscScalar when compressing vectors. 16147/head
authorDavid Wells <drwells@email.unc.edu>
Sun, 15 Oct 2023 19:35:28 +0000 (15:35 -0400)
committerDavid Wells <drwells@email.unc.edu>
Sun, 15 Oct 2023 19:35:28 +0000 (15:35 -0400)
include/deal.II/lac/petsc_vector_base.h

index d936d92aa5dcbb213170955386082c6b3a03d70e..d60193581c60de42c504bfd24206b5ff2f4f404e 100644 (file)
@@ -1321,7 +1321,7 @@ namespace PETScWrappers
     int                ierr  = VecGetArrayRead(*this, &array);
     AssertThrow(ierr == 0, ExcPETScError(ierr));
 
-    boost::serialization::array_wrapper<const double> wrapper(
+    boost::serialization::array_wrapper<const PetscScalar> wrapper(
       array, locally_owned_size());
     ar &wrapper;
 
@@ -1360,9 +1360,9 @@ namespace PETScWrappers
     int          ierr  = VecGetArray(petsc_vector(), &array);
     AssertThrow(ierr == 0, ExcPETScError(ierr));
 
-    boost::serialization::array_wrapper<double> velocity_wrapper(
+    boost::serialization::array_wrapper<PetscScalar> wrapper(
       array, locally_owned_size());
-    ar &velocity_wrapper;
+    ar &wrapper;
 
     ierr = VecRestoreArray(petsc_vector(), &array);
     AssertThrow(ierr == 0, ExcPETScError(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.