Skip to content

Commit

Permalink
Improved error message, macro handling at error
Browse files Browse the repository at this point in the history
  • Loading branch information
rneder committed Jan 16, 2025
1 parent 351bcd5 commit 2f802ce
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions discus/prog/fourier.f90
Original file line number Diff line number Diff line change
Expand Up @@ -637,7 +637,11 @@ SUBROUTINE fourier
! start the Fourier transform 'run'
!
ELSEIF (str_comp (befehl, 'run ', 2, lbef, 4) ) then
IF(ilots/=LOT_OFF .AND. & ! Lots will be used
if(cr_natoms<1) then
ier_num = -198
ier_typ = ER_APPL
ier_msg(1) = 'No fourier will be calculated'
elseIF(ilots/=LOT_OFF .AND. & ! Lots will be used
cr_natoms /= cr_icc(1)*cr_icc(2)*cr_icc(3)*cr_ncatoms) THEN
ier_num = -162
ier_typ = ER_APPL
Expand Down Expand Up @@ -1029,7 +1033,7 @@ SUBROUTINE fourier
RETURN
ELSE
IF(lmacro_close) THEN
CALL macro_close
CALL macro_close(-1)
prompt_status = PROMPT_ON
ENDIF
ENDIF
Expand Down

0 comments on commit 2f802ce

Please sign in to comment.