4 |
Notes on tags used in MITgcmUV |
Notes on tags used in MITgcmUV |
5 |
============================== |
============================== |
6 |
|
|
7 |
|
o pkg/fizhi: |
8 |
|
- add parenthesis around fizhi tendencies in fizhi_tendency_apply.F: this |
9 |
|
affects results at machine truncation level. Update output of experiments |
10 |
|
fizhi-cs-32x32x40 (12 digits for cg2d) & fizhi-cs-aqualev20 (13 digits). |
11 |
|
o pkg/seaice: more clean up |
12 |
|
- rename TAF common block tapes to be more consistent and remove |
13 |
|
unnecessary duplicates |
14 |
|
- add store directives to remove more recomputations, but use smaller |
15 |
|
tapes (and adjust keys) when SEAICE_LSR_ADJOINT_ITER is undefined. |
16 |
|
The idea behind this flag is to reduce the memory footprint when the |
17 |
|
adjoint of the LSR is not required. As of now, defining the flag |
18 |
|
SEAICE_LSR_ADJOINT_ITER increase 4 common block tapes for 2D field by |
19 |
|
a factor of SOLV_MAX_FIXED (=500 by default in SEAICE_SIZE.h). |
20 |
|
For experiment offline_exf_seaice, this means on a linux box with gfortran |
21 |
|
nearly a factor of 10 (but keep in mind there is mostly seaice code in |
22 |
|
this experiment): > size mitgcmuv_ad |
23 |
|
text data bss dec hex |
24 |
|
5100659 1216 220458952 225560827 d71c8fb |
25 |
|
5339425 1200 1868783272 1874123897 6fb4dc79 (SEAICE_LSR_ADJOINT_ITER) |
26 |
|
but only a moderate increase of 36% for global_ocean.cs32x15: |
27 |
|
text data bss dec hex |
28 |
|
6695027 1648 1014578664 1021275339 3cdf6ccb |
29 |
|
6695203 1648 1382505320 1389202171 52cd8afb (SEAICE_LSR_ADJOINT_ITER) |
30 |
|
- note: there are still recomputations in global_ocean.cs32x15 and |
31 |
|
the gradient agreement changes (gets a little worse) |
32 |
|
- in general, the AD gradients still are wrong |
33 |
|
o OpenAD |
34 |
|
- clean up code_oad/ directories somewhat by moving files |
35 |
|
dontCompile, dontTransform, keepOriginal to OAD_support/ |
36 |
|
o model/src: |
37 |
|
- using MOM fluxform and Non-Lin Free-Surf with momDissip_In_AB=F |
38 |
|
(not currently tested): add dissipation terms before NLFS rescaling of |
39 |
|
tendencies (previously done after). |
40 |
|
o pkg/diagnostics: |
41 |
|
- write stats-diags in ascii file with more digits (same as in monitor). |
42 |
|
o pkg/down_slope: |
43 |
|
- drop the bi,bj dimension of argument recip_hFac in S/R DWNSLP_APPLY; with |
44 |
|
NLFS (not tested), use new recip_hFac value in order to conserve tracer. |
45 |
|
o model/src: |
46 |
|
- new file "apply_forcing.F" containing all the code previously in |
47 |
|
external_forcing.F, but with new argument list: pass, as new argument, |
48 |
|
the current level tendency array to update (instead of a direct update |
49 |
|
of the common bloc array). Change the corresponding calls. |
50 |
|
- add CPP option USE_OLD_EXTERNAL_FORCING (default is undef) to use |
51 |
|
EXTERNAL_FORCING_U,V,T,S subroutines (for backward compatibility). |
52 |
|
o pkg/seaice/seaice_lsr, a little bit of clean up |
53 |
|
- rearrange some code blocks, so that now all calculations for |
54 |
|
setting up the right-hand-sides done within one single block |
55 |
|
(I find that easier to read and understand) |
56 |
|
- rearrange freedrift-code to reduce the number of ifdefs |
57 |
|
- adjust some indentations and comments |
58 |
|
|
59 |
|
checkpoint64z (2014/07/10) |
60 |
|
o model/src and several pkgs: |
61 |
|
- change argument list of all S/R called from external_forcing.F and |
62 |
|
called from ptracers_forcing.F (renamed to ptracers_apply_forcing.F) |
63 |
|
to pass, as argument, the current level tendency array to update |
64 |
|
(instead of a direct update of the common bloc array). |
65 |
|
- change also (in the same way) argument list of PTRACERS_APPLY_FORCING; |
66 |
|
- rename taueddy_external_forcing.f to taueddy_tendency_apply.F |
67 |
|
o pkg/seaice/seaice_lsr.F |
68 |
|
- always initialize local arrays in seaice_lsr_tridiagu/v |
69 |
|
- add more local tapes to seaice_lsr_tridiagu/v |
70 |
|
- move storing u/vice(:,:,bi,bj) out of seaice_lsr_tridiagu/v, but |
71 |
|
keep it in bi/bj loop; this seems to be essential |
72 |
|
- gradients are still wrong but only by 4-7 orders of magnitude |
73 |
|
instead of 15 orders of magnitude, lab_sea improves a little |
74 |
|
o pkg/seaice |
75 |
|
- (pkg/autodiff) remove storing/restoring of seaiceMaskU/V that |
76 |
|
generates unnecessary code in seaice_lsr_ad |
77 |
|
- add more store directives in seaice_lsr to avoid unnecessary code |
78 |
|
in seaice_lsr_ad |
79 |
|
- exclude some residual computations in seaice_lsr when |
80 |
|
ALLOW_AUTODIFF_TAMC is defined in order to avoid unnecessary code |
81 |
|
in seaice_lsr_ad |
82 |
|
- add more storing, a new tape (model/src/the_main_loop.F) and |
83 |
|
another key for SEAICE_LSR_VECTORIZE_ZEBRA (the local keys ilockey |
84 |
|
and klockey should be checked by a specialist) |
85 |
|
- modify ( define SEAICE_VECTORIZE_LSR and SEAICE_LSR_ADJOINT_ITER ) |
86 |
|
and update lab_sea after previous changes in pkg/seaice below |
87 |
|
o pkg/autodiff: |
88 |
|
- introduce useSmoothCorrel2DinAdMode, SEAICEapproxLevInAd, and |
89 |
|
viscFacInAd : run time parameters allowing for adjoint switches |
90 |
|
note : logic for useSmoothCorrel2DinAdMode is in ctrl_readparms.F |
91 |
|
o pkg/ecco: |
92 |
|
- introduce cost_gencost_boxmean.F that computes a box mean |
93 |
|
temperature (for use in adjoint sensitivity studies). |
94 |
|
o model/src/set_defaults.F : initialize viscFacAdj to 1. |
95 |
|
o pkg/mom_common/mom_calc_visc.F: |
96 |
|
- ifdef ALLOW_AUTODIFF then include viscFacAdj factor. |
97 |
|
o pkg/seaice/seaice_summary.F: |
98 |
|
- statement for SEAICEadjMODE now in autodiff_readparms.F |
99 |
|
o pkg/seaice: |
100 |
|
- remove some store directives and add new ones in an effort to get |
101 |
|
finally rid off the recomputation warnings. This is successful |
102 |
|
when SEAICE_VECTORIZE_LSR ***and*** SEAICE_LSR_ADJOINT_ITER are |
103 |
|
defined (i.e. no extensive recomputation warnings left), but there |
104 |
|
are still too many recomputations on the solver iteration level |
105 |
|
- define SEAICE_VECTORISZE_LSR in offline_exf_seaice/code_ad/SEAICE_OPTIONS.h |
106 |
|
- move definition of MPSEUDOTIMESTEPS into TAMC-block in |
107 |
|
SEAICE_SIZE.h |
108 |
|
- add a store directive in S/R seaice_calc_viscosities |
109 |
|
o pkg/seaice (ITD code): |
110 |
|
- fix definition of Hlimit for multi-threaded case |
111 |
|
- use double precision arithmetic to compute Hlimit: this affects results; |
112 |
|
update output of experiment seaice_itd. |
113 |
|
o replace content of verification/seaice_itd |
114 |
|
- instead of a 1D column use the configuration of offline_exf_seaice |
115 |
|
to test the ice thickness distribution code with ridging |
116 |
|
- this is a first shot at this experiment |
117 |
|
- change of some defaults of ridging parameters SEAICEhStar (from |
118 |
|
100 to 25) and SEAICEmuRidging (from 5 to 3) in seaice_readparms.F |
119 |
|
and lot of new comments. |
120 |
|
|
121 |
|
checkpoint64y (2014/06/20) |
122 |
|
o pkg/seaice/seaice_reg_ridge.F: |
123 |
|
- modify the regularization of very small volumes of ice; only check |
124 |
|
total volume HEFF, and do not apply correction to individual ice |
125 |
|
classes because that leads to funny patterns in the heat and fw-fluxes |
126 |
|
into the ocean. Adjust seaice_itd/results/output.txt |
127 |
|
- replace nITD by SEAICE_multDim in loop-ranges |
128 |
|
o pkg/exf: |
129 |
|
- add code to process the case field period = -12. with UV interpolation. |
130 |
|
- move debug print (formerly active when exf_verbose=T) from EXF_getFFieldRec |
131 |
|
into S/R that calls it (i.e., exf_set_gen.F, exf_set_uv.F & obcs_exf_load.F) |
132 |
o verification/global_with_exf: |
o verification/global_with_exf: |
133 |
- swith all fields period to -12. (was previously untested) in input/data.exf |
- switch all fields period to -12. (was previously untested) in input/data.exf |
134 |
(but keep secondary test ".yearly" unchanged); update the reference output. |
(but keep secondary test ".yearly" unchanged); update the reference output. |
135 |
o pkg/cal: |
o pkg/cal: |
136 |
- new calendar type "noLeapYear" for 365 days calendar without any leap year. |
- new calendar type "noLeapYear" for 365 days calendar without any leap year. |
137 |
o pkg/exf: |
o pkg/exf: |
138 |
- new integer parameter "exf_debugLev" (default set to main model debugLevel) |
- new integer parameter "exf_debugLev" (default set to main model debugLevel) |
139 |
to replace logical switch "exf_verbose" |
to replace logical switch "exf_verbose" |
140 |
- report in STDOUT when loading a new reccord (if exf_debugLev >= 3) |
- report in STDOUT when loading a new record (if exf_debugLev >= 3) |
141 |
o pkg/sbo: |
o pkg/sbo: |
142 |
- update from Katherine Quinn: evaluate mass directly from density and SSH |
- update from Katherine Quinn: evaluate mass directly from density and SSH |
143 |
(budget using Finite Volume method) instead of from bottom pressure. |
(budget using Finite Volume method) instead of from bottom pressure. |
153 |
+ call LAND_READPARMS from packages_readparms.F |
+ call LAND_READPARMS from packages_readparms.F |
154 |
o pkg/seaice: |
o pkg/seaice: |
155 |
- remove code that resets useThSice in S/R seaice_readparms and |
- remove code that resets useThSice in S/R seaice_readparms and |
156 |
replace by a warning in S/R seaice_check |
replace it by a warning in S/R seaice_check |
157 |
- remove parameter MULTDIM, replace with nITD and runtime |
- remove parameter MULTDIM, replace with nITD and runtime |
158 |
parameter SEAICE_multDim (still hard-wired to nITD if |
parameter SEAICE_multDim (still hard-wired to nITD if |
159 |
SEAICE_ITD is defined) |
SEAICE_ITD is defined) |