mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-28 22:26:08 -04:00
Raise fatal error if user is using outdated format for tallies.xml
Now that filters are separate elements in the XML, if you run with a tallies.xml file where <filter> appears under <tally>, it is simply ignored and the simulation proceeds as though no filters were specified at all.
This commit is contained in:
parent
477a46f7f7
commit
42b2999ae4
1 changed files with 9 additions and 0 deletions
|
|
@ -3362,6 +3362,15 @@ contains
|
|||
! =======================================================================
|
||||
! READ DATA FOR FILTERS
|
||||
|
||||
! Check if user is using old XML format and throw an error if so
|
||||
if (check_for_node(node_tal, "filter")) then
|
||||
call fatal_error("Tally filters must be specified independently of &
|
||||
&tallies in a <filter> element. The <tally> element itself should &
|
||||
&have a list of filters that apply, e.g., <filters>1 2</filters> &
|
||||
&where 1 and 2 are the IDs of filters specified outside of &
|
||||
&<tally>.")
|
||||
end if
|
||||
|
||||
! Determine number of filters
|
||||
if (check_for_node(node_tal, "filters")) then
|
||||
n_filter = node_word_count(node_tal, "filters")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue