From 5e99a5f5560913c293963b30088c2d7edc541acc Mon Sep 17 00:00:00 2001 From: Tom Holden Date: Wed, 20 May 2020 22:37:30 +0200 Subject: [PATCH] disable estimation, smoothing, slowirfs and medianirfs if othermodfile is specified --- Core/Setup/dynareOBCSetup.m | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/Core/Setup/dynareOBCSetup.m b/Core/Setup/dynareOBCSetup.m index 6e0b3d1..28dd865 100644 --- a/Core/Setup/dynareOBCSetup.m +++ b/Core/Setup/dynareOBCSetup.m @@ -210,13 +210,36 @@ function dynareOBCSetup( OriginalPath, CurrentFolder, dynareOBCPath, InputFileNa disp( 'Disabling Global since the OtherMODFile option is non-empty.' ); disp( ' ' ); end - + if dynareOBC_.Estimation + dynareOBC_.Estimation = false; + disp( ' ' ); + disp( 'Disabling Estimation since the OtherMODFile option is non-empty.' ); + disp( ' ' ); + end + if dynareOBC_.Smoothing + dynareOBC_.Smoothing = false; + disp( ' ' ); + disp( 'Disabling Smoothing since the OtherMODFile option is non-empty.' ); + disp( ' ' ); + end if dynareOBC_.SimulateOnGridPoints dynareOBC_.SimulateOnGridPoints = false; disp( ' ' ); disp( 'Disabling SimulateOnGridPoints since the OtherMODFile option is non-empty.' ); disp( ' ' ); end + if dynareOBC_.SlowIRFs + dynareOBC_.SlowIRFs = false; + disp( ' ' ); + disp( 'Disabling SlowIRFs since the OtherMODFile option is non-empty.' ); + disp( ' ' ); + end + if dynareOBC_.MedianIRFs + dynareOBC_.MedianIRFs = false; + disp( ' ' ); + disp( 'Disabling MedianIRFs since the OtherMODFile option is non-empty.' ); + disp( ' ' ); + end dynareOBCOriginal = dynareOBC_;