From bbdc0ede132223f1b79627372366ed194bcfad5c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dennis=20Gl=C3=A4ser?= <dennis.glaeser@iws.uni-stuttgart.de> Date: Thu, 4 Feb 2021 13:44:51 +0100 Subject: [PATCH] [test][box] test new scvf interfaces --- test/discretization/box/test_boxfvgeometry.cc | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/test/discretization/box/test_boxfvgeometry.cc b/test/discretization/box/test_boxfvgeometry.cc index bc9b3d1318..deda9c9797 100644 --- a/test/discretization/box/test_boxfvgeometry.cc +++ b/test/discretization/box/test_boxfvgeometry.cc @@ -107,6 +107,15 @@ int main (int argc, char *argv[]) ++boundaryCount; std::cout << " (on boundary)."; } + + // verify that boundary faces have no neighbor + if (scvf.boundary() && scvf.numOutsideScvs() != 0) + DUNE_THROW(Dune::Exception, "Boundary face states that it has a neighbor"); + + // verify that non-boundary faces have a single neighbor + if (!scvf.boundary() && scvf.numOutsideScvs() != 1) + DUNE_THROW(Dune::Exception, "Expected non-boundary face to have a single neighbor"); + std::cout << std::endl; } -- GitLab