]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
When reinit-ing vectors, do not assume that we should create a new equidistributed...
authorbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Sat, 18 Oct 2008 04:01:20 +0000 (04:01 +0000)
committerbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Sat, 18 Oct 2008 04:01:20 +0000 (04:01 +0000)
git-svn-id: https://svn.dealii.org/trunk@17273 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/lac/source/trilinos_vector.cc

index 5e4ad408fee7d0d6d5bf380780bd19be872587bb..caa5d8d56f2cde15925d82ae62f96ba96c14ee77 100755 (executable)
@@ -118,7 +118,10 @@ namespace TrilinosWrappers
         {
          vector.reset();
          if (map.SameAs(v.vector->Map()) == false)
-           map = Epetra_Map(v.vector->GlobalLength(),0,v.vector->Comm());
+           map = Epetra_Map(v.vector->Map().NumGlobalElements(),
+                            v.vector->Map().NumMyElements(),
+                            v.vector->Map().IndexBase(),
+                            v.vector->Map().Comm());
 
          vector = std::auto_ptr<Epetra_FEVector> (new Epetra_FEVector(map));
          last_action = Zero;

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.