From: Matthias Maier Date: Mon, 4 May 2015 08:19:41 +0000 (+0200) Subject: Bugfix: Implement TrilinosWrappers::BlockVector::swap for different block sizes X-Git-Tag: v8.3.0-rc1~202^2~6 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=96d5157562fa3617d6005b138728a0868f1cab23;p=dealii.git Bugfix: Implement TrilinosWrappers::BlockVector::swap for different block sizes --- diff --git a/include/deal.II/lac/trilinos_parallel_block_vector.h b/include/deal.II/lac/trilinos_parallel_block_vector.h index 9539aef1db..3392bd4a98 100644 --- a/include/deal.II/lac/trilinos_parallel_block_vector.h +++ b/include/deal.II/lac/trilinos_parallel_block_vector.h @@ -468,11 +468,9 @@ namespace TrilinosWrappers void BlockVector::swap (BlockVector &v) { - Assert (n_blocks() == v.n_blocks(), - ExcDimensionMismatch(n_blocks(),v.n_blocks())); + std::swap(this->components, v.components); - for (unsigned int row=0; rowblock_indices, v.block_indices); }