Skip to content
Snippets Groups Projects
Commit c1807778 authored by Sébastien Villemot's avatar Sébastien Villemot
Browse files

Move check about Octave version to the same place as check for MATLAB

parent 42b82087
Branches
Tags
No related merge requests found
......@@ -70,9 +70,20 @@ dynareroot = dynare_config('', preprocessoroutput);
warning_config()
if ~isoctave
if isoctave
if octave_ver_less_than(supported_octave_version)
skipline()
warning(['This version of Octave is not supported. Consider installing ' ...
'version %s+ of Octave,\notherwise m files will be used instead ' ...
'of precompiled mex files and some features, like solution\n' ...
'of models approximated at third order, will not be available.'], supported_octave_version())
skipline()
end
else
if matlab_ver_less_than('7.5')
skipline()
warning('This version of Dynare has only been tested on MATLAB 7.5 (R2007b) and above. Since your MATLAB version is older than that, Dynare may fail to run, or give unexpected results. Consider upgrading your MATLAB installation, or switch to Octave.');
skipline()
end
end
......
......@@ -94,15 +94,6 @@ if isoctave
p{end+1} = '/missing/ordeig';
end
if isoctave && ~compare_versions(version(), supported_octave_version(),'>=')
skipline()
warning(['This version of Octave is not supported. Consider installing ' ...
'version %s+ of Octave,\notherwise m files will be used instead ' ...
'of precompiled mex files and some features, like solution\n' ...
'of models approximated at third order, will not be available.'], supported_octave_version())
skipline()
end
% corrcoef with two outputs is missing in Octave (ticket #796)
if isoctave && ~user_has_octave_forge_package('nan')
p{end+1} = '/missing/corrcoef';
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment