Commit f5073838 authored by Andreas Nüßing's avatar Andreas Nüßing

do not use geometry adaption if subgrid is unavailable

parent 41a4d6ec
......@@ -25,8 +25,12 @@ namespace duneuro
data, config, dataTree);
} else if (elementType == "hexahedron") {
if (config.get("geometry_adapted", false)) {
#if HAVE_DUNE_SUBGRID
return Dune::Std::make_unique<FittedDipoleStatistics<dim, ElementType::hexahedron, true>>(
data, config, dataTree);
#else
DUNE_THROW(Dune::Exception, "geometry adaption needs dune-subgrid");
#endif
} else {
return Dune::Std::make_unique<FittedDipoleStatistics<dim, ElementType::hexahedron,
false>>(data, config, dataTree);
......@@ -52,8 +56,12 @@ namespace duneuro
data, config, dataTree);
} else if (elementType == "hexahedron") {
if (config.get("geometry_adapted", false)) {
#if HAVE_DUNE_SUBGRID
return Dune::Std::make_unique<FittedDipoleStatistics<dim, ElementType::hexahedron, true>>(
data, config, dataTree);
#else
DUNE_THROW(Dune::Exception, "geometry adaption needs dune-subgrid");
#endif
} else {
return Dune::Std::make_unique<FittedDipoleStatistics<dim, ElementType::hexahedron,
false>>(data, config, dataTree);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment