Commit 2a2b30b3 authored by Pierre Cazenave's avatar Pierre Cazenave

No need to create a variable just to check if a directory exists.

parent 754c5538
......@@ -30,8 +30,7 @@ fprintf(' for example:''xy_ll'' for Arctic or ''xy_ll_S'' for Antarctic\n');
fprintf('\n');
%
curdir=pwd;
dir_check=exist('DATA','dir');
if(dir_check==0);
if(exist('DATA','dir') == 0)
disp('Subdirectory DATA not found. You must navigate to');
disp('location of Model files from current directory.');
return
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment