Skip to content
Snippets Groups Projects
Commit 1760ab2b authored by Robert K's avatar Robert K
Browse files

[feature][GridPtr] Added test for UGGrid and GridPtr using gmsh files.

parent 3beccf81
No related branches found
No related tags found
1 merge request!312GridPtr can also read gmsh files and then handle the load balance of user data.
Pipeline #22453 passed
......@@ -477,6 +477,7 @@ namespace Dune
{
if(intersection.boundary())
{
// DGFBoundaryParameter::type is of type string.
bndParam_[intersection.boundarySegmentIndex()] = std::to_string(boundaryIds[factory.insertionIndex(intersection)]);
}
}
......
......@@ -29,3 +29,8 @@ dune_add_test(NAME test-dgf-ug
SOURCES test-dgf-ug.cc
COMPILE_DEFINITIONS DUNE_GRID_EXAMPLE_GRIDS_PATH=\"${PROJECT_SOURCE_DIR}/doc/grids/\"
CMAKE_GUARD dune-uggrid_FOUND)
dune_add_test(NAME test-dgf-gmsh-ug
SOURCES test-dgf-ug.cc
COMPILE_DEFINITIONS DUNE_GRID_EXAMPLE_GRIDS_PATH=\"${PROJECT_SOURCE_DIR}/doc/grids/\" DGFTEST_USE_GMSH=1
CMAKE_GUARD dune-uggrid_FOUND)
......@@ -88,8 +88,13 @@ void runDGFTest(int argc, char ** argv)
else
{
std::stringstream namestr;
#ifdef DGFTEST_USE_GMSH
namestr << "hybrid-testgrid-" << GridType::dimension << "d.msh";
filename = std::string( DUNE_GRID_EXAMPLE_GRIDS_PATH ) + "gmsh/" + namestr.str();
#else
namestr << "test" << GridType::dimension << "d.dgf";
filename = std::string( DUNE_GRID_EXAMPLE_GRIDS_PATH ) + "dgf/" + namestr.str();
#endif
}
std::cout << "tester: start grid reading; file " << filename << 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