From b99db457074668b57c48474c2f48b132f10a901c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Adjemian=20=28Scylla=29?= Date: Fri, 15 Nov 2013 17:03:58 +0100 Subject: [PATCH] Fixed bug (dynare path has to be defined sooner, otherwise isoctave is unknown in warning_config). --- matlab/dynare.m | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/matlab/dynare.m b/matlab/dynare.m index 0d533accc..f2336e881 100644 --- a/matlab/dynare.m +++ b/matlab/dynare.m @@ -44,6 +44,9 @@ if strcmpi(fname,'help') return end +% detect if MEX files are present; if not, use alternative M-files +dynareroot = dynare_config; + warning_config() if isoctave @@ -64,9 +67,6 @@ if isoctave default_save_options('-mat') end -% detect if MEX files are present; if not, use alternative M-files -dynareroot = dynare_config; - if nargin < 1 error('DYNARE: you must provide the name of the MOD file in argument') end