From 77cec04933dec211624998a1d34a6c11562c2ece Mon Sep 17 00:00:00 2001 From: young Date: Tue, 22 Oct 2013 21:03:08 +0000 Subject: [PATCH] Release one self-fixed subroutine. git-svn-id: https://svn.dealii.org/branches/branch_petscscalar_complex@31392 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/include/deal.II/lac/block_vector_base.h | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/deal.II/include/deal.II/lac/block_vector_base.h b/deal.II/include/deal.II/lac/block_vector_base.h index bad6b91390..ede21a4ed2 100644 --- a/deal.II/include/deal.II/lac/block_vector_base.h +++ b/deal.II/include/deal.II/lac/block_vector_base.h @@ -2567,16 +2567,15 @@ void BlockVectorBase::extract_subvector_to (const std::vector template inline -void BlockVectorBase::extract_subvector_to (ForwardIterator indices_begin, - const ForwardIterator indices_end, - OutputIterator values_begin) const +void BlockVectorBase::extract_subvector_to (ForwardIterator indices_begin, + const ForwardIterator indices_end, + OutputIterator values_begin) const { - /* @whattodo */ - /* while (indices_begin != indices_end) { */ - /* *values_begin = operator()(*indices_begin); */ - /* indices_begin++; values_begin++; */ - /* } */ - Assert ((false), ExcMessage ("This function is corrupt: @whattodo")); + while (indices_begin != indices_end) + { + *values_begin = operator()(*indices_begin); + indices_begin++; values_begin++; + } } #endif // DOXYGEN -- 2.39.5