fix undefined index j using wildcard

Closes: #1915
covariance-quadratic-approximation
Marco Ratto 2023-12-21 10:31:11 +01:00 committed by Sébastien Villemot
parent 7a5684bf4b
commit e918589e02
No known key found for this signature in database
GPG Key ID: 2CECE9350ECEBE4A
1 changed files with 1 additions and 1 deletions

View File

@ -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))