mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-27 13:45:36 -04:00
Merge pull request #2068 from pshriwise/dagmc_msg
Provide error message for missing DAGMC model file
This commit is contained in:
commit
7752afb554
1 changed files with 3 additions and 0 deletions
|
|
@ -50,6 +50,9 @@ DAGUniverse::DAGUniverse(pugi::xml_node node)
|
|||
|
||||
if (check_for_node(node, "filename")) {
|
||||
filename_ = get_node_value(node, "filename");
|
||||
if (!file_exists(filename_)) {
|
||||
fatal_error(fmt::format("DAGMC file '{}' could not be found", filename_));
|
||||
}
|
||||
} else {
|
||||
fatal_error("Must specify a file for the DAGMC universe");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue