1 |
gforget |
1.1 |
%userStep is set in basic_diags_ecco in 'USER' blocs |
2 |
|
|
%this routine is by choice not a function, in |
3 |
|
|
%order to have access to entire workspace) |
4 |
|
|
|
5 |
|
|
if ~strcmp(setDiags,'USER') |
6 |
|
|
error(['unknown setDiags ' setDiags]); |
7 |
|
|
end; |
8 |
|
|
|
9 |
|
|
%%%%%%%%%%%%%%%%%%TEMPLATE%%%%%%%%%%%%%%%%%%% |
10 |
|
|
|
11 |
|
|
if strcmp(setDiags,'USER')&userStep==1;%diags to be computed |
12 |
|
|
fprintf('this is a place-holder for an extra set of diags : to be defined by you if you please\n') |
13 |
|
|
fprintf('how to proceed : 1) define listDiags HERE 2) define listFlds etc. below \n'); |
14 |
|
|
fprintf('how to proceed : 3) add the computation code below 4) remove this print&return\n'); |
15 |
|
|
return; |
16 |
|
|
end; |
17 |
|
|
|
18 |
|
|
if strcmp(setDiags,'USER')&userStep==2;%input files and variables |
19 |
|
|
fprintf('this is a place-holder for an extra set of diags : to be defined by you if you please\n') |
20 |
|
|
fprintf('how to proceed : 1) define listDiags above 2) define listFlds etc. HERE \n'); |
21 |
|
|
fprintf('how to proceed : 3) add the computation code below 4) remove this print&return\n'); |
22 |
|
|
|
23 |
|
|
listSubdirs={[dirMat 'BUDG/' ],[dirModel 'diags/BUDG/' ],[dirModel 'diags/OTHER/' ],... |
24 |
|
|
[dirModel 'diags/STATE/' ],[dirModel 'diags/TRSP/'],[dirModel 'diags/' ]}; |
25 |
|
|
listFiles={listFiles{:},'diags_2d_set1','diags_ice_set1','diags_3d_set1','diags_3d_set2','diags_3d_set3'};%for backward compatibility |
26 |
|
|
|
27 |
|
|
return; |
28 |
|
|
end; |
29 |
|
|
|
30 |
|
|
if strcmp(setDiags,'USER')&userStep==3;%computational part; |
31 |
|
|
fprintf('this is a place-holder for an extra set of diags : to be defined by you if you please\n') |
32 |
|
|
fprintf('how to proceed : 1) define listDiags above 2) define listFlds etc. above \n'); |
33 |
|
|
fprintf('how to proceed : 3) add the computation code HERE 4) remove this print&return\n'); |
34 |
|
|
return; |
35 |
|
|
end; |
36 |
|
|
|