From: bangerth Date: Wed, 27 Mar 2013 22:16:10 +0000 (+0000) Subject: Ack, do it right this time :-( X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1d6023e130eb2c52929eb90e7added844bd84cd3;p=dealii-svn.git Ack, do it right this time :-( git-svn-id: https://svn.dealii.org/branches/branch_bigger_global_dof_indices_4@29093 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/include/deal.II/lac/trilinos_vector_base.h b/deal.II/include/deal.II/lac/trilinos_vector_base.h index 639a5c5081..2740b3c509 100644 --- a/deal.II/include/deal.II/lac/trilinos_vector_base.h +++ b/deal.II/include/deal.II/lac/trilinos_vector_base.h @@ -1513,18 +1513,15 @@ namespace TrilinosWrappers std::pair 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."));