From 25e56fc3a646b2a92c7f485a5b6eb625ab8f1348 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dennis=20Gl=C3=A4ser?= <dennis.glaeser@iws.uni-stuttgart.de> Date: Thu, 2 Sep 2021 12:31:34 +0200 Subject: [PATCH] [mpfa][gridgeom] reinitialize things in update --- dumux/discretization/cellcentered/mpfa/fvgridgeometry.hh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dumux/discretization/cellcentered/mpfa/fvgridgeometry.hh b/dumux/discretization/cellcentered/mpfa/fvgridgeometry.hh index b9969e5819..f29ba01a91 100644 --- a/dumux/discretization/cellcentered/mpfa/fvgridgeometry.hh +++ b/dumux/discretization/cellcentered/mpfa/fvgridgeometry.hh @@ -251,11 +251,11 @@ private: scvs_.resize(numScvs); scvfs_.reserve(numScvf); scvfIndicesOfScv_.resize(numScvs); - hasBoundaryScvf_.resize(numScvs, false); + hasBoundaryScvf_.assign(numScvs, false); // Some methods require to use a second type of interaction volume, e.g. // around vertices on the boundary or branching points (surface grids) - secondaryInteractionVolumeVertices_.resize(numVert, false); + secondaryInteractionVolumeVertices_.assign(numVert, false); // find vertices on processor boundaries const auto isGhostVertex = MpfaHelper::findGhostVertices(this->gridView(), this->vertexMapper()); @@ -639,7 +639,7 @@ private: // Some methods require to use a second type of interaction volume, e.g. // around vertices on the boundary or branching points (surface grids) const auto numVert = this->gridView().size(dim); - secondaryInteractionVolumeVertices_.resize(numVert, false); + secondaryInteractionVolumeVertices_.assign(numVert, false); // find vertices on processor boundaries HERE!! isGhostVertex_ = MpfaHelper::findGhostVertices(this->gridView(), this->vertexMapper()); -- GitLab