Skip to content
This repository has been archived by the owner on Jan 24, 2018. It is now read-only.

Commit

Permalink
CPCluster.m calls quit at the end. This will cause Matlab to exit in
Browse files Browse the repository at this point in the history
non-deployed mode. Attached patch removes the call to quit, and
replaces it with a nice exit statement and an end statement for the
function.
  • Loading branch information
emmenlau authored and thouis committed Sep 29, 2011
1 parent b4a92c4 commit b577b75
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions CPCluster.m
Expand Up @@ -111,7 +111,8 @@ function CPCluster(batchfile,StartingSet,EndingSet,OutputFolder,BatchFilePrefix,
OutputFileName = sprintf('%s/%s%d_to_%d_DONE.mat',OutputFolder,BatchFilePrefix,StartingSet,EndingSet);
save(OutputFileName,'BatchSetBeingAnalyzed');
disp(sprintf('Created %s',OutputFileName));
quit;
fprintf('Module CPCluster finished successfully\n')
end

function reportBatchError(errorstring)
errorinfo = lasterror;
Expand All @@ -128,4 +129,5 @@ function reportBatchError(errorstring)
end
disp([errorstring ': ' lasterr]);
disp(ExtraInfo);
quit;
error('Error in execution');
end

0 comments on commit b577b75

Please sign in to comment.