MCPcopy Create free account
hub / github.com/SeisSol/SeisSol / readYamlParams

Function readYamlParams

src/Main.cpp:81–91  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

79
80namespace {
81std::shared_ptr<YAML::Node> readYamlParams(const std::string& parameterFile) {
82 // Read parameter file input from file
83 fty::Loader<fty::AsLowercase> loader{};
84 std::shared_ptr<YAML::Node> inputParams = nullptr;
85 try {
86 inputParams = std::make_shared<YAML::Node>(loader.load(parameterFile));
87 } catch (const std::exception& error) {
88 logError() << "Error while reading the parameter file:" << std::string(error.what());
89 }
90 return inputParams;
91}
92} // namespace
93
94int main(int argc, char* argv[]) {

Callers 1

mainFunction · 0.85

Calls 1

loadMethod · 0.80

Tested by

no test coverage detected