catch user inputs that result in division by zero

This commit is contained in:
Martin Diehl 2019-06-28 17:52:38 -07:00
parent a88baf93b2
commit 4b10522bee
1 changed files with 1 additions and 0 deletions

View File

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