added a tally reset routine for user defined tallies

This commit is contained in:
Bryan Herman 2012-03-06 11:49:00 -08:00
parent 925fe5015e
commit 8989c1f10b

View file

@ -1558,4 +1558,22 @@ contains
end subroutine tally_statistics
!==============================================================================
! TALLY_RESET resets all of the user-defined tallies
!==============================================================================
subroutine tally_reset()
integer :: i ! index in tallies array
type(TallyObject), pointer :: t => null()
! reset sum and sum_sq
do i = 1, n_tallies
t => tallies(i)
t % scores % sum = 0.0_8
t % scores % sum_sq = 0.0_8
end do
end subroutine tally_reset
end module tally