catch user inputs that result in division by zero
This commit is contained in:
parent
a88baf93b2
commit
4b10522bee
|
@ -299,6 +299,7 @@ program DAMASK_spectral
|
|||
write(6,'(2x,a,i5)') 'increments: ', newLoadCase%incs
|
||||
if (newLoadCase%outputfrequency < 1) errorID = 836 ! non-positive result frequency
|
||||
write(6,'(2x,a,i5)') 'output frequency: ', newLoadCase%outputfrequency
|
||||
if (newLoadCase%restartfrequency < 1) errorID = 836 ! non-positive restart frequency
|
||||
write(6,'(2x,a,i5)') 'restart frequency: ', newLoadCase%restartfrequency
|
||||
if (errorID > 0) call IO_error(error_ID = errorID, ext_msg = loadcase_string) ! exit with error message
|
||||
endif reportAndCheck
|
||||
|
|
Loading…
Reference in New Issue