Move tally deactivation to simulation_finalize

This commit is contained in:
Sterling Harper 2018-08-16 10:52:05 -04:00
parent a10737cf11
commit 2e660bd89f
2 changed files with 7 additions and 1 deletions

View file

@ -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()

View file

@ -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