Skip to content

Commit

Permalink
Macros return to initial directory upon error
Browse files Browse the repository at this point in the history
  • Loading branch information
rneder committed Jan 16, 2025
1 parent 21dc3e9 commit a61f4f3
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions refine/prog/refine_loop.f90
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ SUBROUTINE refine_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 @@ -104,7 +104,7 @@ SUBROUTINE refine_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 suite/prog/suite_kdo.f90
Original file line number Diff line number Diff line change
Expand Up @@ -623,7 +623,7 @@ subroutine suite_test_forpy
matrix(2,2) = 5.0
matrix(2,3) = 6.0
!
call forpy_start
call forpy_start(ier_num)
ier_num = ndarray_create_ones(p_arr, [2, 2], dtype="float64", order="F")
ier_num = print_py(p_arr)
ier_num = ndarray_create(p_arr, matrix)
Expand Down
2 changes: 1 addition & 1 deletion suite/prog/suite_loop.f90
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ RECURSIVE SUBROUTINE suite_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 Down

0 comments on commit a61f4f3

Please sign in to comment.