4 |
Notes on tags used in MITgcmUV |
Notes on tags used in MITgcmUV |
5 |
============================== |
============================== |
6 |
|
|
7 |
|
o pkg/seaice: |
8 |
|
- Added SEAICEuseTILT run time switch : if set to |
9 |
|
false then omit the tilt term in seaice dynamics. |
10 |
|
- Fix free drift calculation. |
11 |
|
o pkg/shelfice: |
12 |
|
When initializing SHELFICEDragQuadratic, set default to be |
13 |
|
consistent with shiCdrag in case SHELFICEuseGammaFrict is used, |
14 |
|
but retain option to set it independently |
15 |
|
(inconsistenty spotted by Veronique Dansereau) |
16 |
|
o eesupp/inc: |
17 |
|
- in EEPARAMS.h, add real-type constant for some frequently used simple number |
18 |
|
(0,1,2,1/2), with name explicitly referring to RS/RL type. |
19 |
|
o model/src: |
20 |
|
- move balancing of relaxation terms to new S/R balance_relax.F. |
21 |
|
o pkg/autodiff: |
22 |
|
re-write active I/O high-level (control) S/R: |
23 |
|
- rename S/R ACTIVE_READ/WRITE_RL to ACTIVE_READ/WRITE_3D_RL |
24 |
|
- add 1 more argument (useCurrentDir) to replace the "_LOC" 2nd set of S/R. |
25 |
|
- use standard pkg/mdsio I/O routines (MDS_READ/WRITE_SEC_XZ/YZ and |
26 |
|
MDS_READ/WRITE_FIELD); change loops to multi-threads. |
27 |
|
- update and merge active_file_control_slice.flow into active_file_control.flow |
28 |
|
- update the calls in lower level S/R (active_file.F, active_file_g.F and |
29 |
|
active_file_ad.F) keeping the argument list and function unchanged. |
30 |
|
- also update lower-level "_LOC" version (call same S/R with "useCurrentDir |
31 |
|
=.TRUE.") and remove high-level (control) _loc version (not called anymore). |
32 |
|
- new low-level active I/O routines, one for each type (RL/RS), for active var |
33 |
|
of various (XY,XZ,YZ) shape and level number (arguments: arrShape, myNr); |
34 |
|
fix ctrl_init_wet.F & ecco_cost_weights.F by calling the new S/R with the |
35 |
|
right type. |
36 |
|
o autodiff and RS=real*4: |
37 |
|
- call the right type (_RS instead of _RL) of S/R in few output S/R (pkg/exf |
38 |
|
ad-monitor and snapshots); disable arrType='RS' in mdsio_gl*.F ; |
39 |
|
- change argument type of 3-D mask argument to _RS to match type in the call |
40 |
|
(in seaice_cost*.F, ctrl_*_gen.F and *ctrl_bound.F); to be continued. |
41 |
|
o pkg/thsice: |
42 |
|
- re-anable balanceEmPmR when useSEAICE=T with useThSIce=T. |
43 |
|
- option to correct ocean fresh-water flux for imbalance of Atmos+Land |
44 |
|
fresh-water flux: uniform correction or proportional to local precip. |
45 |
|
o pkg/ctrl: |
46 |
|
- new header file CTRL_SIZE.h for parameters maxCtrlArr2D, maxCtrlArr3D |
47 |
|
- redefine CPP option ALLOW_BOTTOMDRAG_CONTROL to |
48 |
|
ALLOW_BOTTOMDRAG_CONTROL_NONGENERIC |
49 |
|
- verification/hs94.1x64x5/ tests ALLOW_GENARR{2D,3D}_CONTROL |
50 |
|
|
51 |
|
checkpoint63q (2012/07/30) |
52 |
|
o pkg/autodiff: |
53 |
|
note about monitor and snap-shot of ad-variables: |
54 |
|
a) need to apply ADEXCH before monitor or output of ad-vars to include |
55 |
|
overlap contributions (was done for adjDump but missing for monitor). |
56 |
|
b) since ADEXCH implies adding overlap values to interior array, machine |
57 |
|
truncation error is expected when adding an ADEXCH call in the middle of |
58 |
|
the time-stepping (although mathematically identical). |
59 |
|
modifs: |
60 |
|
- fix some incorrect type (RL/RS, UV/scalar) in ADEXCH calls and ad-vars |
61 |
|
declaration (adEddyPsiX,adEddyPsiY in adcommon.h). |
62 |
|
- add new run-time params (dumpAdVarExch & mon_AdVarExch) to select how to |
63 |
|
apply ADEXCH before monitor or snap-shot of ad-variables: |
64 |
|
=0 : no ADEXCH ; =1 : do ADEXCH ; =2 : apply ADEXCH on a local copy. |
65 |
|
- implement new method (copy+adexch) for snap-shot and monitor of main model |
66 |
|
ad-vars (initially not used by default -> output unchanged). |
67 |
|
- change default (set to 2) to use new method and update few output_adm.txt |
68 |
|
with accurate ad-monitor (global_ocean.90x40x15, tutorial_global_oce_biogeo |
69 |
|
and both tutorial_tracer_adjsens tests). |
70 |
|
- switch 2 global_ocean.cs32x15 AD-tests to AB-2 (seaice_dynmix & thsice) |
71 |
|
and turn off momDissip_In_AB in the 2 other (needed for stable AB-3). |
72 |
|
o pkg/ctrl: |
73 |
|
enable the use of a variable number (maxCtrlArr2D, maxCtrlArr3D) of |
74 |
|
generic control variables via |
75 |
|
#define ALLOW_GENARR2D_CONTROL and/or #define ALLOW_GENARR3D_CONTROL |
76 |
|
Only required customization should be S/R ctrl_map_ini_genarr.F |
77 |
|
(routine in repository contains example) |
78 |
|
o pkg/exf: |
79 |
|
- fix and refine checking of surface-relaxation setting when using EXF |
80 |
|
o verification (adjoint exp): |
81 |
|
- reduce length of simulation by half for experiment global_ocean.cs32x15 |
82 |
|
(std, seaice & seaice_dynmix) and exp tutorial_dic_adjoffline; update output. |
83 |
|
o pkg/mom_common (mom_u/v_bottomdrag), pkg/shelfice (shelfice_u/v_drag) |
84 |
|
- replace if statements KE.ne.0 with KE.gt.0 to avoid sqrt of negative numbers |
85 |
|
of KE that can occur with aggressive optimization |
86 |
|
+ put quadratic bottom drag calculation in separated loops (only done if |
87 |
|
using bottomDragQuadratic) |
88 |
|
o model/src: CG2D_NSA |
89 |
|
- clean-up: stop if cg2dNormaliseRHS=T and AUTODIFF |
90 |
|
and replace GLOBAL_SUM calls with GLOBAL_SUM_TILE. |
91 |
|
- in test-exp that uses CG2D_NSA (bottom_ctrl & tutorial_tracer_adjsens), |
92 |
|
change cg2d residual target to be expressed in Wunits (=> do not normalise |
93 |
|
RHS ; this fix global_max Pb with TAF); update output. |
94 |
|
o verification/tutorial_tracer_adjsens: |
95 |
|
improve parameter consistency (and get rid of warnings): |
96 |
|
- use deltaTFreeSurf=deltaTtracer (better with NonLin FreeSurf); |
97 |
|
- switch Temp Adv Scheme from 81 to 80 (no limiter since theta < 0 is physical) |
98 |
|
- use staggerTimeStep (for stability) in som81; use default rotation period. |
99 |
|
o pkg/exch2: |
100 |
|
- with empty facet: fix compact-format (W2_mapIO=1) definition (was previously |
101 |
|
reset to 0 = 1 long line in X) |
102 |
|
o pkg/mdsio: |
103 |
|
- fix reading of dimensions from meta file for large-size domain |
104 |
|
o model/src: |
105 |
|
- fix saltIsActiveTr setting for IdealGas eosType (eosType is 6 character long); |
106 |
|
- to refine CS-grid check, add logical flag "hasWetCSCorners": true if using |
107 |
|
Cubed-Sphere Exch with CS-corners inside the domain; |
108 |
|
make new S/R INI_GLOBAL_DOMAIN from code in ini_linear_phisurf.F to calculate |
109 |
|
globalArea and to set hasWetCSCorners. |
110 |
|
- add warning if usingCurvilinearGrid and momAdvection in flux-form (missing |
111 |
|
metric terms); stop if hasWetCSCorners=T and momAdvection in flux-form. |
112 |
|
- re-activate the stop if useCDscheme and hasWetCSCorners=T (previously if |
113 |
|
useCDscheme and useCubedSphereExchange). |
114 |
|
o pkg/seaice/seaice_growth.F : |
115 |
|
- compute the SEAICE_DISABLE_HEATCONSFIX term accordingly |
116 |
|
for the (.NOT.useRealFreshWaterFlux).OR.(nonlinFreeSurf.EQ.0) |
117 |
|
when the previous code was not correct. |
118 |
|
- in all cases diagnoze the boundary condition mismatch to SIaaflux |
119 |
|
- in the case of useRealFreshWaterFlux.AND.(nonlinFreeSurf.GT.0) add |
120 |
|
that term to QNET (essentially to set the melt/freeze water to 0degC). |
121 |
|
when SEAICEheatConsFix is true, so that the ocean+ice budget heat is closed. |
122 |
|
o verification/global_ocean.cs32x15/input.seaice : |
123 |
|
- add SEAICEheatConsFix in data.seaice, ensuring closed ocean+ice heat budget. |
124 |
|
- add diagnostics (commented out) for budget test using my matlab codes (gcmfaces). |
125 |
|
- update results (output.seaice.txt) accordingly. |
126 |
|
o verification/lab_sea/input/data.seaice : |
127 |
|
- remove SEAICEheatConsFix, which is now be tested |
128 |
|
in global_ocean.cs32x15. The presently coded fix |
129 |
|
is only consistent with real fresh water + nlfs. |
130 |
|
- update results (output.txt) accordingly. |
131 |
|
o pkg/salt_plume: added diagnotic for salt tendency (oceSPtnd). |
132 |
|
o AD_CONFIG.h file: |
133 |
|
- in genmake2: remove "#undef ALLOW_ECCO_OPTIMIZATION" from AD_CONFIG.h; |
134 |
|
- remove #include "AD_CONFIG.h" from all included OPTIONS files and |
135 |
|
add it explicitly in each fortran src file where it is needed. |
136 |
|
motivation: header file AD_CONFIG.h is generated/modified after "make depend" |
137 |
|
thus introducing potentially wrong dependency; therefore, better to include |
138 |
|
it only where it's really needed, and after any other included OPTIONS file |
139 |
|
(less tempting to bring conditional includes according to ALLOW_ADJOINT_RUN |
140 |
|
or ALLOW_TANGENTLINEAR_RUN). |
141 |
|
|
142 |
|
checkpoint63p (2012/07/06) |
143 |
|
o pkg/autodiff: |
144 |
|
- rename S/R INI_AUTODIFF to AUTODIFF_INIT_VARIA ; |
145 |
|
- create new header file "AUTODIFF_PARAMS.h" for pkg/autodiff parameters |
146 |
|
which are now read from new parameter file "data.autodiff" (inAdExact |
147 |
|
previously in "data", use{KPP/GMRedi/SEAICE}inAdMode previously in data.pkg) |
148 |
|
- add file "data.autodiff" in all verification/*/input_ad/ directories. |
149 |
|
- add run-time parameter to turn On/Off SEAICEuseFREEDRIFT in adjoint/forward |
150 |
|
mode (used in global_ocean.cs32x15.seaice_dynmix test exp.) |
151 |
|
o verification/tutorial_tracer_adjsens/ |
152 |
|
- add extra sub-verification which uses "SOM" advection scheme |
153 |
|
(2nd Order-Moment Advection Scheme, Prather Limiter) with |
154 |
|
#define GAD_ALLOW_TS_SOM_ADV in GAD_OPTIONS.h |
155 |
|
and in data: |
156 |
|
multiDimAdvection=.TRUE., |
157 |
|
tempAdvScheme=81, |
158 |
|
saltAdvScheme=81, |
159 |
|
o model/src: |
160 |
|
- introduce ALLOW_BALANCE_RELAX which allow the removal |
161 |
|
of the global mean of relaxation terms by setting |
162 |
|
balanceThetaClimRelax and balanceSaltClimRelax |
163 |
|
- disable balanceEmPmR and balanceQnet in the case when useSeaice. |
164 |
|
This case is now treated appropriately in seaice_growth.F |
165 |
|
o pkg/seaice: |
166 |
|
- do balanceEmPmR and balanceQnet based on the net fluxes |
167 |
|
(SItflux) that enter the ocean+ice system rather than QNET |
168 |
|
and EMPMR. Works best in real fresh water. |
169 |
|
- SIatmFW, SIatmQnet, and SItflux computations had to be moved |
170 |
|
out of the diagnotics bloc, and stored in global arrays. |
171 |
|
|
172 |
|
checkpoint63o (2012/06/29) |
173 |
|
o vertical mixing schemes: |
174 |
|
- remove unused S/R CALC_BUOYANCY (left from branch-atmos merging) |
175 |
|
- replace computation of density (in Function STATE1, opps_calc.F) by a call |
176 |
|
to S/R FIND_RHO_SCALAR |
177 |
|
- pass sigmaR to S/R PP81_CALC, MY82_CALC (but not yet used) and to GGL90_CALC |
178 |
|
and use it for N^2 calculation in ggl90_calc.F (save 2 density computations); |
179 |
|
affects output (vermix.ggl90) at truncation level. |
180 |
|
o testreport: |
181 |
|
- change adjustment of SIZE.h for mpi+mth testing: preserve enough tiles |
182 |
|
(nSx,nSy) for the number of threads (from eedata.mth) |
183 |
|
o model/src: |
184 |
|
- remove 2nd set of calls at the top of initialise_varia.F (Adjoint part) |
185 |
|
related to Non_Lin Free-Surf or Bottom-Control (but not longer necessary). |
186 |
o verification/tutorial_tracer_adjsens/ |
o verification/tutorial_tracer_adjsens/ |
187 |
- compile with ALLOW_CG2D_NSA |
- compile with ALLOW_CG2D_NSA |
188 |
- run with nonlinFreeSurf=3 |
- run with nonlinFreeSurf=3 |