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