Commit 4aaa971b authored by Bernd Flemisch's avatar Bernd Flemisch

[gridptr] resize boundary id and parameter vectors after load balance

Both the number of faces and the number of boundary segments may
change during load balance. Resize the corresponding vectors,
consistent with the initialization in lines 363ff.
parent 4d59919f
Pipeline #8150 passed with stage
in 55 minutes and 54 seconds
......@@ -486,6 +486,9 @@ namespace Dune
gridPtr_.elParam_.resize( indexSet.size( 0 ) );
if( gridPtr_.nofVtxParam_ > 0 )
gridPtr_.vtxParam_.resize( indexSet.size( dimension ) );
gridPtr_.bndId_.resize( indexSet.size( 1 ) );
if( gridPtr_.haveBndParam_ )
gridPtr_.bndParam_.resize( gridPtr_->numBoundarySegments() );
for( const auto &element : elements( gridView, Partitions::all ) )
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment