Reset time reduction.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(tem_reduction_transient_type), | intent(inout) | :: | me |
current time reduction |
subroutine tem_reduction_transient_reset(me) ! -------------------------------------------------------------------- ! !> current time reduction type(tem_reduction_transient_type), intent(inout) :: me ! -------------------------------------------------------------------- ! ! -------------------------------------------------------------------- ! me%nTimes = 0 select case(trim(me%config%reduceType)) case('min') me%val(:, me%curr) = huge(1.0_rk) case('max') me%val(:, me%curr) = tiny(1.0_rk) case('sum', 'average') me%val(:, me%curr) = 0.0_rk end select end subroutine tem_reduction_transient_reset