]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Fix merge conflict.
authorbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 27 Mar 2013 22:12:06 +0000 (22:12 +0000)
committerbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 27 Mar 2013 22:12:06 +0000 (22:12 +0000)
git-svn-id: https://svn.dealii.org/branches/branch_bigger_global_dof_indices_4@29092 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/include/deal.II/lac/trilinos_vector_base.h

index 51d06b880a50c674cd8c98e79ddff1cbcd417268..639a5c508105843365b32c926636b047628d7826 100644 (file)
@@ -1513,23 +1513,22 @@ namespace TrilinosWrappers
   std::pair<VectorBase::size_type, VectorBase::size_type>
   VectorBase::local_range () const
   {
-    TrilinosWrappers::types::int_type begin, end;
+     begin, end;
 #ifndef DEAL_II_USE_LARGE_INDEX_TYPE
-    begin = vector->Map().MinMyGID();
-    end = vector->Map().MaxMyGID()+1;
-<<<<<<< .working
+    const TrilinosWrappers::types::int_type begin = vector->Map().MinMyGID();
+    const TrilinosWrappers::types::int_type end = vector->Map().MaxMyGID()+1;
+    const TrilinosWrappers::types::int_type n_elements = vector->Map().NumMyElements();
 #else
-    begin = vector->Map().MinMyGID64();
-    end = vector->Map().MaxMyGID64()+1;
+    const TrilinosWrappers::types::int_type begin = vector->Map().MinMyGID64();
+    const TrilinosWrappers::types::int_type end = vector->Map().MaxMyGID64()+1;
+    const TrilinosWrappers::types::int_type n_elements = vector->Map().NumMyElements64();
 #endif
-=======
 
-    Assert (end-begin == vector->Map().NumMyElements(),
+    Assert (end-begin == n_elements,
             ExcMessage ("This function only makes sense if the elements that this "
                         "vector stores on the current processor form a contiguous range. "
                         "This does not appear to be the case for the current vector."));
 
->>>>>>> .merge-right.r29088
     return std::make_pair (begin, end);
   }
 

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.