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

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

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

revision 1.5 by gforget, Wed Dec 3 14:21:55 2014 UTC revision 1.7 by gforget, Thu Feb 12 21:40:26 2015 UTC
# Line 24  verbose=input(' and/or type return. 0 is Line 24  verbose=input(' and/or type return. 0 is
24  if isempty(verbose); verbose=0; end;  if isempty(verbose); verbose=0; end;
25    
26  %initialize environment variables and mygrid  %initialize environment variables and mygrid
27    addpath gcmfaces;
28  gcmfaces_global;  gcmfaces_global;
29  myenv.verbose=verbose;  myenv.verbose=verbose;
30  if myenv.verbose>0;  if myenv.verbose>0;
31      gcmfaces_msg('* set path and environment variables (myenv) by calling gcmfaces_global');      gcmfaces_msg('* set path and environment variables (myenv) by calling gcmfaces_global');
32  end;  end;
33    
34    addpath MITprof;
35    if ~isempty(which('MITprof_global'));
36    MITprof_global;
37    if myenv.verbose>0;
38        gcmfaces_msg('* set MITprof path by calling MITprof_global');
39    end;
40    end;
41    
42  fprintf('\n\n');  fprintf('\n\n');
43  gcmfaces_msg('/////////////////////////////////////////');  gcmfaces_msg('/////////////////////////////////////////');
44  gcmfaces_msg('demo of transport computations','// PART 1 :');  gcmfaces_msg('demo of transport computations','// PART 1 :');
# Line 63  example_griddata(choiceGrid); Line 72  example_griddata(choiceGrid);
72  example_interp(choiceGrid);  example_interp(choiceGrid);
73  example_faces2latlon2faces(choiceGrid);  example_faces2latlon2faces(choiceGrid);
74    
75    fprintf('\n\n');
76    gcmfaces_msg('/////////////////////////////////////////');
77    gcmfaces_msg('demo of budget computations','// PART 4 :');
78    gcmfaces_msg('please hit return','// >> ');
79    gcmfaces_msg('/////////////////////////////////////////');
80    fprintf('\n\n');
81    pause;
82    example_budget(choiceGrid);
83    

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

  ViewVC Help
Powered by ViewVC 1.1.22