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);
Functionality to build different search length algorithm objects from given config.
Interface for heuristic search length strategy.
Base class for different search length strategies.
std::optional< ConfigTree > getConfigSubtreeOptional(std::string const &root) const