Skip to content
Snippets Groups Projects
Commit bbdc0ede authored by Dennis Gläser's avatar Dennis Gläser Committed by Timo Koch
Browse files

[test][box] test new scvf interfaces

parent 2bc75ebf
No related branches found
No related tags found
1 merge request!2469Feature/box scvf num outside scvs
...@@ -107,6 +107,15 @@ int main (int argc, char *argv[]) ...@@ -107,6 +107,15 @@ int main (int argc, char *argv[])
++boundaryCount; ++boundaryCount;
std::cout << " (on boundary)."; 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; std::cout << std::endl;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment