mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-27 21:55:41 -04:00
Err msg for missing DAGMC file
This commit is contained in:
parent
3a0d882622
commit
dba3a0be2f
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