From 42b2999ae433e3eb1f89cb0a302be19e7f59c2de Mon Sep 17 00:00:00 2001 From: Paul Romano Date: Mon, 10 Jul 2017 11:20:39 -0500 Subject: [PATCH] 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 appears under , it is simply ignored and the simulation proceeds as though no filters were specified at all. --- src/input_xml.F90 | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/input_xml.F90 b/src/input_xml.F90 index 5ff4d119e6..3e1370843a 100644 --- a/src/input_xml.F90 +++ b/src/input_xml.F90 @@ -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 element. The element itself should & + &have a list of filters that apply, e.g., 1 2 & + &where 1 and 2 are the IDs of filters specified outside of & + &.") + end if + ! Determine number of filters if (check_for_node(node_tal, "filters")) then n_filter = node_word_count(node_tal, "filters")