/[MITgcm]/MITgcm_contrib/gael/matlab_class/gcmfaces_global.m
ViewVC logotype

Diff of /MITgcm_contrib/gael/matlab_class/gcmfaces_global.m

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.3 by gforget, Mon Jul 28 20:54:09 2014 UTC revision 1.5 by gforget, Fri Mar 20 14:32:54 2015 UTC
# Line 75  if isempty(myenv); Line 75  if isempty(myenv);
75      myenv.lessplot=0;      myenv.lessplot=0;
76      myenv.lesstest=0;      myenv.lesstest=0;
77      myenv.useNativeMatlabNetcdf = ~isempty(which('netcdf.open'));      myenv.useNativeMatlabNetcdf = ~isempty(which('netcdf.open'));
78        myenv.issueWarnings=1;
79      %... check m_map and netcdf      %... check m_map and netcdf
80  end;  end;
81    
# Line 98  for ii=1:length(listVars); Line 99  for ii=1:length(listVars);
99      end;      end;
100  end;  end;
101    
102    %issue warning if mygrid is empty:
103    test0=isfield(mygrid,'XC');
104    if ~test0&myenv.issueWarnings;
105        warning('mygrid has not yet been loaded to memory. To use gcmfaces please use grid_load.m first.');
106    end;
107    
108  %send to workspace:  %send to workspace:
109  evalin('caller','global mygrid myenv');  evalin('caller','global mygrid myenv');
110    

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.5

  ViewVC Help
Powered by ViewVC 1.1.22