From 1d42df88f5c1d3c7a36c9bd37821549eaf965d39 Mon Sep 17 00:00:00 2001 From: DennisGlaeser <dennis.glaeser@iws.uni-stuttgart.de> Date: Fri, 9 Feb 2018 13:06:46 +0100 Subject: [PATCH] [mpfa-o][localassembler] fix gravity container size assertion --- .../discretization/cellcentered/mpfa/omethod/localassembler.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dumux/discretization/cellcentered/mpfa/omethod/localassembler.hh b/dumux/discretization/cellcentered/mpfa/omethod/localassembler.hh index 50116c73c6..7cb4fa1b2e 100644 --- a/dumux/discretization/cellcentered/mpfa/omethod/localassembler.hh +++ b/dumux/discretization/cellcentered/mpfa/omethod/localassembler.hh @@ -591,7 +591,7 @@ public: const auto& wijk = iv.omegas()[localScvfIdx][idxInOutside+1]; // make sure the given outside gravity container has the right size - assert(outsideG[pIdx][localScvfIdx].size() == iv.localScvf(localScvfIdx).neighboringLocalScvIndices().size()); + assert(outsideG[pIdx][localScvfIdx].size() == iv.localScvf(localScvfIdx).neighboringLocalScvIndices().size()-1); // add contributions from all local directions for (LocalIndexType localDir = 0; localDir < IV::Traits::GridView::dimension; localDir++) -- GitLab