/[MITgcm]/MITgcm/doc/tag-index
ViewVC logotype

Diff of /MITgcm/doc/tag-index

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.1687 by gforget, Wed Jul 11 21:51:27 2012 UTC revision 1.1809 by mlosch, Thu Jan 17 10:43:01 2013 UTC
# Line 4  $Name$ Line 4  $Name$
4      Notes on tags used in MITgcmUV      Notes on tags used in MITgcmUV
5      ==============================      ==============================
6    
7    o pkg/seaice:
8      - add a parameter JFNKres_tFac that can replace JFNKres_t
9        (= JFNKres_tFac*JFNKresidual before JFNK solver)
10      - add a line search option to the JFNK solver
11      - move update of u/vIce and computation of initial residual into a separate
12        routine (same file); makes the code a little easier to read (?)
13      - the line search requires computation of the residual and for some reason
14        I cannot do the update of u/vIce at the beginning of the Newton loop
15        without changing the results, so we move computation of the new residual
16        also to the end of the Newton loop, even without the line search
17    o pkg/mdsio:
18      - write missing value (corresponding to undefined array value) to meta files;
19        skip this if missing value is one (UNSET_RL would be a better value for the
20        case of undefined missing value but it's current the default missing-value);
21        Also update mdsio_read_meta.F (reading timeInterval & missing-value).
22    o pkg/exf & thsice:
23      - for diagnostics purpose, fill-up and update Qsw array (+ fill the
24        diagnostics) even when SHORTWAVE_HEATING is #undef;
25    o verification/cfc_example:
26      - turn on pkg/layers with pkg/diagnostics (to test pkg/layers and to
27        illustrate how to use it).
28    o verification/offline_exf_seaice:
29      in input: add SEAICErestoreUnderIce=.TRUE., and reduce size of forcing
30        files to only one time-record.
31      in input.thermo: narrow the 2 bands of low initial ice-concentration near
32        N & S edges; switch on SEAICErestoreUnderIce=T; use pkg/diagnostics for
33        snapshot output; same mcPheePiston value as in thsice with
34        surf-current=0.2m/s.
35      in input.thsice: similar set-up as in input.thermo (channel with same seaice
36        initial conditions).
37    o verification/cfc_example:
38      - update file "data" with more standard choice (default rotationPeriod,
39        exactConserv=T, reduce ivdc_kappa to 10, remove multiDimAdvection=F,
40        set deltaTFreeSurf to deltaTtracer) and update the output.
41    o pkg/layers:
42      - fix bolus part so that it compiles with #undef GM_BOLUS_ADVEC;
43      - ensure that "layers_bolus" is switched to False when useGMRedi=False.
44    o verification/offline_exf_seaice:
45      - set all {field}period to zero for constant-in-time forcing (not tested
46        anywhere else).
47    o verification/offline_exf_seaice:
48      - dyn_lsr  : use pkg/seaice S/R (instead of pkg/thsice) to advect sea-ice;
49      - dyn_jfnk : use pkg/thsice S/R (instead of pkg/seaice) to advect sea-ice.
50    o model/src:
51      - implement Finite-Volume method for (hydrostatic) presure gradient
52        from S.-J. Lin (QJRMS 1997), for atmosphere using sigma-coordinate.
53    o pkg/seaice: implement EVP* by Lemieux et al. (2012).
54      - In order to be compatible with the default EVP code, this requires changing
55        the EVP code around a little; and because any small change immediately
56        breaks the lab_sea.hb87 verification experiment, the reference output is
57        updated two times (each time the remaining aggrement was only 2 digits):
58        - after replacing 1/dt by 1*recip_dt with a precomputed recip_dt
59        - after replacing 1/(1+0.5*dt/tau) by a/(a+1), with a=2*tau/dt
60        The adjoint test lab_sea.evp also needed to be updated.
61      - Turn on EVP* by setting SEAICE_deltaTevp as before, and setting
62        SEAICEuseEVPstar=.true.; for EVP* SEAICE_deltaTevp does not need to be
63        a factor of SEAICE_deltaTdyn, and you can set the number of EVP steps
64        explicitly with SEAICEnEVPstarSteps (thereby overriding the default of
65        INT(SEAICE_deltaTdyn/SEAICE_deltaTevp)). Controlling EVP* is deliberately
66        kept obscure, because I need to test it a little more.
67    o pkg/cheapaml:
68      - fix few incorrect type (_RL/_RS) in subroutine calls.
69    o pkg/seaice:
70      - new S/R SEAICE_MAP_RS2VEC (similar to SEAICE_MAP2VEC) to map _RS arrays
71        to _RL vector; this fixes JFNK code when compiling with "-use_r4" option.
72    o model/src:
73      - add a warning if using select_rStar=2 with nonlinFreeSurf <> 4;
74        change (in input_ad*/data) select_rStar from 2 to 1 for AD verification
75        experiments global_ocean.cs32x15 & tutorial_tracer_adjsens (+ update output)
76    o pkg/cheapaml:
77      - replace "273.1 _d 0" by celsius2K in pkg/cheapaml/cheapaml.F and
78        update output of experiment cheapAML_box.
79      - store in CHEAPAML.h coeffs ssq[0:2] for saturation specific humidity,
80        and set them only in one place (cheapaml_readparms.F).
81      - replace "273.16 _d 0" by celsius2K & replace "3.14159 _d 0" by constant "PI"
82      - remove re-setting of main-model parameter "celsius2K" (in cheapaml_readparms)
83        and re-setting of cheapAML params "lath" & "p0" (in cheapaml_init_varia).
84    o model/src/the_main_loop.F:
85      - fix revision 129 : need both ALLOW_ECCO and ALLOW_ECCO_EVOLUTION.
86    o pkg/seaice:
87      - remove legacy branch code.
88      - retire SEAICE_GROWTH_LEGACY and SEAICE_CAP_HEFF accordingly.
89    o verification/*/code*/SEAICE_OPTIONS.h:
90      - remove documentation for retired CPP flags (SEAICE_GROWTH_LEGACY,
91        SEAICE_CAP_HEFF).
92    o pkg/cheapaml:
93      - use standard routine (S/R GET_PERIODIC_INTERVAL) to decide when it is time
94        to load new forcing fields.
95      - add missing "_d 0" where it's needed; + some editing (improve indentation).
96      - remove switch to "-r8" compiler option (no longer needed) in verification
97        cheapAML_box, keep same output (small trucation error differences).
98    o verification/offline_exf_seaice:
99      - add thermodynamics only test.
100    o verification/cheapAML_box:
101      - split the domain in 8 (2x4) tiles; add MPI and multi-threaded test;
102        keep same output (same 14 digits for cg2d).
103      - switch on "-r8" compiler option (some numerical values are missing
104        the "_d 0") and update output (only 6 digits for cg2d were preserved).
105    
106    checkpoint64b (2012/12/24)
107    o pkg/cheapaml:
108      - remove un-used variables (Qnet,EmPmR) from pickup files.
109      - store tendency of advected variables into cheapaml pickup file
110        and fix the AB-2 restart.
111    o verification/offline_exf_seaice and lab_sea adjoint:
112      - switch to new code (#undef SEAICE_GROWTH_LEGACY).
113      - switch to 4 time steps in offline, consistent with lab_sea.
114      - match parameters from SEAICE_GROWTH_LEGACY branch in data.seaice.
115      - update results after change of experiment seaice.
116    o pkg/seaice:
117      - remove option SEAICE_MULTICATEGORY; has been replaced with run-time
118        parameter SEAICE_multDim. Issue a warning if SEAICE_MULTICATEGORY is
119        still defined since SEAICE_multDim needs to be set to MULTDIM value (from
120        SEAICE_SIZE.h) to recover previous #define SEAICE_MULTICATEGORY default.
121    o model/src:
122      - add run-time parameter to select CG2D solver minimum-residual solution
123        (in case of a poor convergence).
124    o pkg/seaice/seaice_lsr.F
125      - move calculation of matrix coefficients into new
126        S/R SEAICE_CALC_LSR_COEFFS; for now this routine remains in the same
127        file; the main purpose of this change is to be able to reuse the code
128        in S/R SEAICE_PRECONDITIONER
129      - modify the computation of the residual so that the mass of sea-ice
130        is not used twice; this simplifies the calculations, but since
131        the residual is never used except when LSR_mixIniGuess.ge.4---and this is
132        not tested in testreport---this does not affect the testreport results.
133    o verification/seaice_obcs:
134      - disable SEAICE_GROWTH_LEGACY; reset input files to match those of
135        verification/lab_sea/input.salt_plume; changes results/output.txt*
136    o model/src:
137      - adapt quasi-hydrostatic formulation to work with p or p* coordinate.
138    o pkg/seaice:
139      - improve description of parameters in seaice_fgmres.F and start
140        cleaning up the code
141      - change name of SCALPROD to SEAICE_SCALPROD and modify meaning of
142        second argument
143      - add a metric based on grid cell area to SEAICE_SCALPROD; update
144        results of offline_exf_seaice.dyn_jfnk
145      - compute initial residual norm in seaice_jfnk based on SEAICE_SCALPROD
146    o pkg/aim_v23:
147      - fix an other bug in dissipation heating (grid-cell area was missing).
148    o model/src + pkg/seaice:
149      - add global (multi-tile) linear solver for pair of tri-diagonal system
150        along X and Y lines, respectively for U and V component.
151        Note: 1) MPI and cube-exchange not yet coded.
152            2) probably not accurate for poorly conditioned / large size problem.
153      - add option for SEAICE_LSR to use global (multi-tile) tri-diagonal solver;
154        default: not compiled and not used.
155    o pkg/seaice:
156      - first attempt at a multi-threaded fgmres solver for the JFNK solver:
157        introduce bi/bj loops and use global_sum_tile_rl instead of
158        mpi_allreduce in seaice_fgmres.F
159      - improve diagnostics output for fgmres solver (seaice_fgmres.F)
160      - replace a few unnecessary goto statements by if-blocks  (seaice_fgmres.F)
161      - add a verification experiment for JFNK in offline_exf_seaice
162    o verification:
163      - change (for now, only fwd test) offline_exf_seaice experiment:
164        use a re-entrant channel with idealized coastline (trapezoidal shape)
165        at southern boundary to explore seaice dynamics and thermodynamics
166        with simple forcing. Main set-up has dynamics+thermo and SST relaxation;
167        secondary test (input.thsice) use thermodynamics only with SST relaxation.
168      - add seaice-dynamics only secondary test using LSR and pkg/thsice advection.
169    o pkg/exf:
170      - disable "sstExtrapol" when Nr=1
171    o verification:
172      - add new experiment "cheapAML_box" (simple 1 layer set-up from Bruno Deremble)
173        to test pkg/cheapaml.
174    o pkg/aim_v23 & pkg/shap_filt:
175      - fix dissipation heating (erroneous gravity multiplication factor).
176    o pkg/seaice:
177      - remove unused field pressPre from jfnk solver
178      - rename two subroutines in seaice_preconditioner.F
179    o eesupp/src:
180       - S/R MDSFINDUNIT avoids reserved unit numbers (scrUnit1, eeDataUnit ...)
181    o pkg/seaice/seaice_preconditioner.F: fix preconditioner once again
182       - remove wrong parts of the rhs and the lhs (were in there
183         because I did not understand the concept of this preconditioner)
184       - add an exchange between u- and v-sweep. This increases communication
185         by a factor of two but improves the convergence of jfnk. Ideally,
186         one would like the u- and v-sweep to be independent. So far within
187         undocumented ifdefs
188       - reorganize the extra computations for printing the residuals
189    o tools/genmake2:
190      - comment out the "mpif.h" include in NetCDF test programm (for MPI built)
191        since it's not necessary (and was preventing to use MNC in some cases).
192    
193    checkpoint64a (2012/11/16)
194    o pkg/autodiff:
195      - improve pkg-internal logical parameter switch (inAd/inFwd mode) so that
196        autodiff_readparms.F no longer depends on calling order (within
197        packages_readparms.F) and no longer requires to include ${PKG}_PARMS.h):
198        rename param turnFreeDriftInAdMode to SEAICEuseFREEDRIFTswitchInAd
199        and change param SEAICEuseDYNAMICSinAdMode to SEAICEuseDYNAMICSswitchInAd.
200    o pkg/obcs:
201      - adding tidal velocity forcing capability to obcs
202        for usage example, see verification/seaice_obcs/input.tides
203    o pkg/seaice:
204      - turn the LSR-relaxation parameters WFAU/V into runtime parameters
205        SEAICE_LSRrelaxU/V
206      - introduce runtime parameter SEAICEetaZmethod (=0 by default)
207    o pkg/aim_v23:
208      - implement heating from friction (bottom friction and stratospheric drag).
209    o pkg/shap_filt:
210      - fix diagnostic "SHAP_dKE" (was 2 time smaller); implement heating from
211        dissipation but only for Shap_funct=2, active when addFrictionHeating=T.
212    o model/src:
213      - move AddMass common block from DYNVARS.h to FFIELDS.h; allow to read-in
214        time-constant addMass field from file (addMassFile);
215      - support for heating due to friction (and Kinetic Energy dissipation):
216        add option, run-time switch and 3-D field array + support code ; each pkg
217        or S/R can add heating contribution (if there is a sink of KE); the sum is
218        accounted for as a Temperature tendency term (EXTERNAL_FORCING_T).
219    o pkg/seaice:
220      - complete merge of ITD code into seaice_growth.F
221        from MITgcm_contrib/torge/itd/code/
222        no verification so far, but Torge Martin tested
223        "1-D test case and Beaufort set up;
224        deliver okay results after 1 model year."
225      - complete merge of SEAICE_SIZE.h into all relevant routines
226      - move computation of eta at Z-points into calc_viscosities
227        + introduce global field etaZ
228        + add different methods for computing etaZ, for now the old
229          method (simple averages of eta to Z-points) is hardwired
230        + replace etaMeanZ by etaZ in seaice_lsr, seaice_calc_residual,
231          seaice_preconditioner
232      - simplify computations for SEAICE_ZETA_SMOOTHREG
233      - seaice_preconditioner:
234        + replace one remaining press by pressLoc (mistake)
235        + adjust printing of residuals
236      - improve I/O of diagnostics of JFNK in seaice_jfnk.F:
237        + add (SEAICE.h) and rename some counters (initiliased in
238          seaice_init_fixed.F)
239        + add _BEGIN/END_MASTER (myThid)  around print statements
240        + print total number of iterations and failures over SEAICE_monFreq
241          interval to STDOUT
242      - move control over output-messages by fgmres to seaice_jfnk to save
243        some operations
244      - move resetting initial guess for fgmres outside of seaice_fgmres_driver
245        in order to make restarts with sol .ne. zero (fgmres with restarts)
246        (seaice_jfnk.F, seaice_fgmres.F)
247      - seaice_calc_l/rhs.F: replace maskW/S by maskInW/S; this fixes
248        a serious convergence problem when open boundaries are involved
249    o pkg/ggl90: fix computation of control volumes for the case of
250      ALLOW_GGL90_HORIZDIFF (probably not used very often): move control volumes
251      up half a grid cell from C-centered to W-centered (pointed out by C. Eden)
252    o pkg/seaice: simplify seaice_evp by avoiding use of extra fields u/vIceC
253    o pkg/autodiff
254      - Add inAdMode switch for SEAICEuseDYNAMICS:
255        SEAICEuseDYNAMICSinAdMode
256        (extend logic in ADAUTODIFF_INADMODE_SET)
257    o pkg/seaice
258      - Step 1 of merging ice-thickness distribution (ITD) code from
259        MITgcm_contrib/torge/itd/ (author: Torge Martin)
260        The code implements concept laid out in Thorndike et al. (1975);
261        code is enabled via CPP flag SEAICE_ITD
262        nITD (in SEAICE_SIZE.h) defines number of ice thickness categories;
263        code is not complete yet!!
264      - SEAICE_SIZE.h now included in almost all seaice routines
265    o verification (using seaice):
266      - switch back seaice-dynamics (+ lower SOLV_MAX_ITERS) in ADM exp.
267        global_ocean.cs32x15.seaice ; update results.
268      - compile B-grid dynamics in FW test exp 1D_ocean_ice_column ;
269      - compile C-grid dynamics with #define SEAICE_ALLOW_JFNK in FW test exp
270        offline_exf_seaice (previously compiling B-grid).
271    o pkg/exf:
272      - fix some STOP conditions in exf_check.F (from Aug 28, modifs did not allow
273        to specify neither just 1 comp of wind or wind-stress, nor no surface momentum
274        forcing): just replace CPP option ALLOW_ATM_WIND with run-time param useAtmWind.
275    o pkg/layers (adjust changes from Sept 19):
276      - do snap-shot output and fill diagnostics from inside iLa loop (layers_calc.F)
277        this allows to remove "layers_maxNum" dimension from all layers arrays.
278    o pkg/layers (adjust changes from Sept 19):
279      - remove ALLOW_LAYERS_OUTPUT ; fix snap-shot and time-ave output ;
280      - snap-shot extended to all type of layers (not just the 1rst type);
281      - remove layers variables when corresponding CPP option is undef.
282    o pkg/layers:
283      - rename pkg/layers variable and add new output (layer exist & un-weighted
284        velocity in layer)
285    o pkg/seaice:
286      - simplify (?) ocean-drag coefficent computations by using
287        the same routine in all three solvers (saves some code lines)
288      - remove global fields DRAGA and DRAGS from C-grid code and
289        declare them locally in lsr.F (the only place where they are
290        still used)
291      - update AD output of lab_sea.evp (very sensitive anyway).
292    o pkg/seaice: add Jacobian-free Newton Krylov solver for ice dynamics
293      (Lemieux et al. 2010, 2012). Turn on with the usual SEAICE_ALLOW_JFNK
294      and SEAICEuseJFNK=.true. A few things to note:
295      - involves a FGMRES, that is parallel but very inefficient,
296        because of many scalar products (global sums) in the Gram-Schmidt
297        orthogonalization method. Needs to be replaced. Original code
298        from J.-F. Lemieux
299      - preconditioner for FGMRES is a stripped down version of LSOR
300      - SOLV_MAX_ITERS is now used for LSOR as a solver and as a
301        preconditioner. For the preconditioner, the default is set to 10.
302      - Jacobian times vector is computed with finite differences
303      - marginally related to JFNK-solver: add a smooth regularization for
304        zeta with tanh that will improve convergence (Lemieux and Tremblay,
305        2009) for any implicit solver (not implemented for EVP because EVP
306        does not need this regularization in the first place). Define
307        SEAICE_ZETA_SMOOTHREG in SEAICE_OPTIONS.h to use.
308    o eesupp/src:
309      - check in genmake2 that intrinsic S/R flush is available.
310      - add S/R to flush IO unit (if intrinsic S/R flush is available)
311      - flush standard & error msg unit before MPI termination
312      - if debugMode, flush IO unit after printing msg
313    o pkg/ctrl:
314      - ctrl_unpack.F, ALLOW_GENARR3D_CONTROL code: fix missing argument in call
315        to ctrl_set_unpack_xyz.
316    
317    checkpoint64 (2012/10/09)
318    o pkg/shelfice
319      - in mom_fluxform.F, mom_vecinv.F:
320        CALL SHELFICE_V_DRAG(bi,bj,k,vFld,KE,KappaRU,vF,myThid)
321        Bug fix KappaRU -> KappaRV
322        does not change verification/isomip but may change other setups
323        (presumably constant KappaRU=KappaRV)
324      - fix diagnostics SHIU/Vdrag (thanks to Tom Millgate)
325    o pkg/obcs:
326      - fixed some indexing bugs in obcs_seaice_sponge.F
327      - added obcs relaxation subroutines for HSALT and HSNOW
328      - changes verification/seaice_obcs/results/obcs_seaice_sponge.F
329    o pkg/seaice:
330      - add "multicategory" parameterization for snow in analogy to ice,
331        default is off for now.
332    o pkg/obcs:
333      - added obcs_seaice_sponge.F for obcs relaxation of seaice variables;
334        see verification/seaice_obcs/input.seaiceSponge for example application.
335      - remove local commom bloc "OBCS_GLOBAL" in obcs_readparms.F and do all the OB
336        index setting by master-thread. This fix multi-threads Pb in previous modifs.
337    o pkg/layers :
338      - add diagnostics to pkg/layers
339      - move the meat of pkg/layers from layers_calc.F to layers_fluxcalc.F
340        (from R.Tulloch). Layers_calc.F now calls layers_fluxcalc.F accordingly.
341    o pkg/generic_advdiff/gad_implicit_r.F :
342      - fix ADVr diagnostics in case of both implicit vertical advection and diffusion.
343    o pkg/seaice/seaice_growth.F:
344      - fix SItflux diagnostics in virtual salt flux + balanceEmpmr case.
345    o pkg/obcs:
346      - change default setting of OBCS_UVICE_OLD from defined to undef;
347      - use new parameter OB_indexNone for null index value (instead of hard-coded 0)
348        in all pkg/obcs code and in other pkgs; remove k loop in obcs_check_depths.F;
349      - pass OB_indexNone as (new) argument to S/R CTRL_MASK_SET_[X,Y]Z;
350      - change OB null index value (OB_indexNone) to -99 ; this fix the problem
351        with Southern & Western OB at a tile edge (at least in a simple set-up).
352    o pkg/obcs:
353      - change settings of OB index in case OB coincides with tile edge (shared by
354        2 tiles), so that common OB location is registered by both tiles (instead of
355        only 1). However, for Southern and Western OB, index value = 0 is not
356        recognized as valid OB index (=default null value) and needs to be fixed.
357      - modify accordingly OBCS_BALANCE_FLOW and OBCS_MONITOR (avoid double counting)
358      - new parameter "OB_indexNone" for null index value (for now, still zero)
359        to replace hard-coded null index value of zero.
360    o pkg/exch2:
361      - improve W2_USE_E2_SAFEMODE (faster) and W2_E2_DEBUG_ON:
362        always check buffer-size (but outside the loop); move checking for valid
363        index from W2_USE_E2_SAFEMODE to W2_E2_DEBUG_ON; in W2_E2_DEBUG_ON,
364        print each tile and point connection only if |W2_printMsg|>= 2 and 3.
365    o pkg/ctrl (pack & unpack):
366      - in ctrl_pack.F & ctrl_unpack.F, use the same local file-name variable
367        (locally defined) for different variables (+ remove the variable-specific
368        file name in CTRL_GENARR.h). For now, only implemented for GENARR2/3D_CONTROL
369        (to be extended to other local file names in ctrl.h).
370    o pkg/flt:
371      - add a FLT_Iter0 option (similar to PTRACERS_Iter0).
372    o pkg/mdsio:
373      - fix missing STOP in mdsio_readvec_loc.F (case ioUnit=0) when file is missing
374    o tools/genmake2:
375      - add similar dependences for target EXE_AD & EXE_FTL as we have for EXECUTABLE
376        (added by Alistair in version 1.51 for building without make depend);
377      - remove Header files list (H_SRC_FILES) from the dependence of targets
378         ad_input_code.f & ftl_input_code.f (not clear why it was added in the first
379        place in version 1.23): this save going through staf when unrelated header
380        file has been modified.
381       Note: for an intermediate target (e.g., ad_input_code.f or adtaf) without
382        "make depend" step, still need to do "make links" before "make adtaf".
383    o eesupp/src (+ few pkg src files) & genmake2:
384      - finish to remove ALWAYS_USE_MPI in source code that TAF does not see;
385      - no longer set ALWAYS_USE_MPI in Makefile (was done by genmake2).
386      - improve genmake2 checking for ALLOW_${PKG} in CPP_OPTIONS.h files (distinguish
387         upper/lower case ; account for space between "#" and undef/define)
388    o pkg/flt (with exch2):
389      - cleaning: fix so that it compiles; move remaining MPI calls out of flt_exch2.F;
390      - simplify threads synchronisation; fix (many issues) multi-threaded with MPI.
391    
392    checkpoint63s (2012/09/05)
393    o pkg/ecco:
394      - remove #ifdef ALLOW_SMOOTH_CORREL3D brackets.
395      - add more relevant #ifdef ALLOW_SMOOTH ones.
396      - sort out useAtmWind, useSMOOTH, ctrlSmoothCorrel2D.
397    o pkg/ctrl:
398      - CTRL_OPTIONS.h : document CPPs related to smoothing; ALLOW_SMOOTH_CORREL2D/3D,
399        ALLOW_CTRL_SMOOTH, ALLOW_SMOOTH_CTRL2D, ALLOW_SMOOTH_CTRL3D.
400      - ctrl.h : document run time params doInitXX, doMainPack, doMainUnpack, doPackDiag,
401        doSinglePrecTapelev (audodiff param!), ctrlSmoothCorrel2D (new) and
402        ctrlSmoothCorrel3D (new).
403        The added ctrlSmoothCorrel2D/3D replace the old ALLOW_SMOOTH_CORREL2D/3D CPP.
404      - ctrl_readparms.F : initialise ctrlSmoothCorrel2D/3D and read from namelist.
405      - ctrl_init.F ctrl_pack.F ctrl_unpack.F : switch off ustress/vstress
406        controls when useAtmWind, and vice versa.
407      - ctrl_map_ini_ecco.F : UVEL0, VVEL0, edtaux, edtauy cannot be smoothed as tracers.
408      - ctrl_get_gen.F : replace #ifdef ALLOW_SMOOTH_CORREL2D with
409          #ifdef ALLOW_SMOOTH, IF ctrlSmoothCorrel2D, IF useSMOOTH.
410      - ctrl_map_ini_gen.F : replace #ifdef ALLOW_SMOOTH_CORREL3D with
411          #ifdef ALLOW_SMOOTH, IF ctrlSmoothCorrel3D, IF useSMOOTH.
412      - ctrl_set_pack_xy[z].F, ctrl_set_unpack_xy[z].F:
413        replace ALLOW_SMOOTH_CORREL2D/3D brackets with ctrlSmoothCorrel2D/3D.
414    o pkg/smooth:
415      - remove un-necessary includes.
416      - remove ALLOW_SMOOTH*D and ALLOW_SMOOTH_CORREL*D brakets.
417        Those CPP options were never defined, and not necessary.
418    o model/src:
419      - fix CPP brackets in ini_mixing.F (GM_background_K belongs to gmredi).
420      - standard treatment of useSMOOTH.
421    o pkg/autodiff:
422      - add LOGICAL useGGL90inAdMode, useGGL90inFwdMode, useSALT_PLUMEinAdMode,
423        useSALT_PLUMEInFwdMode allowing to switch off ggl90 and salt_plume adjoint.
424    o pkg/exch2:
425      - add "if usingMPI" where it was missing (in exch2_rx?_cube*.template)
426        + start to remove ALWAYS_USE_MPI in source code that TAF does not see.
427      - make new S/R W2_MAP_PROCS out of w2_eeboot.F to setup exch2 CommonFlag
428        and tiles to process mapping.
429      - re-arrange 3 header files (W2_EXCH2_PARAMS.h, _BUFFER.h & _TOPOLOGY.h)
430        moving /EXCH2_FILLVAL_RX/ & /W2_EXCH2_COMMFLAG/ to W2_EXCH2_TOPOLOGY.h;
431        rename "exch2_tProc" to "W2_tileProc" and move seting of e2FillValue_RX
432        from w2_eeboot.F to w2_readparms.F.
433    o eesupp/src:
434      - set exchNeedsMemsync & exchUsesBarrier according to "usingMPI" (instead of
435        ALWAYS_USE_MPI) + moved from ini_communication_patterns.F to eeset_parms.F;
436        also move setting of exchCollectStatistics from exch_init.F to eeset_parms.F
437      - in eedie.F and all_proc_die.F, always call MPI_FINALIZE when ALLOW_USE_MPI
438        is defined (remove condition on usingMPI) to match cases where MPI_INIT
439        has been called.
440      - fix bug I put in previous modif of exch_sm_3d_rx.template (not much used);
441      - change default (non-MPI) value of myPid (from 1 to 0) to match MPI settings
442        (so that on 1 proc, get same myPid independently of usingMPI)
443      - add a stop if multi-procs but usingMPI=F ; stop also if usingMPI=T and
444        useCubedSphereExchange with EXCH-1 (safer).
445      - add "if usingMPI" where it was missing (+ start to remove ALWAYS_USE_MPI).
446    o pkg/ggl90:
447      - fix bug in filling corner mask array "mskCor" (FILL_CS_CORNER_TR_RL call)
448        used in ALLOW_GGL90_SMOOTH code.
449    o pkg/flt:
450      - fix typo in FLT_WITHOUT_Y_PERIODICITY (the effect was to ignore stopping
451        floats at the Southern end of the domain).
452    o eesupp/inc:
453      - add a list of CPP-options which can be set by Makefile (DEF_IN_MAKEFILE.h);
454        but not used (and not to be used) anywhere, just for documentation.
455    o pkg/autodiff, exf, ptracers & seaice (AD & TL output):
456      - comment out the very nasty "writeBinaryPrec = writeStatePrec" line, since:
457        a) can damage previously written records in any other multi-record files.
458        b) if needed, can easily do it cleanly, by calling S/R WRITE_REC_3D_RL/S.
459    o tools/genmake2:
460      - define variable MAKE within Makefile and use it in place of 'make';
461      - update AD_CONFIG.h (if needed) before building any of the executable
462        (forward, adjoint or tangent-lin); this involves a 2nd invocation of make;
463        and add the usual #ifndef/#define AD_CONFIG_H in AD_CONFIG.h;
464      - always print usual warning comment 'this file is automatically generated'
465        from script convert_cpp_cmd2defines (+ remove this warning from genmake2).
466    o pkg/cheapaml:
467      - updated to correspond to the code used in accepted paper (Nico Wienders).
468    o pkg/exf:
469        added run time switch useAtmWind to replace ALLOW_ATM_WIND cpp switch.
470        ALLOW_ATM_WIND now just sets the useAtmWind default (see exf_readparms.F)
471        and force defines ALLOW_BULKFORMULAE (EXF_OPTIONS.h).
472    o pkg/exf, autodiff, ctrl, ecco and seaice:
473        remove ALLOW_ATM_WIND brackets, or replace them with useAtmWind ones.
474    o pkg/ctrl, ecco:
475        allow to compile both ALLOW_U/VSTRESS_CONTROL and ALLOW_U/VWIND_CONTROL.
476        Depending on useAtmWind, one is inactive, and the other is active (see
477        exf_getffields.F/exf_getsurfacefluxes.F).
478    o tools/genmake2:
479      - improve error msg when failing in 2nd test of check_for_broken_Ff
480      - fix option '-makefile' short-name (-mf according to genmake2 -help)
481      - source local config file "genmake_local" just after processing the genmake2
482        command arguments (previously done before processing arg).
483    o pkg/grdchk:
484      - add a call to TURNOFF_MODEL_IO for Tangent-Linear run (in this case, call
485        to this routine from cost_final has been dropped in g_cost_final)
486      - improve printed information (more explicit msg, no longer using "print *,"
487         fix fcpertminus printed value).
488    o model/src:
489      - move call to COST_INIT_VARIA out of packages_init_variables.F directly
490        into initialise_varia.F (just after calling PACKAGES_INIT_VARIABLES):
491        this prevents getting cost-funct reset in adinitialise_varia recomputations.
492    o pkg/dic:
493      - move initialisation of "freefe" array from from dic_biotic_forcing.F to
494        fe_chem.F: this prevents TAF from dropping this initialisation in TLM code.
495    o pkg/grdchk:
496      - grdchk_main.F : added CALL GLOBAL_SUM_INT( ierr , myThid )
497      - grdchk_getadxx.F etc. : omit I/O if ierr.EQ.0
498    o pkg/autodiff/ctrl/grdchk :
499      - attempt to sort out what works and what does not,
500        with regard to I/O, and to warn/stop accordingly.
501    o pkg/grdchk:
502      - attempt to fix grdchk in the case of useSingleCpuIO.
503      - "if ( myProcId .EQ. grdchkwhichproc .AND. ierr .EQ. 0 )"
504       statements were moved from grdchk_main.F and into
505       grdchk_getadxx.F grdchk_getxx.F grdchk_setxx.F.
506      - a global sum is applied to record numbers icvrec/layer
507       out of grdchk_loc so that they be passed to I/O routines.
508    o pkg/smooth:
509      - fix recomputation that appeared with nlfs : use smooth_recip_hFacC,
510        smooth_hFacW, smooth_hFacS (copied at init_fixed) in 3d case.
511    o verification/testreport:
512      - add option '-tlm' for Tangent-Linear test (-adm,-oad,-tlm are all exclusive);
513      - can also use compressed (gzip) reference output file;
514      - change format (in pkg/grdchk) of TLM output (+ add forward gradient)
515        to be easier to collect by testreport.
516      - update existing TLM output (half out-of-date by more than 3 yrs).
517      - report NETCDF & LAPACK settings (from genmake2) in output dir.
518      - report run-time in each individual summary (previously only for AD test);
519        for TLM test, add also TAF version.
520      - add daily TLM test on (old) aces cluster + weekly test on baudelaire.
521    
522    checkpoint63r (2012/08/15)
523    o tools/genmake2:
524      - fix Makefile for target ftlall (+ update files to clean after make ftlall)
525    o pkg/ecco/ecco_cost_final.F :
526      - fix fc print statements (to stdout and costfunction0000) so
527        that the printed value is always after the global sum.
528    o pkg/seaice/seaice_dynsolver.F :
529      - fix ice strength assymptote at SEAICE_area_max<1
530        (no change for the standard case of SEAICE_area_max=1)
531    o some cleaning:
532      - pkg source files: ensure that all *.F files from each pkg included the
533        corresponding ${PKG}_OPTIONS.h file (except stand-alone src file which
534        only includes CPP_EEOPTIONS.h); fix S/R CTRL_SMOOTH ; update AD experiment
535        code_ad/*.F src files; add new option-file in pkg/admtlm + corresponding
536        includes;
537      - model/src: add PACKAGES_CONFIG.h wherever ALLOW_AUTODIFF[_TAMC] is used.
538      - ALLOW_DIFFKR_CONTROL: add a stop in S/R CTRL_CHECK in case ALLOW_3D_DIFFKR
539        is undef; also define /DYNVARS_DIFFKR/ common block in DYNVARS.h when
540        ALLOW_DIFFKR_CONTROL is defined, to allow to compile and reach this stop.
541      - update option-file CPP_OPTIONS.h of all AD experiments:
542        * no longer include PACKAGES_CONFIG.h ;
543        * includes ECCO_CPPOPTIONS.h if PACKAGES_CONFIG.h has been included ;
544        * def/undef ALLOW_3D_DIFFKR independently of ALLOW_DIFFKR_CONTROL (before
545          including ECCO_CPPOPTIONS.h).
546    o pkg/cost, pkg/ctrl, pkg/ecco option-file:
547      - clean-up and split content of old pkg/ecco/ECCO_CPPOPTIONS.h file into
548        separated pkg option-file (done according to old doc from ECCO_CPPOPTIONS.h,
549        not necessary accurate).
550      - add a template for option-file ECCO_CPPOPTIONS.h, mostly empty, in
551        pkg/autodiff, i.e., the 1rst pkg to compile for adjoint built, with lines to
552        deliberately break compilation (a remainder that it needs to be customized)
553      - in pkg/ecco, includes ECCO_OPTIONS.h instead of COST_OPTIONS.h
554      - rename COST_CPPOPTIONS.h to COST_OPTIONS.h
555      - rename CTRL_CPPOPTIONS.h to CTRL_OPTIONS.h
556    o tools/genamke2:
557      - check for lapack.
558    o pkg/cost and pkg/ecco : attempt to sort out some of the limiting intricacies.
559      - pkg/cost.cost_final.F : allow for use of pkg/ecco and pkg/cost cost functions
560        jointly. The exclusive ifdefs were removed, to add costs terms (when defined)
561        from both packages.
562      - the fc global sum in pkg/ecco/ecco_cost_final.F was removed accordingly.
563      - for objf_atl we use either the pkg/ecco or the pkg/cost term depending on CPPs.
564      - pkg/ecco and model/src : add CPP brackets around pkg/cost and pkg/ctrl includes
565        of "CTRL_SIZE.h" "ctrl.h" "ctrl_dummy.h" "optim.h" / "cost.h" accordingly.
566    o pkg/cost : add comments to explain special and/or untested setups.
567    o pkg/exf:
568      - use EXF_OPTIONS.h to set pkg/exf options except if done in ECCO_CPPOPTIONS.h
569        (previously, ALLOW_AUTODIFF_TAMC was controling this switch).
570    o verification/*/code_ad:
571      mimimal cleaning of AD experiments ECCO_CPPOPTIONS.h option-file:
572      - reccord when this file is included (define ECCO_CPPOPTIONS_H)
573      - remove the most obvious obsolete features (e.g., #define ALLOW_COST not
574        allowed since Oct 2003 in any option-file except in PACKAGES_CONFIG.h)
575    o pkg/seaice :
576      - added possibility to change ice strength/PRESS0 relationship to
577        HEFF, according to the following run time parameters
578        SEAICEpresPow0 :: HEFF exponent for ice strength below SEAICEpresH0 (integer, >0)
579        SEAICEpresPow1 :: HEFF exponent for ice strength above SEAICEpresH0 (integer, >0)
580        SEAICEpresH0   :: HEFF threshold for ice strength            (m)
581    o pkg/ggl90 :
582      - added run time flag mxlSurfFlag to include the code that ensure
583        mixing between first and second level (previously included as a comment)
584    o verification/1D_ocean_ice_column/input_ad/data.autodiff :
585      - add test of newly added dumpAdByRec=T option where
586        we write all records to one file per variable.
587    o verification/global_ocean.cs32x15/code_ad/CPP_OPTIONS.h :
588      - switch to #define ALLOW_BALANCE_RELAX and ALLOW_BALANCE_FLUXES
589        to check that this code is ok with taf and compiles in adjoint.
590    o pkg/autodiff :
591      - added run time param dumpAdByRec : ad dump format switch.
592        If true then write all records to one file per variable.
593        Else write one file per record (remains the default).
594      - revise seaice_ad_dump.F and exf_adjoint_snapshots_ad.F accordingly.
595    o pkg/seaice:
596     - Added SEAICEuseTILT run time switch : if set to
597       false then omit the tilt term in seaice dynamics.
598     - Fix free drift calculation.
599    o pkg/shelfice:
600      When initializing SHELFICEDragQuadratic, set default to be
601      consistent with shiCdrag in case SHELFICEuseGammaFrict is used,
602      but retain option to set it independently
603      (inconsistenty spotted by Veronique Dansereau)
604    o eesupp/inc:
605      - in EEPARAMS.h, add real-type constant for some frequently used simple number
606         (0,1,2,1/2), with name explicitly referring to RS/RL type.
607    o model/src:
608      - move balancing of relaxation terms to new S/R balance_relax.F.
609    o pkg/autodiff:
610      re-write active I/O high-level (control) S/R:
611      - rename  S/R ACTIVE_READ/WRITE_RL to ACTIVE_READ/WRITE_3D_RL
612      - add 1 more argument (useCurrentDir) to replace the "_LOC" 2nd set of S/R.
613      - use standard pkg/mdsio I/O routines (MDS_READ/WRITE_SEC_XZ/YZ  and
614        MDS_READ/WRITE_FIELD); change loops to multi-threads.
615      - update and merge active_file_control_slice.flow into active_file_control.flow
616      - update the calls in lower level S/R (active_file.F, active_file_g.F and
617        active_file_ad.F) keeping the argument list and function unchanged.
618      - also update lower-level "_LOC" version (call same S/R with "useCurrentDir
619        =.TRUE.") and remove high-level (control) _loc version (not called anymore).
620      - new low-level active I/O routines, one for each type (RL/RS), for active var
621        of various (XY,XZ,YZ) shape and level number (arguments: arrShape, myNr);
622        fix ctrl_init_wet.F & ecco_cost_weights.F by calling the new S/R with the
623        right type.
624    o autodiff and RS=real*4:
625      - call the right type (_RS instead of _RL) of S/R in few output S/R (pkg/exf
626        ad-monitor and snapshots); disable arrType='RS' in mdsio_gl*.F ;
627      - change argument type of 3-D mask argument to _RS to match type in the call
628        (in seaice_cost*.F, ctrl_*_gen.F and *ctrl_bound.F); to be continued.
629    o pkg/thsice:
630      - re-anable balanceEmPmR when useSEAICE=T with useThSIce=T.
631      - option to correct ocean fresh-water flux for imbalance of Atmos+Land
632        fresh-water flux: uniform correction or proportional to local precip.
633    o pkg/ctrl:
634      - new header file CTRL_SIZE.h for parameters maxCtrlArr2D, maxCtrlArr3D
635      - redefine CPP option ALLOW_BOTTOMDRAG_CONTROL to
636                            ALLOW_BOTTOMDRAG_CONTROL_NONGENERIC
637      - verification/hs94.1x64x5/ tests ALLOW_GENARR{2D,3D}_CONTROL
638    
639    checkpoint63q (2012/07/30)
640    o pkg/autodiff:
641      note about monitor and snap-shot of ad-variables:
642      a) need to apply ADEXCH before monitor or output of ad-vars to include
643       overlap contributions (was done for adjDump but missing for monitor).
644      b) since ADEXCH implies adding overlap values to interior array, machine
645       truncation error is expected when adding an ADEXCH call in the middle of
646       the time-stepping (although mathematically identical).
647      modifs:
648      - fix some incorrect type (RL/RS, UV/scalar) in ADEXCH calls and ad-vars
649        declaration (adEddyPsiX,adEddyPsiY in adcommon.h).
650      - add new run-time params (dumpAdVarExch & mon_AdVarExch) to select how  to
651        apply ADEXCH before monitor or snap-shot of ad-variables:
652           =0 : no ADEXCH ; =1 : do ADEXCH ; =2 : apply ADEXCH on a local copy.
653      - implement new method (copy+adexch) for snap-shot and monitor of main model
654        ad-vars (initially not used by default -> output unchanged).
655      - change default (set to 2) to use new method and update few output_adm.txt
656        with accurate ad-monitor (global_ocean.90x40x15, tutorial_global_oce_biogeo
657        and both tutorial_tracer_adjsens tests).
658      - switch 2 global_ocean.cs32x15 AD-tests to AB-2 (seaice_dynmix & thsice)
659        and turn off momDissip_In_AB in the 2 other (needed for stable AB-3).
660    o pkg/ctrl:
661      enable the use of a variable number (maxCtrlArr2D, maxCtrlArr3D) of
662      generic control variables via
663      #define ALLOW_GENARR2D_CONTROL and/or #define ALLOW_GENARR3D_CONTROL
664      Only required customization should be S/R ctrl_map_ini_genarr.F
665      (routine in repository contains example)
666    o pkg/exf:
667      - fix and refine checking of surface-relaxation setting when using EXF
668    o verification (adjoint exp):
669      - reduce length of simulation by half for experiment global_ocean.cs32x15
670        (std, seaice & seaice_dynmix) and exp tutorial_dic_adjoffline; update output.
671    o pkg/mom_common (mom_u/v_bottomdrag), pkg/shelfice (shelfice_u/v_drag)
672      - replace if statements KE.ne.0 with KE.gt.0 to avoid sqrt of negative numbers
673        of KE that can occur with aggressive optimization
674      + put quadratic bottom drag calculation in separated loops (only done if
675        using bottomDragQuadratic)
676    o model/src: CG2D_NSA
677      - clean-up:  stop if cg2dNormaliseRHS=T and AUTODIFF
678         and replace GLOBAL_SUM calls with GLOBAL_SUM_TILE.
679      - in test-exp that uses CG2D_NSA (bottom_ctrl & tutorial_tracer_adjsens),
680         change cg2d residual target to be expressed in Wunits (=> do not normalise
681         RHS ; this fix global_max Pb with TAF); update output.
682    o verification/tutorial_tracer_adjsens:
683       improve parameter consistency (and get rid of warnings):
684       - use deltaTFreeSurf=deltaTtracer (better with NonLin FreeSurf);
685       - switch Temp Adv Scheme from 81 to 80 (no limiter since theta < 0 is physical)
686       - use staggerTimeStep (for stability) in som81; use default rotation period.
687    o pkg/exch2:
688      - with empty facet: fix compact-format (W2_mapIO=1) definition (was previously
689        reset to 0 = 1 long line in X)
690    o pkg/mdsio:
691      - fix reading of dimensions from meta file for large-size domain
692    o model/src:
693      - fix saltIsActiveTr setting for IdealGas eosType (eosType is 6 character long);
694      - to refine CS-grid check, add logical flag "hasWetCSCorners": true if using
695        Cubed-Sphere Exch with CS-corners inside the domain;
696        make new S/R INI_GLOBAL_DOMAIN from code in ini_linear_phisurf.F to calculate
697        globalArea and to set hasWetCSCorners.
698      - add warning if usingCurvilinearGrid and momAdvection in flux-form (missing
699        metric terms); stop if hasWetCSCorners=T and momAdvection in flux-form.
700      - re-activate the stop if useCDscheme and hasWetCSCorners=T (previously if
701        useCDscheme and useCubedSphereExchange).
702    o pkg/seaice/seaice_growth.F :
703      - compute the SEAICE_DISABLE_HEATCONSFIX term accordingly
704        for the (.NOT.useRealFreshWaterFlux).OR.(nonlinFreeSurf.EQ.0)
705        when the previous code was not correct.
706      - in all cases diagnoze the boundary condition mismatch to SIaaflux
707      - in the case of useRealFreshWaterFlux.AND.(nonlinFreeSurf.GT.0) add
708        that term to QNET (essentially to set the melt/freeze water to 0degC).
709        when SEAICEheatConsFix is true, so that the ocean+ice budget heat is closed.
710  o verification/global_ocean.cs32x15/input.seaice :  o verification/global_ocean.cs32x15/input.seaice :
711   - add SEAICEheatConsFix in data.seaice, ensuring closed ocean+ice heat budget.    - add SEAICEheatConsFix in data.seaice, ensuring closed ocean+ice heat budget.
712   - add diagnostics (commented out) for budget test using my matlab codes (gcmfaces).    - add diagnostics (commented out) for budget test using my matlab codes (gcmfaces).
713   - update results (output.seaice.txt) accordingly.    - update results (output.seaice.txt) accordingly.
714  o verification/lab_sea/input/data.seaice :  o verification/lab_sea/input/data.seaice :
715   - remove SEAICEheatConsFix, which is now be tested    - remove SEAICEheatConsFix, which is now be tested
716     in global_ocean.cs32x15. The presently coded fix      in global_ocean.cs32x15. The presently coded fix
717     is only consistent with real fresh water + nlfs.      is only consistent with real fresh water + nlfs.
718   - update results (output.txt) accordingly.    - update results (output.txt) accordingly.
719  o pkg/salt_plume: added diagnotic for salt tendency (oceSPtnd).  o pkg/salt_plume: added diagnotic for salt tendency (oceSPtnd).
720  o AD_CONFIG.h file:  o AD_CONFIG.h file:
721   - in genmake2: remove "#undef ALLOW_ECCO_OPTIMIZATION" from AD_CONFIG.h;    - in genmake2: remove "#undef ALLOW_ECCO_OPTIMIZATION" from AD_CONFIG.h;
722   - remove #include "AD_CONFIG.h" from all included OPTIONS files and    - remove #include "AD_CONFIG.h" from all included OPTIONS files and
723     add it explicitly in each fortran src file where it is needed.      add it explicitly in each fortran src file where it is needed.
724     motivation: header file AD_CONFIG.h is generated/modified after "make depend"      motivation: header file AD_CONFIG.h is generated/modified after "make depend"
725     thus introducing potentially wrong dependency; therefore, better to include      thus introducing potentially wrong dependency; therefore, better to include
726     it only where it's really needed, and after any other included OPTIONS file      it only where it's really needed, and after any other included OPTIONS file
727     (less tempting to bring conditional includes according to ALLOW_ADJOINT_RUN      (less tempting to bring conditional includes according to ALLOW_ADJOINT_RUN
728     or ALLOW_TANGENTLINEAR_RUN).      or ALLOW_TANGENTLINEAR_RUN).
729    
730  checkpoint63p (2012/07/06)  checkpoint63p (2012/07/06)
731  o pkg/autodiff:  o pkg/autodiff:

Legend:
Removed from v.1.1687  
changed lines
  Added in v.1.1809

  ViewVC Help
Powered by ViewVC 1.1.22