16 std::optional<BaseLib::ConfigTree> config =
22 return std::make_unique<MeshGeoToolsLib::SearchLength>();
26 std::string
const type = config->getConfigParameter<std::string>(
"type");
32 auto const length = config->getConfigParameter<
double>(
"value");
33 return std::make_unique<MeshGeoToolsLib::SearchLength>(length);
35 if (type ==
"heuristic")
38 return std::make_unique<HeuristicSearchLength>(mesh);
40 OGS_FATAL(
"Unknown search length algorithm type '{:s}'.", type);