mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-27 13:45:36 -04:00
Move tally deactivation to simulation_finalize
This commit is contained in:
parent
a10737cf11
commit
2e660bd89f
2 changed files with 7 additions and 1 deletions
|
|
@ -573,6 +573,13 @@ contains
|
|||
! Write tally results to tallies.out
|
||||
if (output_tallies .and. master) call write_tallies()
|
||||
|
||||
! Deactivate all tallies
|
||||
if (allocated(tallies)) then
|
||||
do i = 1, n_tallies
|
||||
tallies(i) % obj % active = .false.
|
||||
end do
|
||||
end if
|
||||
|
||||
! Stop timers and show timing statistics
|
||||
call time_finalize%stop()
|
||||
call time_total%stop()
|
||||
|
|
|
|||
|
|
@ -388,7 +388,6 @@ contains
|
|||
|
||||
do i = 1, n_tallies
|
||||
call tallies(i) % obj % allocate_results()
|
||||
tallies(i) % obj % active = .false.
|
||||
end do
|
||||
|
||||
end subroutine configure_tallies
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue