From 378aa92e668e5a0f064b09e96f22fb0c2fe3f28c Mon Sep 17 00:00:00 2001 From: Nick Horelik Date: Fri, 12 Sep 2014 10:58:15 -0400 Subject: [PATCH] Allowed read_tallies_xml to run in plotting mode, only to read mesh info --- src/input_xml.F90 | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/input_xml.F90 b/src/input_xml.F90 index 6ff284152c..42b684abf6 100644 --- a/src/input_xml.F90 +++ b/src/input_xml.F90 @@ -36,7 +36,7 @@ contains if (run_mode /= MODE_PLOTTING) call read_cross_sections_xml() call read_geometry_xml() call read_materials_xml() - if (run_mode /= MODE_PLOTTING) call read_tallies_xml() + call read_tallies_xml() if (cmfd_run) call configure_cmfd() end subroutine read_input_xml @@ -1909,7 +1909,7 @@ contains end if ! Allocate tally array - if (n_user_tallies > 0) then + if (n_user_tallies > 0 .and. run_mode /= MODE_PLOTTING) then call add_tallies("user", n_user_tallies) end if @@ -2058,6 +2058,9 @@ contains call mesh_dict % add_key(m % id, i) end do + ! We only need the mesh info for plotting + if (run_mode == MODE_PLOTTING) return + ! ========================================================================== ! READ TALLY DATA