]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix a bug with petsc in readwritevector. 1659/head
authorBruno Turcksin <bruno.turcksin@gmail.com>
Wed, 23 Sep 2015 17:55:37 +0000 (12:55 -0500)
committerBruno Turcksin <bruno.turcksin@gmail.com>
Wed, 23 Sep 2015 17:55:37 +0000 (12:55 -0500)
include/deal.II/lac/read_write_vector.templates.h

index 550c772ea8f0b60d6d457d0ae8a0015578d11f95..b8443166ba82ad728508115cccbfb04a1b26e093 100644 (file)
@@ -145,7 +145,7 @@ namespace LinearAlgebra
     int ierr = VecGetArray (static_cast<const Vec &>(petsc_vec), &start_ptr);
     AssertThrow (ierr == 0, ExcPETScError(ierr));
 
-    const size_type vec_size = local_size();
+    const size_type vec_size = petsc_vec.local_size();
     internal::copy_petsc_vector (start_ptr, start_ptr + vec_size, begin());
 
     // restore the representation of the vector

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.