Skip to content

Commit

Permalink
Macros return to initial directory upn error
Browse files Browse the repository at this point in the history
  • Loading branch information
rneder committed Jan 16, 2025
1 parent 0c7e6d2 commit f1590f0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions diffev/prog/diffev_loop.f90
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ SUBROUTINE diffev_loop
CALL errlist
IF (ier_sta.ne.ER_S_LIVE) then
IF (lmakro.and.ier_sta.ne.ER_S_LIVE.AND.lmacro_close) then
CALL macro_close
CALL macro_close(-1)
prompt_status = PROMPT_ON
ENDIF
lblock = .false.
Expand All @@ -109,7 +109,7 @@ SUBROUTINE diffev_loop
EXIT main
ELSE
IF(lmacro_close) THEN
CALL macro_close
CALL macro_close(-1)
lmakro_error = .FALSE.
PROMPT_STATUS = PROMPT_ON
sprompt = ' '
Expand Down
2 changes: 1 addition & 1 deletion diffev/prog/diffev_py.f90
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ SUBROUTINE command (incomming, ier_status)
IF( ier_num /= 0 ) THEN ! Handle error messages
CALL errlist
ier_status = -1
CALL macro_close
CALL macro_close(-1)
CALL no_error
ELSE
main: DO WHILE( lmakro ) ! Initial command was a macro, run this macro
Expand Down

0 comments on commit f1590f0

Please sign in to comment.