Skip parallel plots under Octave

time-shift
Marco Ratto 2011-02-07 14:34:10 +01:00
parent 115050456a
commit 12555b4320
1 changed files with 16 additions and 8 deletions

View File

@ -147,6 +147,8 @@ localVars.tit3=tit3;
localVars.Mean=Mean;
% Like sequential execution!
if ~exist('OCTAVE_VERSION')
% Commenting for testing!
if isnumeric(options_.parallel) || ceil(size(varlist,1)/MaxNumberOfPlotsPerFigure)<4,
fout = pm3_core(localVars,1,nvar,0);
@ -158,6 +160,12 @@ else
'oo_', oo_);
[fout, nBlockPerCPU, totCPU] = masterParallel(options_.parallel, 1, nvar, [],'pm3_core', localVars,globalVars, options_.parallel_info);
end
else
% For the time being in Octave enviroment the pm3.m is executed only in
% serial modality, to avoid problem with the plots.
fout = pm3_core(localVars,1,nvar,0);
end
fprintf(['MH: ' tit1 ', done!\n']);