]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Ack, do it right this time :-(
authorbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 27 Mar 2013 22:16:10 +0000 (22:16 +0000)
committerbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 27 Mar 2013 22:16:10 +0000 (22:16 +0000)
git-svn-id: https://svn.dealii.org/branches/branch_bigger_global_dof_indices_4@29093 0785d39b-7218-0410-832d-ea1e28bc413d

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

index 639a5c508105843365b32c926636b047628d7826..2740b3c509f9792c9f563e15c03bc7f557847152 100644 (file)
@@ -1513,18 +1513,15 @@ namespace TrilinosWrappers
   std::pair<VectorBase::size_type, VectorBase::size_type>
   VectorBase::local_range () const
   {
-     begin, end;
 #ifndef DEAL_II_USE_LARGE_INDEX_TYPE
     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
     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 == n_elements,
+    Assert (end-begin == vector->Map().NumMyElements(),
             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."));

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.