Skip to content
Snippets Groups Projects
Commit 278e767e authored by Johannes Pfeifer's avatar Johannes Pfeifer
Browse files

closeSlave.m: remove duplicated condition and restore warning

parent 90ced5ca
No related branches found
No related tags found
No related merge requests found
......@@ -6,7 +6,7 @@ function closeSlave(Parallel,TmpFolder,partial)
%
% INPUTS
% o Parallel [struct vector] copy of options_.parallel.
% o TmpFolder string if islocal==0, is the name of didectory devoted to remote computation.
% o TmpFolder string if islocal==0, is the name of directory devoted to remote computation.
% This directory is named using current date
% and is used only one time and then deleted.
% If islocal==1, TmpFolder=''.
......@@ -45,17 +45,7 @@ if partial==1
dynareParallelSendFiles('slaveParallel_break.mat',TmpFolder,Parallel(indPC));
end
end
% delete('slaveParallel_break')
return
end
if partial==-1
delete('slaveParallel_break.mat')
for indPC=1:length(Parallel)
if (Parallel(indPC).Local==0)
dynareParallelDelete( 'slaveParallel_break.mat',TmpFolder,Parallel(indPC));
end
end
% delete('slaveParallel_break')
s=warning('on');
return
end
......@@ -63,14 +53,11 @@ for indPC=1:length(Parallel)
if (Parallel(indPC).Local==0)
dynareParallelDelete(' slaveParallel_input*.mat',TmpFolder,Parallel(indPC));
end
delete( 'slaveParallel_input*.mat');
delete( 'slaveJob*.mat');
pause(1)
delete('slaveParallel_*.log');
delete ConcurrentCommand1.bat;
end
while(1)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment