mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-28 14:15:42 -04:00
Added assume_separate options for tallies.xml.
This commit is contained in:
parent
4087f90469
commit
8a8404362e
4 changed files with 21 additions and 0 deletions
|
|
@ -95,6 +95,9 @@ module global
|
|||
! Flag for turning tallies on
|
||||
logical :: tallies_on
|
||||
|
||||
! Assume all tallies are spatially distinct
|
||||
logical :: assume_separate = .false.
|
||||
|
||||
! ============================================================================
|
||||
! CRITICALITY SIMULATION VARIABLES
|
||||
|
||||
|
|
|
|||
|
|
@ -661,6 +661,9 @@ contains
|
|||
allocate(tallies(n_tallies))
|
||||
end if
|
||||
|
||||
! Check for <assume_separate> setting
|
||||
if (separate_ == 'yes') assume_separate = .true.
|
||||
|
||||
! ==========================================================================
|
||||
! READ MESH DATA
|
||||
|
||||
|
|
|
|||
|
|
@ -448,6 +448,13 @@ contains
|
|||
|
||||
end do
|
||||
|
||||
! If the user has specified that we can assume all tallies are spatially
|
||||
! separate, this implies that once a tally has been scored to, we needn't
|
||||
! check the others. This cuts down on overhead when there are many
|
||||
! tallies specified
|
||||
|
||||
if (assume_separate) return
|
||||
|
||||
! Reset tally map positioning
|
||||
position = 0
|
||||
|
||||
|
|
@ -588,6 +595,13 @@ contains
|
|||
|
||||
end do
|
||||
|
||||
! If the user has specified that we can assume all tallies are spatially
|
||||
! separate, this implies that once a tally has been scored to, we needn't
|
||||
! check the others. This cuts down on overhead when there are many
|
||||
! tallies specified
|
||||
|
||||
if (assume_separate) return
|
||||
|
||||
! Reset tally map positioning
|
||||
position = 0
|
||||
|
||||
|
|
|
|||
|
|
@ -32,5 +32,6 @@
|
|||
|
||||
<variable name="mesh_" tag="mesh" type="mesh_xml" dimension="1" />
|
||||
<variable name="tally_" tag="tally" type="tally_xml" dimension="1" />
|
||||
<variable name="separate_" tag="assume_separate" type="word" length="3" />
|
||||
|
||||
</template>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue