Decide if the simulation run should abnormally terminate based on the status flags.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(tem_status_type), | intent(in) | :: | me |
Status to check for an extraordinary termination of the run. |
Result indicating if the run should com to an irregular end.
function tem_status_run_terminate(me) result(run_terminate)
! --------------------------------------------------------------------------!
!> Status to check for an extraordinary termination of the run.
type(tem_status_type), intent(in) :: me
!> Result indicating if the run should com to an irregular end.
logical :: run_terminate
! --------------------------------------------------------------------------!
run_terminate = ( me%bits(tem_stat_run_terminate) &
& .or. me%bits(tem_stat_global_error) &
& .or. me%bits(tem_stat_nan_detected) &
& .or. me%bits(tem_stat_nonPhysical) )
end function tem_status_run_terminate