| 70 |
cd ..; |
cd ..; |
| 71 |
|
|
| 72 |
%test MITprof: |
%test MITprof: |
| 73 |
is_netcdf_avail=~isempty(which('ncload')); |
is_netcdf_avail=~isempty(which('ncexample'))|~isempty(which('netcdf.create')); |
| 74 |
%is_netcdf_avail=0; |
is_netcdf_redundant=~isempty(which('ncexample'))&~isempty(which('netcdf.create')); |
| 75 |
|
if (is_netcdf_redundant); |
| 76 |
|
fprintf('\n\n!! You have both the old mex/netcdf and the native matlab/netcdf installed.\n'); |
| 77 |
|
fprintf('!! Since they are conflicting (name clashes) you will likely run into trouble. \n'); |
| 78 |
|
fprintf('!! You may want to remove the old mex/netcdf stuff from your matlab path.\n\n'); |
| 79 |
|
end; |
| 80 |
if ~is_netcdf_avail; |
if ~is_netcdf_avail; |
| 81 |
fprintf('\n Warning: Using MITprof cannot be \n used until you get the netcdf toolbox.\n'); |
fprintf('\n !!!! Error: Using MITprof cannot be \n used until you get the netcdf toolbox.\n'); |
| 82 |
else; |
else; |
| 83 |
cd MITprof; |
cd MITprof; |
| 84 |
global MITprof_verbose; MITprof_verbose=0; |
global MITprof_verbose; MITprof_verbose=0; |