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:
Paul Romano 2017-07-10 11:20:39 -05:00
parent 477a46f7f7
commit 42b2999ae4

View file

@ -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")