Skip to content

Commit

Permalink
comments
Browse files Browse the repository at this point in the history
  • Loading branch information
payetvin committed Dec 19, 2024
1 parent 385f53a commit 6f89696
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/solver/modeler/loadFiles/readLibraries.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ static Study::SystemModel::Library loadSingleLibrary(const fs::path& filePath)
const std::string libraryStr = IO::readFile(filePath);

ModelParser::Parser parser;
// Add try/catch and error handling
ModelParser::Library libraryObj = parser.parse(libraryStr);
return ModelConverter::convert(libraryObj);
}
Expand Down
1 change: 1 addition & 0 deletions src/solver/modeler/loadFiles/readSystem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ Study::SystemModel::System loadSystem(const fs::path& studyPath,
const std::string systemStr = IO::readFile(studyPath / "input" / "system.yml");

SystemParser::Parser parser;
// Add try/catch and error handling
SystemParser::System systemObj = parser.parse(systemStr);

return SystemConverter::convert(systemObj, libraries);
Expand Down

0 comments on commit 6f89696

Please sign in to comment.