mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-27 13:45:36 -04:00
Clear active tally lists
This commit is contained in:
parent
48b255b559
commit
efe1457589
1 changed files with 12 additions and 0 deletions
12
src/api.F90
12
src/api.F90
|
|
@ -138,6 +138,7 @@ contains
|
|||
end if
|
||||
end do
|
||||
|
||||
! Reset global tallies
|
||||
n_realizations = 0
|
||||
if (allocated(global_tallies)) then
|
||||
global_tallies(:, :) = ZERO
|
||||
|
|
@ -147,6 +148,17 @@ contains
|
|||
k_abs_tra = ZERO
|
||||
k_sum(:) = ZERO
|
||||
|
||||
! Turn off tally flags
|
||||
tallies_on = .false.
|
||||
active_batches = .false.
|
||||
|
||||
! Clear active tally lists
|
||||
call active_analog_tallies % clear()
|
||||
call active_tracklength_tallies % clear()
|
||||
call active_current_tallies % clear()
|
||||
call active_collision_tallies % clear()
|
||||
call active_tallies % clear()
|
||||
|
||||
end subroutine openmc_reset
|
||||
|
||||
!===============================================================================
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue