From a61f4f3d44b9bc77368fd684f50d8bb374358362 Mon Sep 17 00:00:00 2001 From: rneder Date: Thu, 16 Jan 2025 17:22:52 +0100 Subject: [PATCH] Macros return to initial directory upon error --- refine/prog/refine_loop.f90 | 4 ++-- suite/prog/suite_kdo.f90 | 2 +- suite/prog/suite_loop.f90 | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/refine/prog/refine_loop.f90 b/refine/prog/refine_loop.f90 index 697eed9f..22c2a1ea 100644 --- a/refine/prog/refine_loop.f90 +++ b/refine/prog/refine_loop.f90 @@ -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. @@ -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 = ' ' diff --git a/suite/prog/suite_kdo.f90 b/suite/prog/suite_kdo.f90 index b9f38816..e85da828 100644 --- a/suite/prog/suite_kdo.f90 +++ b/suite/prog/suite_kdo.f90 @@ -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) diff --git a/suite/prog/suite_loop.f90 b/suite/prog/suite_loop.f90 index 499dd9f1..c2ab5ff7 100644 --- a/suite/prog/suite_loop.f90 +++ b/suite/prog/suite_loop.f90 @@ -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.