Skip to content

Commit

Permalink
don't open a pool because of slowirfs if irfperiods == 0
Browse files Browse the repository at this point in the history
  • Loading branch information
tholden committed May 20, 2020
1 parent 5e99a5f commit 0e0eb26
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion Core/dynareOBCCore.m
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,13 @@
if dynareOBC.OrderOverride > 0
dynareOBC.Order = dynareOBC.OrderOverride;
end
if ~isempty( dynareOBC.OtherMODFile ) && dynareOBC.IRFPeriods > 0
dynareOBC.IRFPeriods = 0;
disp( ' ' );
disp( 'Disabling IRF simulation since the OtherMODFile option is non-empty.' );
disp( ' ' );
end


dynareOBC = orderfields( dynareOBC );

Expand Down Expand Up @@ -642,7 +649,7 @@
dynareOBC.IRFsForceNotAtBoundIndices = [];
end

if dynareOBC.Cubature || dynareOBC.SlowIRFs || dynareOBC.MLVSimulationMode > 1 || dynareOBC.SimulateOnGridPoints
if dynareOBC.Cubature || ( dynareOBC.SlowIRFs && dynareOBC.IRFPeriods > 0 ) || dynareOBC.MLVSimulationMode > 1 || dynareOBC.SimulateOnGridPoints
OpenPool;
end
StoreGlobals( M_, options_, oo_, dynareOBC );
Expand Down

0 comments on commit 0e0eb26

Please sign in to comment.