From e918589e0219d9e796f8a98261649f3eed99b5eb Mon Sep 17 00:00:00 2001 From: Marco Ratto Date: Thu, 21 Dec 2023 10:31:11 +0100 Subject: [PATCH] fix undefined index j using wildcard Closes: #1915 --- matlab/parallel/closeSlave.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/matlab/parallel/closeSlave.m b/matlab/parallel/closeSlave.m index 5d3f443fd..4b1c4fadf 100644 --- a/matlab/parallel/closeSlave.m +++ b/matlab/parallel/closeSlave.m @@ -61,7 +61,7 @@ for indPC=1:length(Parallel) end while(1) - if isempty(dynareParallelDir(['P_slave_',int2str(j),'End.txt'],TmpFolder,Parallel)) + if isempty(dynareParallelDir(['P_slave_*End.txt'],TmpFolder,Parallel)) for indPC=1:length(Parallel) if (Parallel(indPC).Local==0) dynareParallelRmDir(TmpFolder,Parallel(indPC))