4 |
Notes on tags used in MITgcmUV |
Notes on tags used in MITgcmUV |
5 |
============================== |
============================== |
6 |
|
|
7 |
|
o pkg/exch2: |
8 |
|
- remove exch2_*xy_rx files: call was replaced with exch2_*3d_rx(myNz=1). |
9 |
|
o tools/genmake2 |
10 |
|
- remove "-pdefault" option: redundant with the use of "packages.conf"; |
11 |
|
- remove file pkg/pkg_default : set the default as a pkg group |
12 |
|
("default_pkg_list") defined in pkg/pkg_groups; |
13 |
|
- fix for case pkg/pkg_depend is missing (was hanging before); |
14 |
|
- add option "-pgroups" to specify a different pkg_groups than the default. |
15 |
|
o verification/adjustment.cs-32x32x1: |
16 |
|
add a "minimal" set-up test (code_min & input_min) which only compiles |
17 |
|
eesupp/src and the 2 pkgs (exch2 & debug) which don't need model/src & inc. |
18 |
|
o tools/genmake2 |
19 |
|
- extend pkg_depend rules to model & eesupp (e.g., if model depend on [pkg])) |
20 |
|
- fix details of checking for mnc & profile pkg when NetCDF is unavailable. |
21 |
|
o pkg/exf: merge exf_bulk_largeyeager04 into exf_bulkformulae because these |
22 |
|
files are nearly the same anyway. |
23 |
|
Step 1: make exf_bulkformulae look like exf_bulk_largeyeager04: |
24 |
|
- redefinition of tau(i,i) (by a factor of ustar) |
25 |
|
- 1./exf(Const/T) -> exf(-Const/T) (big change in the results) |
26 |
|
- replace rhonil by rhoConstFresh in computation of evap (bug fix) |
27 |
|
- replace u/vstress=tau*rd*ws*cw by tau*rd*u/vwind (changes results) |
28 |
|
- replace |
29 |
|
rd(i,j)= rdn(i,j)/(exf_one - rdn(i,j)/karman*psimh ) |
30 |
|
shn = sh(i,j,bi,bj)*rd(i,j)/rdn(i,j) |
31 |
|
by |
32 |
|
shn = sh(i,j,bi,bj)/(exf_one - rdn(i,j)/karman*psimh ) |
33 |
|
(changes results) |
34 |
|
-> exf_bulkformulae v1.22, |
35 |
|
update verification experiments lab_sea, offline_exf_seaice, seaice_obcs |
36 |
|
(lab_sea: output.hb87.txt 1.11, output.lsr.txt 1.25, output.salt_plume.txt 1.13, |
37 |
|
output.txt 1.63 |
38 |
|
offline_exf_seaice: output.seaicetd.txt 1.7 |
39 |
|
seaice_obcs: output.txt 1.10) |
40 |
|
Step 2: do the actual merge and remove exf_bulk_largeyeager04.F |
41 |
|
-> exf_bulkformulae v1.23, |
42 |
|
unfortunately requires updating lab_sea.salt_plume (6 matching digits), |
43 |
|
and global_ocean.cs32x15.icedyn (only 11 matching digits) |
44 |
|
Also update output_adm of exp. lab_sea (all 4) and offline_exf_seaice. |
45 |
|
o adjoint of exch-1: |
46 |
|
- pass high-level EXCH S/R through TAF (eesupp/src/exch_ad_diff.list) |
47 |
|
(note: was already like this when using EXCH-2) and remove flow dir |
48 |
|
and hand-written AD version of high-level EXCH S/R (pkg/autodiff); |
49 |
|
- provide flow-dir for low-level exch1 S/R (eesupp/src/exch1_ad.flow); |
50 |
|
- update pkg/exch2 diff list. |
51 |
|
|
52 |
|
checkpoint62g (2010/05/19) |
53 |
|
o eesupp/src (exch-1): |
54 |
|
- split exch_rx.F into Forward S/R (exch1_rx.F) and Adjoint S/R (exch1_rx_ad.F) |
55 |
|
and remove argument "simulationMode"; same thing for all exch_*rx_cube.F |
56 |
|
(renamed to exch1_*rx_cube.F). |
57 |
|
- change accordingly exch_*_rx.template and AD version in pkg/autodiff |
58 |
|
to call new exch1 S/R ; update Makefile and .cvsignore. |
59 |
|
- replace call to exch2_xy_rx S/R with exch2_*3d_rx(myNz=1) (will remove |
60 |
|
exch2_xy_rx later) |
61 |
|
Note: after updating your code, need to run "make clean" in eesupp/src |
62 |
|
o test experiment bottom_ctrl_5x5: |
63 |
|
new output_adm.txt with fewer grdchk & less monitor output. |
64 |
|
o model/src: |
65 |
|
remove the call to ini_cori in initialise_varia.F (just keep the usual one |
66 |
|
in initialise_fixed.F). More consistent with coriolis & horizontal grid |
67 |
|
beeing treated in the same way (ini_grid is not called a 2nd time). |
68 |
|
o pkg/exf: |
69 |
|
- rewrite exf_bulk_largeyeager04.F for better vectorization, changes |
70 |
|
global_ocean.cs32x15/input.icedyn (11 digits of agreement), updated |
71 |
|
- fix adjoint (used worked for ALLOW_ATM_WIND defined, works for this now) |
72 |
|
- cosmetic changes to exf_bulkformulae.F to make it look more like |
73 |
|
exf_bulk_largeyeager04.F |
74 |
|
o eesupp/src (exch-1): |
75 |
|
- Fix AD EXCH code for 2-D domain special cases (Nx=1 or Ny=1). |
76 |
|
- Separate buffer filling and MPI sending: allow EXCH-1 to work for local |
77 |
|
array (non-shared) when using MPI+MTH. Also reduces number of BARRIER |
78 |
|
(even without using MPI). |
79 |
|
- Message mode: move RecvAck setting (indicator of buffer being ready) |
80 |
|
from send_put to recv_get S/R (was useless before, but not sure if |
81 |
|
it's much more useful now); |
82 |
|
- Switch the order of sync: MPI-proc 1rst and then threads; |
83 |
|
- take out spin-waiting code (#undef EXCH_USE_SPINNING), use BARRIER instead. |
84 |
|
- fix AD code for communication mode ='get' (but not used). |
85 |
|
o model/src: |
86 |
|
initialise dPhiHydX,dPhiHydY inside calc_grad_phi_hyd.F (so that TAF does |
87 |
|
not drop it in S/R mddynamics, producing NaN in hs94.1x64x5 AD-test exp). |
88 |
|
o utils/matlab/rdmnc.m: adapt to be able to use the generic matlab netcdf API |
89 |
|
o pkg/ctrl: require a specific set of control variables and exf-flags for |
90 |
|
adjoint of seaice (stop in ctrl_check.F if conditions are not satisfied) |
91 |
|
o model/src: |
92 |
|
a) 1rst version of a new driver S/R to turn-off output freq and flags after the |
93 |
|
1rst forward sweep, to avoid over-writing output files during recomputations |
94 |
|
recomputations (& grdchk); called from cost_final.F (& ctrl_init_ctrlvar.F ?) |
95 |
|
b) 2nd version: |
96 |
|
- add specific pkg S/R for seaice & ptracers (called from S/R TURNOFF_MODEL_IO); |
97 |
|
- switch-off more output flags (exf_monFreq, chkPtFreq, dumpInitAndLast, |
98 |
|
writePickupAtEnd) + seaice & ptracers output; |
99 |
|
- do not switch off MNC flags (otherwise, won't get admonitor netcdf file) |
100 |
|
o model/src: |
101 |
|
- new S/R rotate_uv2en_rl (..._rs) that rotates vector fields. |
102 |
|
o pkg/exch2: |
103 |
|
- remove "simulationMode" from arg. list of S/R EXCH2_RX1,2_CUBE ; |
104 |
|
- add argument "signOption" to EXCH2_RX1_CUBE (will be needed for SM exch). |
105 |
|
o pkg/autodiff & exch2: |
106 |
|
process exch_uv_agrid_3d_rx.f & exch2_uv_agrid_3d_rx.f through TAF |
107 |
|
(for now, only if ALLOW_EXCH2 is defined). |
108 |
|
o pkg/autodiff: |
109 |
|
- include PACKAGES_CONFIG.h in exch*ad.flow & exch*ad.F |
110 |
|
(not supposed to be in CPP_OPTIONS.h) to get ALLOW_EXCH2 defined correctly. |
111 |
|
+ clean-up comments (_RS is not always real*4) |
112 |
|
- fix bug in ADEXCH_UV_3D_RX (without EXCH2, was calling the forward exch S/R) |
113 |
|
- add a stop in ADEXCH_UV_AGRID_3D_RX if trying to use it with EXCH2: |
114 |
|
was calling a forward exch2, which is wrong ; used in SEAICE & EXF pkgs. |
115 |
|
o testreport (AD-tests): |
116 |
|
no longer link files from dir "../input" (1rst link files from |
117 |
|
"../input_ad.[xx]" if secondary test "xx" and then from "../input_ad") |
118 |
|
|
119 |
|
checkpoint62f (2010/04/29) |
120 |
o model/src/the_main_loop.F: |
o model/src/the_main_loop.F: |
121 |
adjust store directives for seaice evp and multicategory according to |
adjust store directives for seaice evp and multicategory according to |
122 |
pkg/ecco/the_main_loop.F |
pkg/ecco/the_main_loop.F |
123 |
o adjoint: |
o adjoint: |
124 |
global_sum_ad was incomplete (noted many times by many people ;) |
global_sum_ad was incomplete (noted many times by many people ;) |
125 |
nice description by Jean U. as follows: |
nice description by Jean U. as follows: |
126 |
* allreduce(var) in global_sum.F can be interpreted as |
* allreduce(var) in global_sum.F can be interpreted as |
127 |
reduce(sum) followed by broadcast of sum. |
reduce(sum) followed by broadcast of sum. |
128 |
* The adjoint of that is |
* The adjoint of that is |
129 |
sum(adjoint) followed by broadcast(summed adjoint value) |
sum(adjoint) followed by broadcast(summed adjoint value) |
130 |
or in other words, allreduce(sum, adjoint vars) |
or in other words, allreduce(sum, adjoint vars) |
131 |
We were missing the sum(adjoint)! |
We were missing the sum(adjoint)! |
132 |
Benign, except(!) for "global" scalars appearing in tile loops (bi,bj) |
Benign, except(!) for "global" scalars appearing in tile loops (bi,bj) |