Skip to content
Snippets Groups Projects
Commit e9d79796 authored by Johannes Pfeifer's avatar Johannes Pfeifer
Browse files

dynare.m: cosmetic changes

parent b7e9d698
No related merge requests found
...@@ -122,7 +122,7 @@ if isempty(dot_location) ...@@ -122,7 +122,7 @@ if isempty(dot_location)
fnamelength = length(fname); fnamelength = length(fname);
fname1 = [fname '.dyn']; fname1 = [fname '.dyn'];
d = dir(fname1); d = dir(fname1);
if length(d) == 0 if isempty(d)
fname1 = [fname '.mod']; fname1 = [fname '.mod'];
end end
fname = fname1; fname = fname1;
...@@ -138,7 +138,7 @@ if fnamelength + length('.set_auxiliary_variables') > namelengthmax() ...@@ -138,7 +138,7 @@ if fnamelength + length('.set_auxiliary_variables') > namelengthmax()
error('Dynare: the name of your .mod file is too long, please shorten it') error('Dynare: the name of your .mod file is too long, please shorten it')
end end
if ~isempty(strfind(fname,filesep)) if contains(fname,filesep)
fprintf('\nIt seems you are trying to call a .mod file not located in the "Current Folder". This is not possible (the %s symbol is not allowed in the name of the .mod file).\n', filesep) fprintf('\nIt seems you are trying to call a .mod file not located in the "Current Folder". This is not possible (the %s symbol is not allowed in the name of the .mod file).\n', filesep)
[pathtomodfile,basename] = fileparts(fname); [pathtomodfile,basename] = fileparts(fname);
if exist(pathtomodfile,'dir') if exist(pathtomodfile,'dir')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment