/[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.2 by gforget, Fri Aug 5 22:00:03 2011 UTC revision 1.3 by gforget, Thu Oct 20 20:56:24 2011 UTC
# Line 1  Line 1 
1    
 %initialize environment variables and mygrid  
 gcmfaces_global;  
   
2  %choose grid for test  %choose grid for test
3  choiceGrid='v4';  fprintf('\n Please set the demo grid : \n');
4    fprintf('    ''llc'': lat-lon-cap grid (5 faces). \n');
5    fprintf('    ''ll'' : simple lat-lon grid (1 face). \n');
6    choiceGrid=input(' and type return. ''llc'' is the default.\n');
7    if isempty(choiceGrid); choiceGrid='llc'; end;
8    if strcmp(choiceGrid,'llc'); choiceGrid='v4';
9    elseif strcmp(choiceGrid,'ll'); choiceGrid='v3';
10    else; error('wrong grid choice');
11    end;
12    
13    %choose verbise level
14    fprintf('\n Please set the amount of explanatory text display :\n');
15    fprintf('    0: none.\n');
16    fprintf('    1: comments.\n');
17    fprintf('    2: comments preceeded with calling sequence.\n');
18    fprintf('    3: same as 2, but preceeded with pause.\n');
19    verbose=input(' and/or type return. 0 is the default. \n');
20    if isempty(verbose); verbose=0; end;
21    
22    %initialize environment variables and mygrid
23    gcmfaces_global;
24    myenv.verbose=verbose;
25    if myenv.verbose>0;
26        gcmfaces_msg('* set path and environment variables (myenv) by calling gcmfaces_global');
27    end;
28    
29  basic_diags_compute_v3_or_v4(choiceGrid);  basic_diags_compute_v3_or_v4(choiceGrid);
30  basic_diags_display_v3_or_v4(choiceGrid);  basic_diags_display_v3_or_v4(choiceGrid);

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

  ViewVC Help
Powered by ViewVC 1.1.22