From 8290dd278b82a018d3d632cddfffefeaf69262fc Mon Sep 17 00:00:00 2001 From: Timo Koch Date: Thu, 28 Apr 2022 12:43:08 +0200 Subject: [PATCH 1/2] [tpfa][gg] Make sure hasBoundaryScvf_ is properly reinitialized in update --- dumux/discretization/cellcentered/tpfa/fvgridgeometry.hh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dumux/discretization/cellcentered/tpfa/fvgridgeometry.hh b/dumux/discretization/cellcentered/tpfa/fvgridgeometry.hh index 8c5e6c6702..0271c2cc06 100644 --- a/dumux/discretization/cellcentered/tpfa/fvgridgeometry.hh +++ b/dumux/discretization/cellcentered/tpfa/fvgridgeometry.hh @@ -238,7 +238,7 @@ private: scvs_.resize(numScvs); scvfs_.reserve(numScvf); scvfIndicesOfScv_.resize(numScvs); - hasBoundaryScvf_.resize(numScvs, false); + hasBoundaryScvf_.assign(numScvs, false); // Build the scvs and scv faces GridIndexType scvfIdx = 0; @@ -347,7 +347,7 @@ private: } } - // build the connectivity map for an effecient assembly + // build the connectivity map for an efficient assembly connectivityMap_.update(*this); } -- GitLab From 6f62f83028163a09910d3dbfb512a11b018f1fac Mon Sep 17 00:00:00 2001 From: Timo Koch Date: Thu, 28 Apr 2022 12:45:10 +0200 Subject: [PATCH 2/2] [tpfa][gg] Fix typos --- dumux/discretization/cellcentered/tpfa/fvgridgeometry.hh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dumux/discretization/cellcentered/tpfa/fvgridgeometry.hh b/dumux/discretization/cellcentered/tpfa/fvgridgeometry.hh index 0271c2cc06..eed6d01c69 100644 --- a/dumux/discretization/cellcentered/tpfa/fvgridgeometry.hh +++ b/dumux/discretization/cellcentered/tpfa/fvgridgeometry.hh @@ -531,7 +531,7 @@ private: neighborVolVarIndexSet.reserve(numLocalFaces); // for network grids there might be multiple intersection with the same geometryInInside - // we indentify those by the indexInInside for now (assumes conforming grids at branching facets) + // we identify those by the indexInInside for now (assumes conforming grids at branching facets) std::vector outsideIndices; if (dim < dimWorld) { @@ -590,7 +590,7 @@ private: neighborVolVarIndices_[eIdx] = neighborVolVarIndexSet; } - // build the connectivity map for an effecient assembly + // build the connectivity map for an efficient assembly connectivityMap_.update(*this); } -- GitLab