]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
fix broken PETScWrappers::MPI::Vector::print() in parallel
authorheister <heister@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 21 Jan 2014 15:44:16 +0000 (15:44 +0000)
committerheister <heister@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 21 Jan 2014 15:44:16 +0000 (15:44 +0000)
git-svn-id: https://svn.dealii.org/trunk@32280 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/source/lac/petsc_vector_base.cc

index 5f4bd0118c421fd838540fd4f2dd673ae9614aa4..3233797c69efbaea90e0eefcc46e9a6aa1f27758 100644 (file)
@@ -1036,10 +1036,10 @@ namespace PETScWrappers
       out.setf (std::ios::fixed, std::ios::floatfield);
 
     if (across)
-      for (size_type i=0; i<size(); ++i)
+      for (size_type i=0; i<local_size(); ++i)
         out << val[i] << ' ';
     else
-      for (size_type i=0; i<size(); ++i)
+      for (size_type i=0; i<local_size(); ++i)
         out << val[i] << std::endl;
     out << std::endl;
 

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.