/[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.1641 by dimitri, Mon Apr 2 04:34:07 2012 UTC revision 1.1908 by jmc, Fri Aug 9 14:14:05 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 switch to TAF version-2:
8      - add flow directives to "freeze" naming convention for ad-routines that
9        are used in I/O routines of adjoint state and associated common blocks
10        that are used in adcommon.h (backward compatible with version-1)
11      - update all ad-optfiles (in tools/adjoint_options + few local to some
12        verification exp) to switch to latest TAF version (currently 2.5.5);
13        merge "*_mpi" adoptfiles into the corresponding non-mpi (but commented
14        out except for diva).
15      - the major change with TAF version-2 is that both the differentiated
16        routines and the forward routines (new) are returned as part of the TAF
17        output source code. Update genmake2 accordingly.
18      - new output for AD experiment tutorial_global_oce_biogeo (better AD gradient
19        with version-2 when compared to TLM or FWD gradient); other experiments
20        output show minor changes (machine truncation level); update the few AD &
21        TLM output with 12 matching digits only (some prior to version-2 switch).
22    
23    checkpoint64l (2013/08/05)
24    o model/src:
25      - in dynamics.F, skip the call to CALC_VISCOSITY if momViscosity=F
26      - main_do_loop.F: no longer includes additional (AUTODIFF) header files
27        when using TAF but only if using OpenAD.
28    o pkg/mom_common+fluxform+vecinv:
29      - always set horiz. viscosity arrays to background value before calling
30        MOM_CALC_VISC (in MOM_FLUXFORM & MOM_VECINV) and call S/R MOM_CALC_VISC
31        only when using variable horiz. viscosity (useVariableVisc=T);
32      - simplify mom_vecinv.F (only 1 block for momViscosity).
33    o pkg/mom_common: variable horiz. viscosity in NH code
34      - move horiz-viscosity 3-D arrays viscAh_W & viscA4_W (used in calc_gw.F)
35        from model/inc/NH_VARS.h to pkg/mom_common/MOM_VISC.h
36      - store in common block (in MOM_VISC.h) logical parameters: useHarmonicVisc,
37        useBiharmonicVisc & useVariableVisc.
38      - fix old bug (already in 1rst implementation of variable horizontal viscosity
39        in calc_gw.F, version 1.27, 2006/06/20):
40        horizontal bi-harmonic viscosity in gW was missing when wiscA4W=0
41        even if variable bi-harmonic viscosity (e.g., viscA4Grid) was non-zero.
42      - change background horiz viscosity in vertical momentum (gW) to always be
43        viscAhW,viscA4W (instead of switching to viscAhD, viscA4D when using
44        any type of variable viscosity, e.g., viscAh/4Grid)
45      - change default value of viscAhW,viscA4W to viscAhD,viscA4D (instead of
46        viscAh,viscA4) which default to viscAh,viscA4 :  this avoid missing
47        horiz. viscosity in W eq when just setting viscAhD/Z,viscA4D/Z (since
48        default viscAh,viscA4 is zero).
49    o model/src:
50      - extend length of drC & recip_drC from Nr to Nr+1.
51    o Divided Adjoint (DIVA) with MPI:
52      - genmake2: do not create local ./mpi_headers dir when no file to copy into.
53      - remove option ALLOW_DIVIDED_ADJOINT_MPI (replaced by ALLOW_DIVIDED_ADJOINT
54        and ALLOW_USE_MPI) from model/src code and from ECCO_CPPOPTIONS.h.
55    
56    checkpoint64k (2013/07/23)
57    o tools/OAD_support:
58      - avoid the need for file "oadtempflile" in insertTemplateDir.bash
59        and remove it from genmake2.
60    o tools/build_options:
61      - remove MPI_HEADER_FILES_INC setting (no longer used) and comment out
62        MPI_HEADER_FILES list (let genmake2 find the missing headers)
63    o verification/halfpipe_streamice:
64      - change to driving stress formulation; update both Fwd & AD output.
65    o tools/genmake2 and Divided Adjoint with MPI:
66      - remove default setting of MPIINCLUDEDIR from $MPIHOME (always been broken);
67      - only create local ./mpi_headers dir if using MPI and MPIINCLUDEDIR is set;
68      - add new variable (LOCAL_MPI_HEADERS, replace MPI_HEADER_FILES_INC) in
69        Makefile, which is set by genmake2, and check which mpi-headers are needed.
70        Note: need to update adjoint_options/adjoint_diva_mpi accordingly.
71      - update target "CLEAN" (to also remove ./mpi_headers/ dir).
72    o testreport:
73      - changes for Divided Adjoint Run: when file "run_ADM_DIVA" is present,
74        perform additional runs (number of additional runs is "add_DIVA_runs" taken
75        from file run_ADM_DIVA ; should match "nchklev_3" in file "code_ad/tamc.h").
76    o verification/lab_sea (AD test):
77      - change to test Divided Adjoint Run in this set-up (both standard AD test
78        and 2 secondary AD test: noseaice + noseaicedyn); drop the evp AD test.
79    o pkg atm_ & ocn_compon_interf:
80      - remove cpl_earlyExpImpCall=F option (was mainly a hack added for the old
81        staggerTimeStep implementation) and disable (retired) corresponding
82        parameter.
83    o pkg/offline:
84      - comment out unused field-array: ICEM, ConvectCount, hflx[01], icem[01];
85      - add S/R OFFLINE_CHECK to print offline parameter summary
86        and stop if loading a file that is not used;
87      - enable to calculate GMRedi tensor, KPP mixing and convective index
88        when the corresponding file(s) is/are not specified (but pkg is used).
89      - comment out resetting of monitorFreq (to endTime) since it still useful
90        for monitoring CFL numbers and checking offline fields.
91    o OpenAD:
92      - do not define OAD_DEBUG (in tools/adjoint_options/adjoint_oad) to get
93        smaller standard output) and generate new (smaller) output (on baudelaire
94        using gfortran with -ieee) for exp. tutorial_tracer_adjsens
95    o model/src:
96      - call EXTERNAL_FORCING_SURF outside bi,bj loops (in do_oceanic_phys.F),
97        (where external_forcing_adjust was called) and change list of arguments;
98      - merge external_forcing_adjust.F into external_forcing_surf.F
99      - put surface relaxation of SST & SSS in new S/R (forcing_surf_relax.F)
100        which also contains balancing surface relaxation (ALLOW_BALANCE_RELAX,
101        previously in file "balance_relax.F", now removed); remove corresponding
102        arrays in FFIELDS.h.
103      - EXTERNAL_FORCING_SURF is now called when using pkg/offline; implement
104        a hack for getting back surfaceForcingS (loaded from file) when using
105        ALLOW_OLD_VIRTUALFLUX (pkg/dic, in DIC_OPTIONS.h) in offline set-up.
106      - update output of AD test experiment global_ocean.cs32x15.seaice_dynmix
107        (was getting only 11 digits for AD-grad, due to different truncation
108         error in AD code).
109    
110    checkpoint64j (2013/07/04)
111    o pkg/offline:
112      - to enable the use of other features with pkg offline (e.g., obcs),
113        also call S/R DO_OCEANIC_PHYS in offline run - more modifs to come.
114      - comment out "allowFreezing" (now active) in 2 offline testing exp.
115    o pkg/exf ALLOW_RUNOFTEMP
116      - fix sign and make compatible with temp_EvPrRn .NE. UNSET_RL
117      - ahdded RUNOFTEMP test to verification/global_ocean.cs32x15/input.seaice
118      - changes verification/global_ocean.cs32x15/results/output.seaice.txt
119    o pkg/atm_phys:
120      - allows to add some damping on uVel,vVel (strength only function of k).
121    o verification, ad-tests:
122      - reduce length of the simulation for AD test: global_ocean.cs32x15.seaice,
123        global_ocean_ebm and offline_exf_seaice.thsice.
124    o verification/halfpipe_streamice:
125      - found a bug in s/r pkg/streamice/streamice_advect_thickness which caused
126        flux input boundary conditions to be ignored; a fix for this bug changed
127        verification results for forward test.
128      - add adjoint test.
129    o pkg/ptracers:
130      - allow to restart without SOM pickup (resetting SOM to zero).
131    o pkg/gmredi:
132      - New parameterisation for the calculation of K and (GM_PsiX,GM_PsiY) added.
133      - It uses mixing length theory and suppression by steering level effects to
134        calculate a diffusivity used in the Redi tensor (see Bates et al., submitted
135        to JPO, for more details).
136      - It also uses the diffusivity to calculate an eddy induced streamfunction
137        based on a PV closure (rather than a buoyancy closure as in GM).
138      - New files added to pkg/gmredi:
139        gmredi_k3d.F calculates the diffusivity for the Redi tensor and the eddy
140          induced overturning streamfunction (called from gmredi_calc_tensor)
141        gmredi_calc_eigs.F calculates the eigenvalues and eigenvectors required
142          for use in gmredi_k3d
143        gmredi_calc_urms.F calculates the the rms eddy velocity used to calculate
144          the eddy diffusivity
145    
146    checkpoint64i (2013/06/18)
147    o pkg/cheapaml:
148      - take src files from MITgcm_contrib/verification_other/offline_cheapaml/code
149        that enable the use of seaice (pkg/thsice thermo & pkg/seaice dynamics)
150        with pkg/cheapaml.
151    o utils/python: add subpackage for cubed sphere function, first example is
152        simple cs.pcol to plot 2D fields on a map
153    o pkg/streamice:
154      - This is a new package in MITgcm, which solves dynamic equations for ice
155         sheets and ice streams
156      - At the moment it is independent of atmosphere/ocean dynamics, or any
157        other physical packages in MITgcm, even ShelfIce (although it is anticipat-
158        ed that this will change)
159      - There is a new verification exercise that tests it, halfpipe_streamice,
160        evolves a 40x80 km ice stream/ice shelf (at coarse resolution) in a
161        rectangular embayment
162      - halfpipe_streamice is forward-only for now, will have TAF test soon
163      - for questions, email dgoldber@mit.edu
164    o pkg/thsice:
165      - fix filling of snow-precip diagnostic (SIsnwPrc) (left from the removing
166        of snowPrc from common bloc, on May 2nd, thsice_step_fwd.F revision 1.40);
167      - remove diagnostics 'SI_FrcFx' ( now identical to 'SI_Fract' with new
168         call sequence: ice-Thermo(thsice),ice-Dyn,ice-Advect );
169      - allow precip from pkg/cheapaml to make snow over seaice.
170    o pkg/cfc:
171      - move in separated header file (CFC_ATMOS.h) time-serie arrays of Atmos CFC
172      - remove atmos CFC 2-D arrays from common bloc (now local variables)
173      - change some hard-coded constant to run time parameter for reading and
174        and interpolating atmospheric CFC ; keep same default as previously.
175      - more flexible reading of Atmos CFC (number of records no longer hard-coded)
176      - put arguments in standard order: myTime, myIter, myThid
177      - use standard S/R GET_PERIODIC_INTERVAL for time interpolation of
178        atmospheric CFC ; fix for the case myIter < PTRACERS_iter0.
179      - fix calculation of surf tendencys for partial-cell and/or Non-Lin Free-Surf
180      - new routine to print summary of CFC params and check for consistency.
181    o pkg/seaice: add uice/vice to the parameter list of s/r seaice_advdiff,
182      similar to thsice_advdiff.
183      Note that for the B-grid case the routine parameters uc/vc are overwritten.
184    o pkg/cfc:
185      - change time interpolation for atmospheric CFC-11 (now same as for CFC-12);
186        update output (CFC-11) of experiment cfc_example and tutorial_cfc_offline.
187      - fix interpolation of atmphspheric CFC between Sorthern and Northern
188        hemisphere value.
189    o pkg/seaice:
190      - allow to use seaice dynamics without pkg/exf (e.g., using pkg/cheapaml)
191    o pkg/seaice: add Adams-Bashforth2 time discretization for ice dynamics;
192                  so far only for JFNK-solver, turn on with SEAICEuseAB2 = .TRUE.
193      - requires an additional time level that is stored in the pickup
194      - you can start with AB2 from a pickup without this time level with
195        pickupStrictlyMatch = .false.
196    
197    checkpoint64h (2013/05/26)
198    o pkg/cheapaml:
199      - replace one ()**.5 with SQRT + use temp var "cdu = tau/Du" (coare3_flux);
200        affect machine truncation (but exp cheapAML_box still pass with 13 digits).
201      - consistent treatment of uWind,vWind location: assume everywhere in
202        pkg/cheapaml that they are on C-grid (@ uVel,vVel location)
203        (Note: was already the case for Tair,Qair advection);
204        add option (INCONSISTENT_WIND_LOCATION) to recover old results.
205      - compute diabatic forcing only in the interior (excluding overlap regions)
206      - fill in array "Qsw" (for short-wave heating);
207      - add diagnostic for precip ; fill-in diagnostics for cheapAML state vars
208        before any update (consistent with MITgcm state var diagnostics);
209      - cheapaml_fields_load.F & cheapaml_init_varia.F : only fill outer edges if
210        non periodic ; + adjusted for uWind,vWind (C-grid).
211    o pkg/seaice:
212      - remove dependence of pkg/seaice versus pkg/exf (file: pkg/pkg_depend) and
213        add explicitly pkg/exf in experiments that currently use pkg/seaice.
214      - allows to compile pkg/seaice without pkg/exf.
215    o tools/OAD_support:
216      - use a local copy (ourRWCPinBd) to ensure index ourRWCP stays within bounds
217        of array "ourStepOf" in function rvNextAction (revolve.F90).
218    o pkg/aim_compon_interf renamed to pkg/atm_compon_interf
219      - change pkg name (to be used with other atmospheric physics pkg)
220        but by-pass CVS when making the new pkg so that we keep the CVS history.
221    o pkg/offline:
222      - call OFFLINE_FIELDS_LOAD from pkg/offline/offline_init_varia.F
223        (previously called from pkg/dic_surfforcing_init.F)
224    o model/src:
225      - re-order sequence of calls within packages_init_variables.F, using
226        standard order, except for:
227         DIAGNOSTICS_INIT_VARIA and OFFLINE_INIT_VARIA (called @ the top),
228         CTRL_MAP_INI and OBCS_INIT_VARIABLES (called @ the bottom)
229    o new pkg: atm_phys
230      - add entry point and source code (previously in contrib
231          verification_other/atm_gray/code_gray/) for new pkg "atm_phys"
232        (atmospheric physics pkg from P. O'Gorman and T. Schneider, JCl, 2008).
233      - re-order sequence of calls within packages_readparms.F,
234         packages_init_fixed.F and packages_write_pickup.F
235        (but skip packages_init_variables.F because of TAF issues).
236      - update contrib/*/atm_gray/ experiment.
237    o pkg/seaice (ITD code):
238      - simplify and fix the writing of pickup-files for ITD case
239    o pkg/seaice (ITD code):
240      - introduce floe size dependent lateral melt for ITD case;
241      - cleaning (avoid division by zero, change to f77 syntax, remove tabs)
242      - update seaice_itd experiment main output.
243    o pkg/thsice:
244      - remove snowPrc from common block THSICE_FLUX, in THSICE_VARS.h and
245        declared it locally (without bi,bj) in thsice_main.F & aim_do_physics.F;
246        changed accordingly pkg/atm2d.
247    
248    checkpoint64g (2013/05/01)
249    o pkg/exf ALLOW_RUNOFTEMP
250      - if defined,  river and glacier runoff temperature can be read-in from
251        runoftempfile; runoftempfile needs to have same format as runofffile
252    o pkg/thsice (& pkg/bulk_force):
253      - In case Energy-Reference-Level (ERL) is used (temp_EvPrRn=0), account
254        for energy content of Precip + RunOff & Evap (like with pkg/exf).
255      - change computation domain to always be the interior (without overlap).
256      - fix bug (wrong overlap) when using EXF and stressReduction > 0.
257    o verification/tutorial_global_oce_biogeo:
258      - add preliminary OpenAD setup (still has problems)
259    o pkg/seaice:
260      - turn some parameters for choosing the convergence criterion of
261        the inexact Newton method (JFNK) into runtime parameters for convenience
262      - clean up seaice_calc_viscosities.F: remove/retire two options for
263        SEAICetaZmethod (1,2), introduce area weighting for method 3; this changes
264        the results of lab_sea/input because a division has been replaced by
265        a multiplication with the reciprocal (sumNorm)
266      - modify offline_exf_seaice/input.dyn_jfnk/data.seaice to improve
267        convergence of solver (changes results, of course), and to test some
268        new features
269    o model/src:
270      - remove unused (since Aug 2006) S/R SET_WRITE_GLOBAL_PICKUP and its call.
271      - remove unused forcing field "dQdT" and associated parameter "dQdTFile".
272      - move forcing adjustment (balancing surface forcing) in specific S/R
273        where might also be applied exchanges (if needed) to forcing arrays.
274    o pkg/shelfice:
275      - allow to specify the Ice-Shelf mass per unit area (instead of
276        shelficeLoadAnomaly) and do the conversion from one to the other
277      - move loading from file of shelficeLoadAnomaly from SHELFICE_INIT_VARIA
278        to SHELFICE_INIT_FIXED: (a) avoid some TAF recompution issues and
279        (b) will be loaded in time (before calling INI_PRESSURE) in case it is
280        needed in phi0surf for initial pressure calculation when useDynP_inEos_Zc
281      - update isomip experiment forward output (get machine truncation error
282        from conversion shelficeLoadAnomaly -> shelficeMass -> shelficeLoadAnomaly)
283    o verification/offline_exf_seaice:
284      revise data.seaice in input.thermo and input_ad and update results accordingly
285        HO = 0.2, SEAICE_areaLossFormula = 2,
286        SEAICE_growMeltByConv = .TRUE.,
287        SEAICE_doOpenWaterMelt = .TRUE.,
288      Improve consistency with input.thsice and fix the spurious 500m ice corners
289    o verification/global_ocean.cs32x15:
290      - set Energy Reference Level to liq. water @ 0 degC: temp_EvPrRn=0.,
291        in icedyn (thsice+seaice-dyn) test and update output.
292    o verification/offline_exf_seaice:
293      - adjust list of tested variables (with testreport) and update
294        standard test output with better slection of monitored fields.
295    o pkg/cd_code:
296      - swtich off Adams-Bashforth on the 1rst iteration. Update output of
297        experiment lab_sea.hb87
298    o tools/genmake2:
299      - change default makedepend from the system default to tools/xmakedepend:
300        When no makedepend is specified, select tools/xmakedepend it the test pass,
301        otherwise select the system default (if exist and pass the test) or
302        try to build cyrus-makedepend ; stop if none of the 3 works.
303    o pkg/exf & pkg/thsice:
304      - In case Energy-Reference-Level (ERL) is used (temp_EvPrRn=0), account
305        for energy content of Precip + RunOff & Evap. Assumes:
306       1) Rain has same temp as Air.
307       2) Snow has no heat capacity (consistent with seaice & thsice pkgs)
308       3) Run-Off comes at the temp of surface water (with same Cp)
309       4) Evap over ocean is released to the Atmos @ surf-temp (=SST); should be
310        put directly into Latent Heat flux & should use water-vapor heat capacity.
311       5) Evap over snow/seaice (pkg/thsice) assumes constant Lf+Lv (consistent
312        with snow having no Cp) => water vapor is released to Atmos @ 0^oC (=ERL).
313    o pkg/seaice: simplify the use of CPP flags in JFNK-related files
314        (compile when SEAICE_ALLOW_JFNK is defined)
315    o pkg/thsice:
316      - fix oceanic flux diagnostics & timeave (left from new sequence of calls
317        implementation): move THSICE_AVE call after the advection (called directly
318        from thsice_do_advect.F).
319    o verification/global_ocean.90x40x15 and OpenAD:
320      New experiment for OpenAD is identical to the one in input_ad except that
321        multiDimAdvection=.FALSE.,
322      There is still an issue with this.
323    o pkg/thsice:
324      - account for ice velocity (ocean relative velocity) in turbulent heat flux
325        at the base of the ice; update output of global_ocean.cs32x15 (icedyn)
326        and offline_exf_seaice (main test).
327    
328    checkpoint64f (2013/03/31)
329    o verification/OpenAD:
330      - new (smaller, without OAD_DEBUG) output_oadm.txt generated using gfortran.
331    o verification/isomip, pkg/shelfice and OpenAD:
332      - add OpenAD setup to this exp and make shelfice package work with OpenAD
333    o verification/tutorial_global_oce_biogeo:
334      - update AD and TLM output after turning off ALLOW_FE (in DIC_OPTIONS.h)
335    o verification/offline_exf_seaice:
336      - replace adjoint experiment (now similar to fwd input.thermo/ setup).
337    o verification/tutorial_tracer_adjsens, pkg/ptracers and OpenAD:
338      - add OpenAD setup to this exp and make ptracers package work with OpenAD
339    o pkg/seaice/seaice_evp.F:
340       mask the asymmetric contribution of the ice-ocean stress (when
341       the turningAngle is non-zero) over open water to avoid stripes
342       in the EVP-solutions after many EVP-substeps. This does not change
343       the verification experiment (because turningAngle=0 in that experiment),
344       but will affect other EVP solutions with turningAngle.ne.0
345    o verification, AD & TLM output:
346      - new TAF version 2.3.10 (previously 2.3.8) add more parenthesis in multiple
347        additions and multiplications which affect results at machine truncation
348        level. Update few AD output (1D_ocean_ice_column, bottom_ctrl_5x5,
349        lab_sea.noseaicedyn & offline_exf_seaice) and TLM output
350        (1D_ocean_ice_column & tutorial_tracer_adjsens.som81) which had only 12
351        digits of matching.
352    o pkg/seaice:
353       modify lsr-algorithm so that it vectorizes AND converges by using a
354       "zebra" method: split vector loop into two with step size 2; this
355       solves a general convergence problem for the JFNK solver on a vector
356       computer. It has the potential to even improve convergence for
357       non-vector machines, but it does change the results so it is turned
358       off by default. To turn on define CPP-flags SEAICE_VECTORIZE_LSR and
359       SEAICE_VECTORIZE_LSR_ZEBRA in SEAICE_OPTIONS.h
360    
361    checkpoint64e (2013/03/05)
362    o pkg/ecco and several verification experiments:
363       Remove special versions of the_model_main.F, the_main_loop.F, forward_step.F
364       from ecco package, and revert to unified routine in model/src/
365       Adjust verification experiments accordingly, especially gloal_oce_llc90
366       Should conclude long-standing work by Gael to reconsile the_main_loop with
367       ECCO and will enable OpenAD's revolve loop in ECCO setup.
368    o pkg/generic_advdiff:
369      - implement compressible flow method for multi-dim advection (similar to
370        gad_som_advect.F); add new option "GAD_MULTIDIM_COMPRESSIBLE" (since
371        TAF generates many recomputations) to use it; no yet coded with implicit
372        vertical advection.
373      - change experiment advect_cs (new output) and advect_xy (same output)
374        to test compressible flow multi-dim advection.
375    o pkg/generic_advdiff:
376      - fix SOM advection for unusual cases (linear Free-Surf in r*, other
377        cases where linear Free-Surf is not @ k=1, e.g., useShelfIce)
378    o pkg/seaice:
379      - fix bug in the no-slip implementation in seaice_calc_strainrates.F, this
380        bug affects two verification experiments (lab_sea and lab_sea.hb87),
381        recover old (wrong) results by setting noSlipFac = 2. in
382        seaice_calc_strainrates.F;
383      - add another averaging method for etaZ (etaZmethod=3), a mix of 2 and 0
384      - add runtime parameter SEAICE_JFNKepsilon for that finite difference
385        gradient in the Jacobian times vector operation (s/r seaice_jacvec)
386      - fix line search in seaice_jfnk.F (s/r seaice_jfnk_update)
387    o pkg/seaice: reorganize seaice_lsr.F to be able to reuse more code:
388      - new subroutines seaice_lsr_tridiagu/v
389      - introduce loop bounds i/jmin/max to be able to use a restricted
390        additive Schwarz method, but not used for now.
391      - rename SEAICE_CALC_LSR_COEFFS into SEAICE_LSR_CALC_COEFFS
392      - use new subroutines seaice_lsr_tridiagu/v in s/r seaice_preconditioner
393    o OpenAD support
394       Reorganize S/R call for overall time-stepping loop to facilitate
395       OpenAD revolve loop replacement
396       (new S/R main_do_loop.F)
397    o model/src:
398      - add 3-D array 3rd dimension to argument list of S/R ADAMS_BASHFORTH2/3;
399      - pkg/cheapaml: remove local S/R ADAMS2d and use instead standard S/R
400        ADAMS_BASHFORTH2.
401    o pkg/cheapaml:
402      - add new parameter (default=F, same as before) to disable full domain
403        (including land) periodicity in X & Y dir.
404      - new S/R CHEAPAML_COPY_EDGES to copy relaxation field into edges of
405        prognostics field ; merge the 2 S/R cycle_2d_tracer and timestep_2d_tracer
406        into single S/R CHEAPAML_TIMESTEP.
407    
408    checkpoint64d (2013/02/17)
409    o pkg/monitor (angular momentum):
410      - do not add Eta contribution to the total AM if using rigid-lid;
411      - correct for Adams-Bashforth in zonal-wind part (instead of in AM_eta).
412      - horizontal discretisation: compute Zonal wind contribution separately for
413        each component (instead of from cell centered averaged) and use the 4
414        grid-cell corner averaged value of Omega*(R*cos_Phi)^2 in AM_eta part.
415      - Check that AM is conserved with linear dynamics (momAdvection=F and linear
416        FreeSurf) if using vectorInvariant momentum.
417    o model/src (horizontal grid):
418      - move initialisation of all horizontal grid arrays to null value
419        from specific horizontal grid S/R to main S/R INI_GRID;
420      - add 2 new arrays to project model C-grid velocity on to zonal direction
421        (similar to AngleCosC & -AngleSinC but at U and V point location) and
422        compute them in S/R CALC_GRID_ANGLES.
423    o pkg/seaice: replace a hard coded parameter by a runtime parameter
424        SEAICE_JFNK_tolIter
425    o pkg/seaice: introduce a restricted additive Schwarz (RAS) method in
426        preconditioner for JFNK (run LSR into the overlaps as far as possible,
427        i.e OLx/y-2, but overwrite the solution in the overlaps)
428      - extend loop range in seaice_calc_viscosity
429      - add new parameters SEAICE_OLx/y (default = OLx/y-2)
430      - add flexible loop ranges to seaice_preconditioner, seaice_calc_lsr_coeffs
431      - slightly modify loops in tridiagonal solver lsr-preconditioner
432      - by default remove the extra exchange in seaice_preconditioner with a
433        replacement of an undocumented CPP flag by SEAICE_PRECOND_EXTRA_EXCHANGE
434      - modify offline_exf_seaice so that old results without RAS are reproduced
435        for output.dyn_jfnk.txt
436      in seaice_fgmres.F (unrelated to RAS)
437      - add a cpp-flag option for a re-ordered mapping (potentially more
438        efficient), but because this changes the results, turn it off by
439        default
440      - replace the save statement by local common blocks
441    o utils/matlab:
442      - fix tile-offset in rdmnc.m when output was produced using EXCH2.
443      - update cs_grid/bk_line scripts to use load_grid.m (in utils/matlab)
444        instead of local script "load_cs.m".
445    o pkg/seaice:
446      - fix a serious bug in seaice_fgmres.F, s/r seaice_scalprod, connected
447        to the scalarProductMetric and the unrolling. By chance this does not
448        change the verification experiment, because of the particular domain
449        decomposition
450    o pkg/diagnostics:
451      - change default missing_value from UNSET_RL to -999.
452    o pkg/layers: improve vectorization of layers_fluxcalc.F
453      - step 1: split loops, make TatU/V 2D arrays. This alone reduces the cpu
454        time spent in this routine by more than a factor of 3 on an NEC-SX8
455      - step 2: replace search algorithm by a bisection algorithm found in
456        Press et al. Numerical Recipes in Fortran. This algorithm can be
457        vectorized and finds the correct bin in approx. log2(Nlayers) steps.
458        For now, use this algorithm only for TARGET_NEC_SX defined.
459      - moved the search algorithm into a separate subroutine, that is kept
460        within the same file for automatic inlining.
461      - modified catching potential errors
462    o pkg/ecco:
463      - add compile switches ALLOW_SHALLOW_ALTIMETRY and ALLOW_HIGHLAT_ALTIMETRY.
464    o model/src, pkg/autodiff, pkg/ctrl, pkg/grdchk :
465      - modifications for ALLOW_GENTIM2D_CONTROL
466      -- forward_step.F, the_main_loop.F : pass options and arrays for adjoint tapes.
467      -- load_fields_driver.F : add call to CTRL_MAP_GENTIM2D( myTime, myIter, myThid )
468      -- add xx_gentim2d0/1 in ctrl_ad_check_lev1_dir.h checkpoint_lev1_directives.h etc
469      -- use ctrl_swapffields.F (new) instead of exf_SwapFFields.F in ctrl_get_gen.F
470    o model/src:
471      - account for moist thermodynamics in (dry) potential temperature equation;
472        update results of experiments: aim.5l_cs (x2), fizhi-cs (std + aqualev)
473        and cpl_aim+ocn.
474      - also switch to standard compiler (gfortran, was using ifort previously)
475        for fizhi-cs experiments reference output.
476    o pkg/ctrl:
477      - 1st step toward generic time-varying control variable (2D) via CPP option
478        ALLOW_GENTIM2D_CONTROL
479      - note new namelist ctrl_nml_genarr in data.ctrl
480    o verification/global_ocean.cs32x15:
481      - switch off OLD_THSICE_CALL_SEQUENCE (both forward and AD code) to use new
482        thsice calling sequence and update "output.icedyn.txt" output file.
483    o pkg/ptracers:
484      - from Ryan A.: code to allow to restart a tracer at regular time interval
485        specifying a reset frequency and a reset-phase (for each tracers).
486    o pkg/thsice:
487      - implement new sequence of calls for thsice+seaice:
488          previously:   ice-Dyn,ice-Advect,ice-Thermo(thsice)
489          new sequence: ice-Thermo(thsice),ice-Dyn,ice-Advect
490      - allows (with temporary CPP option "#define OLD_THSICE_CALL_SEQUENCE"
491        in CPP_OPTIONS.h) to recover old sequence;
492      - update diagnostics for Intermediate State thsice diagnostics: now filled
493        just before advection (instead of just after advection in old sequence);
494      - update output of experiment offline_exf_seaice (standard test);
495      - in global_ocean.cs32x15 exp., postpone output.icedyn.txt update
496        by setting #define OLD_THSICE_CALL_SEQUENCE in CPP_OPTIONS.h
497    o pkg/aim_v23:
498      - use tiled array for aim_CO2 and surface wind speed for export to coupler;
499      - use standard pkg/mdsio routines to read & write CO2 pickup file;
500      - in-line S/R AIM_AIM2DYN_EXCHANGES in aim_do_physics.F;
501      - Implement new sequence of calls for seaice advection (with thsice and
502        seaice diffusion): do ice advection after ice-Thermodynamic (previously
503        was done before); change aim_do_physics.F (split the bi,bj loops block);
504      - use same CPP option (OLD_THSICE_CALL_SEQUENCE) to recover old sequence;
505    o pkg/thsice:
506      - add a missing EXCH of sIceLoad in thsice_main.F (ocean set-up) for the case
507        where just seaice diffusion is used without seaice-dynamics.
508    
509    checkpoint64c (2013/01/18)
510    o pkg/seaice:
511      - add a parameter JFNKres_tFac that can replace JFNKres_t
512        (= JFNKres_tFac*JFNKresidual before JFNK solver)
513      - add a line search option to the JFNK solver
514      - move update of u/vIce and computation of initial residual into a separate
515        routine (same file); makes the code a little easier to read (?)
516      - the line search requires computation of the residual and for some reason
517        I cannot do the update of u/vIce at the beginning of the Newton loop
518        without changing the results, so we move computation of the new residual
519        also to the end of the Newton loop, even without the line search
520    o pkg/mdsio:
521      - write missing value (corresponding to undefined array value) to meta files;
522        skip this if missing value is one (UNSET_RL would be a better value for the
523        case of undefined missing value but it's current the default missing-value);
524        Also update mdsio_read_meta.F (reading timeInterval & missing-value).
525    o pkg/exf & thsice:
526      - for diagnostics purpose, fill-up and update Qsw array (+ fill the
527        diagnostics) even when SHORTWAVE_HEATING is #undef;
528    o verification/cfc_example:
529      - turn on pkg/layers with pkg/diagnostics (to test pkg/layers and to
530        illustrate how to use it).
531    o verification/offline_exf_seaice:
532      in input: add SEAICErestoreUnderIce=.TRUE., and reduce size of forcing
533        files to only one time-record.
534      in input.thermo: narrow the 2 bands of low initial ice-concentration near
535        N & S edges; switch on SEAICErestoreUnderIce=T; use pkg/diagnostics for
536        snapshot output; same mcPheePiston value as in thsice with
537        surf-current=0.2m/s.
538      in input.thsice: similar set-up as in input.thermo (channel with same seaice
539        initial conditions).
540    o verification/cfc_example:
541      - update file "data" with more standard choice (default rotationPeriod,
542        exactConserv=T, reduce ivdc_kappa to 10, remove multiDimAdvection=F,
543        set deltaTFreeSurf to deltaTtracer) and update the output.
544    o pkg/layers:
545      - fix bolus part so that it compiles with #undef GM_BOLUS_ADVEC;
546      - ensure that "layers_bolus" is switched to False when useGMRedi=False.
547    o verification/offline_exf_seaice:
548      - set all {field}period to zero for constant-in-time forcing (not tested
549        anywhere else).
550    o verification/offline_exf_seaice:
551      - dyn_lsr  : use pkg/seaice S/R (instead of pkg/thsice) to advect sea-ice;
552      - dyn_jfnk : use pkg/thsice S/R (instead of pkg/seaice) to advect sea-ice.
553    o model/src:
554      - implement Finite-Volume method for (hydrostatic) presure gradient
555        from S.-J. Lin (QJRMS 1997), for atmosphere using sigma-coordinate.
556    o pkg/seaice: implement EVP* by Lemieux et al. (2012).
557      - In order to be compatible with the default EVP code, this requires changing
558        the EVP code around a little; and because any small change immediately
559        breaks the lab_sea.hb87 verification experiment, the reference output is
560        updated two times (each time the remaining aggrement was only 2 digits):
561        - after replacing 1/dt by 1*recip_dt with a precomputed recip_dt
562        - after replacing 1/(1+0.5*dt/tau) by a/(a+1), with a=2*tau/dt
563        The adjoint test lab_sea.evp also needed to be updated.
564      - Turn on EVP* by setting SEAICE_deltaTevp as before, and setting
565        SEAICEuseEVPstar=.true.; for EVP* SEAICE_deltaTevp does not need to be
566        a factor of SEAICE_deltaTdyn, and you can set the number of EVP steps
567        explicitly with SEAICEnEVPstarSteps (thereby overriding the default of
568        INT(SEAICE_deltaTdyn/SEAICE_deltaTevp)). Controlling EVP* is deliberately
569        kept obscure, because I need to test it a little more.
570    o pkg/cheapaml:
571      - fix few incorrect type (_RL/_RS) in subroutine calls.
572    o pkg/seaice:
573      - new S/R SEAICE_MAP_RS2VEC (similar to SEAICE_MAP2VEC) to map _RS arrays
574        to _RL vector; this fixes JFNK code when compiling with "-use_r4" option.
575    o model/src:
576      - add a warning if using select_rStar=2 with nonlinFreeSurf <> 4;
577        change (in input_ad*/data) select_rStar from 2 to 1 for AD verification
578        experiments global_ocean.cs32x15 & tutorial_tracer_adjsens (+ update output)
579    o pkg/cheapaml:
580      - replace "273.1 _d 0" by celsius2K in pkg/cheapaml/cheapaml.F and
581        update output of experiment cheapAML_box.
582      - store in CHEAPAML.h coeffs ssq[0:2] for saturation specific humidity,
583        and set them only in one place (cheapaml_readparms.F).
584      - replace "273.16 _d 0" by celsius2K & replace "3.14159 _d 0" by constant "PI"
585      - remove re-setting of main-model parameter "celsius2K" (in cheapaml_readparms)
586        and re-setting of cheapAML params "lath" & "p0" (in cheapaml_init_varia).
587    o model/src/the_main_loop.F:
588      - fix revision 129 : need both ALLOW_ECCO and ALLOW_ECCO_EVOLUTION.
589    o pkg/seaice:
590      - remove legacy branch code.
591      - retire SEAICE_GROWTH_LEGACY and SEAICE_CAP_HEFF accordingly.
592    o verification/*/code*/SEAICE_OPTIONS.h:
593      - remove documentation for retired CPP flags (SEAICE_GROWTH_LEGACY,
594        SEAICE_CAP_HEFF).
595    o pkg/cheapaml:
596      - use standard routine (S/R GET_PERIODIC_INTERVAL) to decide when it is time
597        to load new forcing fields.
598      - add missing "_d 0" where it's needed; + some editing (improve indentation).
599      - remove switch to "-r8" compiler option (no longer needed) in verification
600        cheapAML_box, keep same output (small trucation error differences).
601    o verification/offline_exf_seaice:
602      - add thermodynamics only test.
603    o verification/cheapAML_box:
604      - split the domain in 8 (2x4) tiles; add MPI and multi-threaded test;
605        keep same output (same 14 digits for cg2d).
606      - switch on "-r8" compiler option (some numerical values are missing
607        the "_d 0") and update output (only 6 digits for cg2d were preserved).
608    
609    checkpoint64b (2012/12/24)
610    o pkg/cheapaml:
611      - remove un-used variables (Qnet,EmPmR) from pickup files.
612      - store tendency of advected variables into cheapaml pickup file
613        and fix the AB-2 restart.
614    o verification/offline_exf_seaice and lab_sea adjoint:
615      - switch to new code (#undef SEAICE_GROWTH_LEGACY).
616      - switch to 4 time steps in offline, consistent with lab_sea.
617      - match parameters from SEAICE_GROWTH_LEGACY branch in data.seaice.
618      - update results after change of experiment seaice.
619    o pkg/seaice:
620      - remove option SEAICE_MULTICATEGORY; has been replaced with run-time
621        parameter SEAICE_multDim. Issue a warning if SEAICE_MULTICATEGORY is
622        still defined since SEAICE_multDim needs to be set to MULTDIM value (from
623        SEAICE_SIZE.h) to recover previous #define SEAICE_MULTICATEGORY default.
624    o model/src:
625      - add run-time parameter to select CG2D solver minimum-residual solution
626        (in case of a poor convergence).
627    o pkg/seaice/seaice_lsr.F
628      - move calculation of matrix coefficients into new
629        S/R SEAICE_CALC_LSR_COEFFS; for now this routine remains in the same
630        file; the main purpose of this change is to be able to reuse the code
631        in S/R SEAICE_PRECONDITIONER
632      - modify the computation of the residual so that the mass of sea-ice
633        is not used twice; this simplifies the calculations, but since
634        the residual is never used except when LSR_mixIniGuess.ge.4---and this is
635        not tested in testreport---this does not affect the testreport results.
636    o verification/seaice_obcs:
637      - disable SEAICE_GROWTH_LEGACY; reset input files to match those of
638        verification/lab_sea/input.salt_plume; changes results/output.txt*
639    o model/src:
640      - adapt quasi-hydrostatic formulation to work with p or p* coordinate.
641    o pkg/seaice:
642      - improve description of parameters in seaice_fgmres.F and start
643        cleaning up the code
644      - change name of SCALPROD to SEAICE_SCALPROD and modify meaning of
645        second argument
646      - add a metric based on grid cell area to SEAICE_SCALPROD; update
647        results of offline_exf_seaice.dyn_jfnk
648      - compute initial residual norm in seaice_jfnk based on SEAICE_SCALPROD
649    o pkg/aim_v23:
650      - fix an other bug in dissipation heating (grid-cell area was missing).
651    o model/src + pkg/seaice:
652      - add global (multi-tile) linear solver for pair of tri-diagonal system
653        along X and Y lines, respectively for U and V component.
654        Note: 1) MPI and cube-exchange not yet coded.
655            2) probably not accurate for poorly conditioned / large size problem.
656      - add option for SEAICE_LSR to use global (multi-tile) tri-diagonal solver;
657        default: not compiled and not used.
658    o pkg/seaice:
659      - first attempt at a multi-threaded fgmres solver for the JFNK solver:
660        introduce bi/bj loops and use global_sum_tile_rl instead of
661        mpi_allreduce in seaice_fgmres.F
662      - improve diagnostics output for fgmres solver (seaice_fgmres.F)
663      - replace a few unnecessary goto statements by if-blocks  (seaice_fgmres.F)
664      - add a verification experiment for JFNK in offline_exf_seaice
665    o verification:
666      - change (for now, only fwd test) offline_exf_seaice experiment:
667        use a re-entrant channel with idealized coastline (trapezoidal shape)
668        at southern boundary to explore seaice dynamics and thermodynamics
669        with simple forcing. Main set-up has dynamics+thermo and SST relaxation;
670        secondary test (input.thsice) use thermodynamics only with SST relaxation.
671      - add seaice-dynamics only secondary test using LSR and pkg/thsice advection.
672    o pkg/exf:
673      - disable "sstExtrapol" when Nr=1
674    o verification:
675      - add new experiment "cheapAML_box" (simple 1 layer set-up from Bruno Deremble)
676        to test pkg/cheapaml.
677    o pkg/aim_v23 & pkg/shap_filt:
678      - fix dissipation heating (erroneous gravity multiplication factor).
679    o pkg/seaice:
680      - remove unused field pressPre from jfnk solver
681      - rename two subroutines in seaice_preconditioner.F
682    o eesupp/src:
683       - S/R MDSFINDUNIT avoids reserved unit numbers (scrUnit1, eeDataUnit ...)
684    o pkg/seaice/seaice_preconditioner.F: fix preconditioner once again
685       - remove wrong parts of the rhs and the lhs (were in there
686         because I did not understand the concept of this preconditioner)
687       - add an exchange between u- and v-sweep. This increases communication
688         by a factor of two but improves the convergence of jfnk. Ideally,
689         one would like the u- and v-sweep to be independent. So far within
690         undocumented ifdefs
691       - reorganize the extra computations for printing the residuals
692    o tools/genmake2:
693      - comment out the "mpif.h" include in NetCDF test programm (for MPI built)
694        since it's not necessary (and was preventing to use MNC in some cases).
695    
696    checkpoint64a (2012/11/16)
697    o pkg/autodiff:
698      - improve pkg-internal logical parameter switch (inAd/inFwd mode) so that
699        autodiff_readparms.F no longer depends on calling order (within
700        packages_readparms.F) and no longer requires to include ${PKG}_PARMS.h):
701        rename param turnFreeDriftInAdMode to SEAICEuseFREEDRIFTswitchInAd
702        and change param SEAICEuseDYNAMICSinAdMode to SEAICEuseDYNAMICSswitchInAd.
703    o pkg/obcs:
704      - adding tidal velocity forcing capability to obcs
705        for usage example, see verification/seaice_obcs/input.tides
706    o pkg/seaice:
707      - turn the LSR-relaxation parameters WFAU/V into runtime parameters
708        SEAICE_LSRrelaxU/V
709      - introduce runtime parameter SEAICEetaZmethod (=0 by default)
710    o pkg/aim_v23:
711      - implement heating from friction (bottom friction and stratospheric drag).
712    o pkg/shap_filt:
713      - fix diagnostic "SHAP_dKE" (was 2 time smaller); implement heating from
714        dissipation but only for Shap_funct=2, active when addFrictionHeating=T.
715    o model/src:
716      - move AddMass common block from DYNVARS.h to FFIELDS.h; allow to read-in
717        time-constant addMass field from file (addMassFile);
718      - support for heating due to friction (and Kinetic Energy dissipation):
719        add option, run-time switch and 3-D field array + support code ; each pkg
720        or S/R can add heating contribution (if there is a sink of KE); the sum is
721        accounted for as a Temperature tendency term (EXTERNAL_FORCING_T).
722    o pkg/seaice:
723      - complete merge of ITD code into seaice_growth.F
724        from MITgcm_contrib/torge/itd/code/
725        no verification so far, but Torge Martin tested
726        "1-D test case and Beaufort set up;
727        deliver okay results after 1 model year."
728      - complete merge of SEAICE_SIZE.h into all relevant routines
729      - move computation of eta at Z-points into calc_viscosities
730        + introduce global field etaZ
731        + add different methods for computing etaZ, for now the old
732          method (simple averages of eta to Z-points) is hardwired
733        + replace etaMeanZ by etaZ in seaice_lsr, seaice_calc_residual,
734          seaice_preconditioner
735      - simplify computations for SEAICE_ZETA_SMOOTHREG
736      - seaice_preconditioner:
737        + replace one remaining press by pressLoc (mistake)
738        + adjust printing of residuals
739      - improve I/O of diagnostics of JFNK in seaice_jfnk.F:
740        + add (SEAICE.h) and rename some counters (initiliased in
741          seaice_init_fixed.F)
742        + add _BEGIN/END_MASTER (myThid)  around print statements
743        + print total number of iterations and failures over SEAICE_monFreq
744          interval to STDOUT
745      - move control over output-messages by fgmres to seaice_jfnk to save
746        some operations
747      - move resetting initial guess for fgmres outside of seaice_fgmres_driver
748        in order to make restarts with sol .ne. zero (fgmres with restarts)
749        (seaice_jfnk.F, seaice_fgmres.F)
750      - seaice_calc_l/rhs.F: replace maskW/S by maskInW/S; this fixes
751        a serious convergence problem when open boundaries are involved
752    o pkg/ggl90: fix computation of control volumes for the case of
753      ALLOW_GGL90_HORIZDIFF (probably not used very often): move control volumes
754      up half a grid cell from C-centered to W-centered (pointed out by C. Eden)
755    o pkg/seaice: simplify seaice_evp by avoiding use of extra fields u/vIceC
756    o pkg/autodiff
757      - Add inAdMode switch for SEAICEuseDYNAMICS:
758        SEAICEuseDYNAMICSinAdMode
759        (extend logic in ADAUTODIFF_INADMODE_SET)
760    o pkg/seaice
761      - Step 1 of merging ice-thickness distribution (ITD) code from
762        MITgcm_contrib/torge/itd/ (author: Torge Martin)
763        The code implements concept laid out in Thorndike et al. (1975);
764        code is enabled via CPP flag SEAICE_ITD
765        nITD (in SEAICE_SIZE.h) defines number of ice thickness categories;
766        code is not complete yet!!
767      - SEAICE_SIZE.h now included in almost all seaice routines
768    o verification (using seaice):
769      - switch back seaice-dynamics (+ lower SOLV_MAX_ITERS) in ADM exp.
770        global_ocean.cs32x15.seaice ; update results.
771      - compile B-grid dynamics in FW test exp 1D_ocean_ice_column ;
772      - compile C-grid dynamics with #define SEAICE_ALLOW_JFNK in FW test exp
773        offline_exf_seaice (previously compiling B-grid).
774    o pkg/exf:
775      - fix some STOP conditions in exf_check.F (from Aug 28, modifs did not allow
776        to specify neither just 1 comp of wind or wind-stress, nor no surface momentum
777        forcing): just replace CPP option ALLOW_ATM_WIND with run-time param useAtmWind.
778    o pkg/layers (adjust changes from Sept 19):
779      - do snap-shot output and fill diagnostics from inside iLa loop (layers_calc.F)
780        this allows to remove "layers_maxNum" dimension from all layers arrays.
781    o pkg/layers (adjust changes from Sept 19):
782      - remove ALLOW_LAYERS_OUTPUT ; fix snap-shot and time-ave output ;
783      - snap-shot extended to all type of layers (not just the 1rst type);
784      - remove layers variables when corresponding CPP option is undef.
785    o pkg/layers:
786      - rename pkg/layers variable and add new output (layer exist & un-weighted
787        velocity in layer)
788    o pkg/seaice:
789      - simplify (?) ocean-drag coefficent computations by using
790        the same routine in all three solvers (saves some code lines)
791      - remove global fields DRAGA and DRAGS from C-grid code and
792        declare them locally in lsr.F (the only place where they are
793        still used)
794      - update AD output of lab_sea.evp (very sensitive anyway).
795    o pkg/seaice: add Jacobian-free Newton Krylov solver for ice dynamics
796      (Lemieux et al. 2010, 2012). Turn on with the usual SEAICE_ALLOW_JFNK
797      and SEAICEuseJFNK=.true. A few things to note:
798      - involves a FGMRES, that is parallel but very inefficient,
799        because of many scalar products (global sums) in the Gram-Schmidt
800        orthogonalization method. Needs to be replaced. Original code
801        from J.-F. Lemieux
802      - preconditioner for FGMRES is a stripped down version of LSOR
803      - SOLV_MAX_ITERS is now used for LSOR as a solver and as a
804        preconditioner. For the preconditioner, the default is set to 10.
805      - Jacobian times vector is computed with finite differences
806      - marginally related to JFNK-solver: add a smooth regularization for
807        zeta with tanh that will improve convergence (Lemieux and Tremblay,
808        2009) for any implicit solver (not implemented for EVP because EVP
809        does not need this regularization in the first place). Define
810        SEAICE_ZETA_SMOOTHREG in SEAICE_OPTIONS.h to use.
811    o eesupp/src:
812      - check in genmake2 that intrinsic S/R flush is available.
813      - add S/R to flush IO unit (if intrinsic S/R flush is available)
814      - flush standard & error msg unit before MPI termination
815      - if debugMode, flush IO unit after printing msg
816    o pkg/ctrl:
817      - ctrl_unpack.F, ALLOW_GENARR3D_CONTROL code: fix missing argument in call
818        to ctrl_set_unpack_xyz.
819    
820    checkpoint64 (2012/10/09)
821    o pkg/shelfice
822      - in mom_fluxform.F, mom_vecinv.F:
823        CALL SHELFICE_V_DRAG(bi,bj,k,vFld,KE,KappaRU,vF,myThid)
824        Bug fix KappaRU -> KappaRV
825        does not change verification/isomip but may change other setups
826        (presumably constant KappaRU=KappaRV)
827      - fix diagnostics SHIU/Vdrag (thanks to Tom Millgate)
828    o pkg/obcs:
829      - fixed some indexing bugs in obcs_seaice_sponge.F
830      - added obcs relaxation subroutines for HSALT and HSNOW
831      - changes verification/seaice_obcs/results/obcs_seaice_sponge.F
832    o pkg/seaice:
833      - add "multicategory" parameterization for snow in analogy to ice,
834        default is off for now.
835    o pkg/obcs:
836      - added obcs_seaice_sponge.F for obcs relaxation of seaice variables;
837        see verification/seaice_obcs/input.seaiceSponge for example application.
838      - remove local commom bloc "OBCS_GLOBAL" in obcs_readparms.F and do all the OB
839        index setting by master-thread. This fix multi-threads Pb in previous modifs.
840    o pkg/layers :
841      - add diagnostics to pkg/layers
842      - move the meat of pkg/layers from layers_calc.F to layers_fluxcalc.F
843        (from R.Tulloch). Layers_calc.F now calls layers_fluxcalc.F accordingly.
844    o pkg/generic_advdiff/gad_implicit_r.F :
845      - fix ADVr diagnostics in case of both implicit vertical advection and diffusion.
846    o pkg/seaice/seaice_growth.F:
847      - fix SItflux diagnostics in virtual salt flux + balanceEmpmr case.
848    o pkg/obcs:
849      - change default setting of OBCS_UVICE_OLD from defined to undef;
850      - use new parameter OB_indexNone for null index value (instead of hard-coded 0)
851        in all pkg/obcs code and in other pkgs; remove k loop in obcs_check_depths.F;
852      - pass OB_indexNone as (new) argument to S/R CTRL_MASK_SET_[X,Y]Z;
853      - change OB null index value (OB_indexNone) to -99 ; this fix the problem
854        with Southern & Western OB at a tile edge (at least in a simple set-up).
855    o pkg/obcs:
856      - change settings of OB index in case OB coincides with tile edge (shared by
857        2 tiles), so that common OB location is registered by both tiles (instead of
858        only 1). However, for Southern and Western OB, index value = 0 is not
859        recognized as valid OB index (=default null value) and needs to be fixed.
860      - modify accordingly OBCS_BALANCE_FLOW and OBCS_MONITOR (avoid double counting)
861      - new parameter "OB_indexNone" for null index value (for now, still zero)
862        to replace hard-coded null index value of zero.
863    o pkg/exch2:
864      - improve W2_USE_E2_SAFEMODE (faster) and W2_E2_DEBUG_ON:
865        always check buffer-size (but outside the loop); move checking for valid
866        index from W2_USE_E2_SAFEMODE to W2_E2_DEBUG_ON; in W2_E2_DEBUG_ON,
867        print each tile and point connection only if |W2_printMsg|>= 2 and 3.
868    o pkg/ctrl (pack & unpack):
869      - in ctrl_pack.F & ctrl_unpack.F, use the same local file-name variable
870        (locally defined) for different variables (+ remove the variable-specific
871        file name in CTRL_GENARR.h). For now, only implemented for GENARR2/3D_CONTROL
872        (to be extended to other local file names in ctrl.h).
873    o pkg/flt:
874      - add a FLT_Iter0 option (similar to PTRACERS_Iter0).
875    o pkg/mdsio:
876      - fix missing STOP in mdsio_readvec_loc.F (case ioUnit=0) when file is missing
877    o tools/genmake2:
878      - add similar dependences for target EXE_AD & EXE_FTL as we have for EXECUTABLE
879        (added by Alistair in version 1.51 for building without make depend);
880      - remove Header files list (H_SRC_FILES) from the dependence of targets
881         ad_input_code.f & ftl_input_code.f (not clear why it was added in the first
882        place in version 1.23): this save going through staf when unrelated header
883        file has been modified.
884       Note: for an intermediate target (e.g., ad_input_code.f or adtaf) without
885        "make depend" step, still need to do "make links" before "make adtaf".
886    o eesupp/src (+ few pkg src files) & genmake2:
887      - finish to remove ALWAYS_USE_MPI in source code that TAF does not see;
888      - no longer set ALWAYS_USE_MPI in Makefile (was done by genmake2).
889      - improve genmake2 checking for ALLOW_${PKG} in CPP_OPTIONS.h files (distinguish
890         upper/lower case ; account for space between "#" and undef/define)
891    o pkg/flt (with exch2):
892      - cleaning: fix so that it compiles; move remaining MPI calls out of flt_exch2.F;
893      - simplify threads synchronisation; fix (many issues) multi-threaded with MPI.
894    
895    checkpoint63s (2012/09/05)
896    o pkg/ecco:
897      - remove #ifdef ALLOW_SMOOTH_CORREL3D brackets.
898      - add more relevant #ifdef ALLOW_SMOOTH ones.
899      - sort out useAtmWind, useSMOOTH, ctrlSmoothCorrel2D.
900    o pkg/ctrl:
901      - CTRL_OPTIONS.h : document CPPs related to smoothing; ALLOW_SMOOTH_CORREL2D/3D,
902        ALLOW_CTRL_SMOOTH, ALLOW_SMOOTH_CTRL2D, ALLOW_SMOOTH_CTRL3D.
903      - ctrl.h : document run time params doInitXX, doMainPack, doMainUnpack, doPackDiag,
904        doSinglePrecTapelev (audodiff param!), ctrlSmoothCorrel2D (new) and
905        ctrlSmoothCorrel3D (new).
906        The added ctrlSmoothCorrel2D/3D replace the old ALLOW_SMOOTH_CORREL2D/3D CPP.
907      - ctrl_readparms.F : initialise ctrlSmoothCorrel2D/3D and read from namelist.
908      - ctrl_init.F ctrl_pack.F ctrl_unpack.F : switch off ustress/vstress
909        controls when useAtmWind, and vice versa.
910      - ctrl_map_ini_ecco.F : UVEL0, VVEL0, edtaux, edtauy cannot be smoothed as tracers.
911      - ctrl_get_gen.F : replace #ifdef ALLOW_SMOOTH_CORREL2D with
912          #ifdef ALLOW_SMOOTH, IF ctrlSmoothCorrel2D, IF useSMOOTH.
913      - ctrl_map_ini_gen.F : replace #ifdef ALLOW_SMOOTH_CORREL3D with
914          #ifdef ALLOW_SMOOTH, IF ctrlSmoothCorrel3D, IF useSMOOTH.
915      - ctrl_set_pack_xy[z].F, ctrl_set_unpack_xy[z].F:
916        replace ALLOW_SMOOTH_CORREL2D/3D brackets with ctrlSmoothCorrel2D/3D.
917    o pkg/smooth:
918      - remove un-necessary includes.
919      - remove ALLOW_SMOOTH*D and ALLOW_SMOOTH_CORREL*D brakets.
920        Those CPP options were never defined, and not necessary.
921    o model/src:
922      - fix CPP brackets in ini_mixing.F (GM_background_K belongs to gmredi).
923      - standard treatment of useSMOOTH.
924    o pkg/autodiff:
925      - add LOGICAL useGGL90inAdMode, useGGL90inFwdMode, useSALT_PLUMEinAdMode,
926        useSALT_PLUMEInFwdMode allowing to switch off ggl90 and salt_plume adjoint.
927    o pkg/exch2:
928      - add "if usingMPI" where it was missing (in exch2_rx?_cube*.template)
929        + start to remove ALWAYS_USE_MPI in source code that TAF does not see.
930      - make new S/R W2_MAP_PROCS out of w2_eeboot.F to setup exch2 CommonFlag
931        and tiles to process mapping.
932      - re-arrange 3 header files (W2_EXCH2_PARAMS.h, _BUFFER.h & _TOPOLOGY.h)
933        moving /EXCH2_FILLVAL_RX/ & /W2_EXCH2_COMMFLAG/ to W2_EXCH2_TOPOLOGY.h;
934        rename "exch2_tProc" to "W2_tileProc" and move seting of e2FillValue_RX
935        from w2_eeboot.F to w2_readparms.F.
936    o eesupp/src:
937      - set exchNeedsMemsync & exchUsesBarrier according to "usingMPI" (instead of
938        ALWAYS_USE_MPI) + moved from ini_communication_patterns.F to eeset_parms.F;
939        also move setting of exchCollectStatistics from exch_init.F to eeset_parms.F
940      - in eedie.F and all_proc_die.F, always call MPI_FINALIZE when ALLOW_USE_MPI
941        is defined (remove condition on usingMPI) to match cases where MPI_INIT
942        has been called.
943      - fix bug I put in previous modif of exch_sm_3d_rx.template (not much used);
944      - change default (non-MPI) value of myPid (from 1 to 0) to match MPI settings
945        (so that on 1 proc, get same myPid independently of usingMPI)
946      - add a stop if multi-procs but usingMPI=F ; stop also if usingMPI=T and
947        useCubedSphereExchange with EXCH-1 (safer).
948      - add "if usingMPI" where it was missing (+ start to remove ALWAYS_USE_MPI).
949    o pkg/ggl90:
950      - fix bug in filling corner mask array "mskCor" (FILL_CS_CORNER_TR_RL call)
951        used in ALLOW_GGL90_SMOOTH code.
952    o pkg/flt:
953      - fix typo in FLT_WITHOUT_Y_PERIODICITY (the effect was to ignore stopping
954        floats at the Southern end of the domain).
955    o eesupp/inc:
956      - add a list of CPP-options which can be set by Makefile (DEF_IN_MAKEFILE.h);
957        but not used (and not to be used) anywhere, just for documentation.
958    o pkg/autodiff, exf, ptracers & seaice (AD & TL output):
959      - comment out the very nasty "writeBinaryPrec = writeStatePrec" line, since:
960        a) can damage previously written records in any other multi-record files.
961        b) if needed, can easily do it cleanly, by calling S/R WRITE_REC_3D_RL/S.
962    o tools/genmake2:
963      - define variable MAKE within Makefile and use it in place of 'make';
964      - update AD_CONFIG.h (if needed) before building any of the executable
965        (forward, adjoint or tangent-lin); this involves a 2nd invocation of make;
966        and add the usual #ifndef/#define AD_CONFIG_H in AD_CONFIG.h;
967      - always print usual warning comment 'this file is automatically generated'
968        from script convert_cpp_cmd2defines (+ remove this warning from genmake2).
969    o pkg/cheapaml:
970      - updated to correspond to the code used in accepted paper (Nico Wienders).
971    o pkg/exf:
972        added run time switch useAtmWind to replace ALLOW_ATM_WIND cpp switch.
973        ALLOW_ATM_WIND now just sets the useAtmWind default (see exf_readparms.F)
974        and force defines ALLOW_BULKFORMULAE (EXF_OPTIONS.h).
975    o pkg/exf, autodiff, ctrl, ecco and seaice:
976        remove ALLOW_ATM_WIND brackets, or replace them with useAtmWind ones.
977    o pkg/ctrl, ecco:
978        allow to compile both ALLOW_U/VSTRESS_CONTROL and ALLOW_U/VWIND_CONTROL.
979        Depending on useAtmWind, one is inactive, and the other is active (see
980        exf_getffields.F/exf_getsurfacefluxes.F).
981    o tools/genmake2:
982      - improve error msg when failing in 2nd test of check_for_broken_Ff
983      - fix option '-makefile' short-name (-mf according to genmake2 -help)
984      - source local config file "genmake_local" just after processing the genmake2
985        command arguments (previously done before processing arg).
986    o pkg/grdchk:
987      - add a call to TURNOFF_MODEL_IO for Tangent-Linear run (in this case, call
988        to this routine from cost_final has been dropped in g_cost_final)
989      - improve printed information (more explicit msg, no longer using "print *,"
990         fix fcpertminus printed value).
991    o model/src:
992      - move call to COST_INIT_VARIA out of packages_init_variables.F directly
993        into initialise_varia.F (just after calling PACKAGES_INIT_VARIABLES):
994        this prevents getting cost-funct reset in adinitialise_varia recomputations.
995    o pkg/dic:
996      - move initialisation of "freefe" array from from dic_biotic_forcing.F to
997        fe_chem.F: this prevents TAF from dropping this initialisation in TLM code.
998    o pkg/grdchk:
999      - grdchk_main.F : added CALL GLOBAL_SUM_INT( ierr , myThid )
1000      - grdchk_getadxx.F etc. : omit I/O if ierr.EQ.0
1001    o pkg/autodiff/ctrl/grdchk :
1002      - attempt to sort out what works and what does not,
1003        with regard to I/O, and to warn/stop accordingly.
1004    o pkg/grdchk:
1005      - attempt to fix grdchk in the case of useSingleCpuIO.
1006      - "if ( myProcId .EQ. grdchkwhichproc .AND. ierr .EQ. 0 )"
1007       statements were moved from grdchk_main.F and into
1008       grdchk_getadxx.F grdchk_getxx.F grdchk_setxx.F.
1009      - a global sum is applied to record numbers icvrec/layer
1010       out of grdchk_loc so that they be passed to I/O routines.
1011    o pkg/smooth:
1012      - fix recomputation that appeared with nlfs : use smooth_recip_hFacC,
1013        smooth_hFacW, smooth_hFacS (copied at init_fixed) in 3d case.
1014    o verification/testreport:
1015      - add option '-tlm' for Tangent-Linear test (-adm,-oad,-tlm are all exclusive);
1016      - can also use compressed (gzip) reference output file;
1017      - change format (in pkg/grdchk) of TLM output (+ add forward gradient)
1018        to be easier to collect by testreport.
1019      - update existing TLM output (half out-of-date by more than 3 yrs).
1020      - report NETCDF & LAPACK settings (from genmake2) in output dir.
1021      - report run-time in each individual summary (previously only for AD test);
1022        for TLM test, add also TAF version.
1023      - add daily TLM test on (old) aces cluster + weekly test on baudelaire.
1024    
1025    checkpoint63r (2012/08/15)
1026    o tools/genmake2:
1027      - fix Makefile for target ftlall (+ update files to clean after make ftlall)
1028    o pkg/ecco/ecco_cost_final.F :
1029      - fix fc print statements (to stdout and costfunction0000) so
1030        that the printed value is always after the global sum.
1031    o pkg/seaice/seaice_dynsolver.F :
1032      - fix ice strength assymptote at SEAICE_area_max<1
1033        (no change for the standard case of SEAICE_area_max=1)
1034    o some cleaning:
1035      - pkg source files: ensure that all *.F files from each pkg included the
1036        corresponding ${PKG}_OPTIONS.h file (except stand-alone src file which
1037        only includes CPP_EEOPTIONS.h); fix S/R CTRL_SMOOTH ; update AD experiment
1038        code_ad/*.F src files; add new option-file in pkg/admtlm + corresponding
1039        includes;
1040      - model/src: add PACKAGES_CONFIG.h wherever ALLOW_AUTODIFF[_TAMC] is used.
1041      - ALLOW_DIFFKR_CONTROL: add a stop in S/R CTRL_CHECK in case ALLOW_3D_DIFFKR
1042        is undef; also define /DYNVARS_DIFFKR/ common block in DYNVARS.h when
1043        ALLOW_DIFFKR_CONTROL is defined, to allow to compile and reach this stop.
1044      - update option-file CPP_OPTIONS.h of all AD experiments:
1045        * no longer include PACKAGES_CONFIG.h ;
1046        * includes ECCO_CPPOPTIONS.h if PACKAGES_CONFIG.h has been included ;
1047        * def/undef ALLOW_3D_DIFFKR independently of ALLOW_DIFFKR_CONTROL (before
1048          including ECCO_CPPOPTIONS.h).
1049    o pkg/cost, pkg/ctrl, pkg/ecco option-file:
1050      - clean-up and split content of old pkg/ecco/ECCO_CPPOPTIONS.h file into
1051        separated pkg option-file (done according to old doc from ECCO_CPPOPTIONS.h,
1052        not necessary accurate).
1053      - add a template for option-file ECCO_CPPOPTIONS.h, mostly empty, in
1054        pkg/autodiff, i.e., the 1rst pkg to compile for adjoint built, with lines to
1055        deliberately break compilation (a remainder that it needs to be customized)
1056      - in pkg/ecco, includes ECCO_OPTIONS.h instead of COST_OPTIONS.h
1057      - rename COST_CPPOPTIONS.h to COST_OPTIONS.h
1058      - rename CTRL_CPPOPTIONS.h to CTRL_OPTIONS.h
1059    o tools/genamke2:
1060      - check for lapack.
1061    o pkg/cost and pkg/ecco : attempt to sort out some of the limiting intricacies.
1062      - pkg/cost.cost_final.F : allow for use of pkg/ecco and pkg/cost cost functions
1063        jointly. The exclusive ifdefs were removed, to add costs terms (when defined)
1064        from both packages.
1065      - the fc global sum in pkg/ecco/ecco_cost_final.F was removed accordingly.
1066      - for objf_atl we use either the pkg/ecco or the pkg/cost term depending on CPPs.
1067      - pkg/ecco and model/src : add CPP brackets around pkg/cost and pkg/ctrl includes
1068        of "CTRL_SIZE.h" "ctrl.h" "ctrl_dummy.h" "optim.h" / "cost.h" accordingly.
1069    o pkg/cost : add comments to explain special and/or untested setups.
1070    o pkg/exf:
1071      - use EXF_OPTIONS.h to set pkg/exf options except if done in ECCO_CPPOPTIONS.h
1072        (previously, ALLOW_AUTODIFF_TAMC was controling this switch).
1073    o verification/*/code_ad:
1074      mimimal cleaning of AD experiments ECCO_CPPOPTIONS.h option-file:
1075      - reccord when this file is included (define ECCO_CPPOPTIONS_H)
1076      - remove the most obvious obsolete features (e.g., #define ALLOW_COST not
1077        allowed since Oct 2003 in any option-file except in PACKAGES_CONFIG.h)
1078    o pkg/seaice :
1079      - added possibility to change ice strength/PRESS0 relationship to
1080        HEFF, according to the following run time parameters
1081        SEAICEpresPow0 :: HEFF exponent for ice strength below SEAICEpresH0 (integer, >0)
1082        SEAICEpresPow1 :: HEFF exponent for ice strength above SEAICEpresH0 (integer, >0)
1083        SEAICEpresH0   :: HEFF threshold for ice strength            (m)
1084    o pkg/ggl90 :
1085      - added run time flag mxlSurfFlag to include the code that ensure
1086        mixing between first and second level (previously included as a comment)
1087    o verification/1D_ocean_ice_column/input_ad/data.autodiff :
1088      - add test of newly added dumpAdByRec=T option where
1089        we write all records to one file per variable.
1090    o verification/global_ocean.cs32x15/code_ad/CPP_OPTIONS.h :
1091      - switch to #define ALLOW_BALANCE_RELAX and ALLOW_BALANCE_FLUXES
1092        to check that this code is ok with taf and compiles in adjoint.
1093    o pkg/autodiff :
1094      - added run time param dumpAdByRec : ad dump format switch.
1095        If true then write all records to one file per variable.
1096        Else write one file per record (remains the default).
1097      - revise seaice_ad_dump.F and exf_adjoint_snapshots_ad.F accordingly.
1098    o pkg/seaice:
1099     - Added SEAICEuseTILT run time switch : if set to
1100       false then omit the tilt term in seaice dynamics.
1101     - Fix free drift calculation.
1102    o pkg/shelfice:
1103      When initializing SHELFICEDragQuadratic, set default to be
1104      consistent with shiCdrag in case SHELFICEuseGammaFrict is used,
1105      but retain option to set it independently
1106      (inconsistenty spotted by Veronique Dansereau)
1107    o eesupp/inc:
1108      - in EEPARAMS.h, add real-type constant for some frequently used simple number
1109         (0,1,2,1/2), with name explicitly referring to RS/RL type.
1110    o model/src:
1111      - move balancing of relaxation terms to new S/R balance_relax.F.
1112    o pkg/autodiff:
1113      re-write active I/O high-level (control) S/R:
1114      - rename  S/R ACTIVE_READ/WRITE_RL to ACTIVE_READ/WRITE_3D_RL
1115      - add 1 more argument (useCurrentDir) to replace the "_LOC" 2nd set of S/R.
1116      - use standard pkg/mdsio I/O routines (MDS_READ/WRITE_SEC_XZ/YZ  and
1117        MDS_READ/WRITE_FIELD); change loops to multi-threads.
1118      - update and merge active_file_control_slice.flow into active_file_control.flow
1119      - update the calls in lower level S/R (active_file.F, active_file_g.F and
1120        active_file_ad.F) keeping the argument list and function unchanged.
1121      - also update lower-level "_LOC" version (call same S/R with "useCurrentDir
1122        =.TRUE.") and remove high-level (control) _loc version (not called anymore).
1123      - new low-level active I/O routines, one for each type (RL/RS), for active var
1124        of various (XY,XZ,YZ) shape and level number (arguments: arrShape, myNr);
1125        fix ctrl_init_wet.F & ecco_cost_weights.F by calling the new S/R with the
1126        right type.
1127    o autodiff and RS=real*4:
1128      - call the right type (_RS instead of _RL) of S/R in few output S/R (pkg/exf
1129        ad-monitor and snapshots); disable arrType='RS' in mdsio_gl*.F ;
1130      - change argument type of 3-D mask argument to _RS to match type in the call
1131        (in seaice_cost*.F, ctrl_*_gen.F and *ctrl_bound.F); to be continued.
1132    o pkg/thsice:
1133      - re-anable balanceEmPmR when useSEAICE=T with useThSIce=T.
1134      - option to correct ocean fresh-water flux for imbalance of Atmos+Land
1135        fresh-water flux: uniform correction or proportional to local precip.
1136    o pkg/ctrl:
1137      - new header file CTRL_SIZE.h for parameters maxCtrlArr2D, maxCtrlArr3D
1138      - redefine CPP option ALLOW_BOTTOMDRAG_CONTROL to
1139                            ALLOW_BOTTOMDRAG_CONTROL_NONGENERIC
1140      - verification/hs94.1x64x5/ tests ALLOW_GENARR{2D,3D}_CONTROL
1141    
1142    checkpoint63q (2012/07/30)
1143    o pkg/autodiff:
1144      note about monitor and snap-shot of ad-variables:
1145      a) need to apply ADEXCH before monitor or output of ad-vars to include
1146       overlap contributions (was done for adjDump but missing for monitor).
1147      b) since ADEXCH implies adding overlap values to interior array, machine
1148       truncation error is expected when adding an ADEXCH call in the middle of
1149       the time-stepping (although mathematically identical).
1150      modifs:
1151      - fix some incorrect type (RL/RS, UV/scalar) in ADEXCH calls and ad-vars
1152        declaration (adEddyPsiX,adEddyPsiY in adcommon.h).
1153      - add new run-time params (dumpAdVarExch & mon_AdVarExch) to select how  to
1154        apply ADEXCH before monitor or snap-shot of ad-variables:
1155           =0 : no ADEXCH ; =1 : do ADEXCH ; =2 : apply ADEXCH on a local copy.
1156      - implement new method (copy+adexch) for snap-shot and monitor of main model
1157        ad-vars (initially not used by default -> output unchanged).
1158      - change default (set to 2) to use new method and update few output_adm.txt
1159        with accurate ad-monitor (global_ocean.90x40x15, tutorial_global_oce_biogeo
1160        and both tutorial_tracer_adjsens tests).
1161      - switch 2 global_ocean.cs32x15 AD-tests to AB-2 (seaice_dynmix & thsice)
1162        and turn off momDissip_In_AB in the 2 other (needed for stable AB-3).
1163    o pkg/ctrl:
1164      enable the use of a variable number (maxCtrlArr2D, maxCtrlArr3D) of
1165      generic control variables via
1166      #define ALLOW_GENARR2D_CONTROL and/or #define ALLOW_GENARR3D_CONTROL
1167      Only required customization should be S/R ctrl_map_ini_genarr.F
1168      (routine in repository contains example)
1169    o pkg/exf:
1170      - fix and refine checking of surface-relaxation setting when using EXF
1171    o verification (adjoint exp):
1172      - reduce length of simulation by half for experiment global_ocean.cs32x15
1173        (std, seaice & seaice_dynmix) and exp tutorial_dic_adjoffline; update output.
1174    o pkg/mom_common (mom_u/v_bottomdrag), pkg/shelfice (shelfice_u/v_drag)
1175      - replace if statements KE.ne.0 with KE.gt.0 to avoid sqrt of negative numbers
1176        of KE that can occur with aggressive optimization
1177      + put quadratic bottom drag calculation in separated loops (only done if
1178        using bottomDragQuadratic)
1179    o model/src: CG2D_NSA
1180      - clean-up:  stop if cg2dNormaliseRHS=T and AUTODIFF
1181         and replace GLOBAL_SUM calls with GLOBAL_SUM_TILE.
1182      - in test-exp that uses CG2D_NSA (bottom_ctrl & tutorial_tracer_adjsens),
1183         change cg2d residual target to be expressed in Wunits (=> do not normalise
1184         RHS ; this fix global_max Pb with TAF); update output.
1185    o verification/tutorial_tracer_adjsens:
1186       improve parameter consistency (and get rid of warnings):
1187       - use deltaTFreeSurf=deltaTtracer (better with NonLin FreeSurf);
1188       - switch Temp Adv Scheme from 81 to 80 (no limiter since theta < 0 is physical)
1189       - use staggerTimeStep (for stability) in som81; use default rotation period.
1190    o pkg/exch2:
1191      - with empty facet: fix compact-format (W2_mapIO=1) definition (was previously
1192        reset to 0 = 1 long line in X)
1193    o pkg/mdsio:
1194      - fix reading of dimensions from meta file for large-size domain
1195    o model/src:
1196      - fix saltIsActiveTr setting for IdealGas eosType (eosType is 6 character long);
1197      - to refine CS-grid check, add logical flag "hasWetCSCorners": true if using
1198        Cubed-Sphere Exch with CS-corners inside the domain;
1199        make new S/R INI_GLOBAL_DOMAIN from code in ini_linear_phisurf.F to calculate
1200        globalArea and to set hasWetCSCorners.
1201      - add warning if usingCurvilinearGrid and momAdvection in flux-form (missing
1202        metric terms); stop if hasWetCSCorners=T and momAdvection in flux-form.
1203      - re-activate the stop if useCDscheme and hasWetCSCorners=T (previously if
1204        useCDscheme and useCubedSphereExchange).
1205    o pkg/seaice/seaice_growth.F :
1206      - compute the SEAICE_DISABLE_HEATCONSFIX term accordingly
1207        for the (.NOT.useRealFreshWaterFlux).OR.(nonlinFreeSurf.EQ.0)
1208        when the previous code was not correct.
1209      - in all cases diagnoze the boundary condition mismatch to SIaaflux
1210      - in the case of useRealFreshWaterFlux.AND.(nonlinFreeSurf.GT.0) add
1211        that term to QNET (essentially to set the melt/freeze water to 0degC).
1212        when SEAICEheatConsFix is true, so that the ocean+ice budget heat is closed.
1213    o verification/global_ocean.cs32x15/input.seaice :
1214      - add SEAICEheatConsFix in data.seaice, ensuring closed ocean+ice heat budget.
1215      - add diagnostics (commented out) for budget test using my matlab codes (gcmfaces).
1216      - update results (output.seaice.txt) accordingly.
1217    o verification/lab_sea/input/data.seaice :
1218      - remove SEAICEheatConsFix, which is now be tested
1219        in global_ocean.cs32x15. The presently coded fix
1220        is only consistent with real fresh water + nlfs.
1221      - update results (output.txt) accordingly.
1222    o pkg/salt_plume: added diagnotic for salt tendency (oceSPtnd).
1223    o AD_CONFIG.h file:
1224      - in genmake2: remove "#undef ALLOW_ECCO_OPTIMIZATION" from AD_CONFIG.h;
1225      - remove #include "AD_CONFIG.h" from all included OPTIONS files and
1226        add it explicitly in each fortran src file where it is needed.
1227        motivation: header file AD_CONFIG.h is generated/modified after "make depend"
1228        thus introducing potentially wrong dependency; therefore, better to include
1229        it only where it's really needed, and after any other included OPTIONS file
1230        (less tempting to bring conditional includes according to ALLOW_ADJOINT_RUN
1231        or ALLOW_TANGENTLINEAR_RUN).
1232    
1233    checkpoint63p (2012/07/06)
1234    o pkg/autodiff:
1235      - rename S/R INI_AUTODIFF to AUTODIFF_INIT_VARIA ;
1236      - create new header file "AUTODIFF_PARAMS.h" for pkg/autodiff parameters
1237        which are now read from new parameter file "data.autodiff" (inAdExact
1238        previously in "data", use{KPP/GMRedi/SEAICE}inAdMode previously in data.pkg)
1239      - add file "data.autodiff" in all verification/*/input_ad/ directories.
1240      - add run-time parameter to turn On/Off SEAICEuseFREEDRIFT in adjoint/forward
1241        mode (used in global_ocean.cs32x15.seaice_dynmix test exp.)
1242    o verification/tutorial_tracer_adjsens/
1243      - add extra sub-verification which uses "SOM" advection scheme
1244        (2nd Order-Moment Advection Scheme, Prather Limiter) with
1245          #define GAD_ALLOW_TS_SOM_ADV in GAD_OPTIONS.h
1246        and in data:
1247          multiDimAdvection=.TRUE.,
1248          tempAdvScheme=81,
1249          saltAdvScheme=81,
1250    o model/src:
1251      - introduce ALLOW_BALANCE_RELAX which allow the removal
1252       of the global mean of relaxation terms by setting
1253       balanceThetaClimRelax and balanceSaltClimRelax
1254      - disable balanceEmPmR and balanceQnet in the case when useSeaice.
1255       This case is now treated appropriately in seaice_growth.F
1256    o pkg/seaice:
1257      - do balanceEmPmR and balanceQnet based on the net fluxes
1258        (SItflux) that enter the ocean+ice system rather than QNET
1259        and EMPMR. Works best in real fresh water.
1260      - SIatmFW, SIatmQnet, and SItflux computations had to be moved
1261        out of the diagnotics bloc, and stored in global arrays.
1262    
1263    checkpoint63o (2012/06/29)
1264    o vertical mixing schemes:
1265      - remove unused S/R CALC_BUOYANCY (left from branch-atmos merging)
1266      - replace computation of density (in Function STATE1, opps_calc.F) by a call
1267        to S/R FIND_RHO_SCALAR
1268      - pass sigmaR to S/R PP81_CALC, MY82_CALC (but not yet used) and to GGL90_CALC
1269        and use it for N^2 calculation in ggl90_calc.F (save 2 density computations);
1270        affects output (vermix.ggl90) at truncation level.
1271    o testreport:
1272      - change adjustment of SIZE.h for mpi+mth testing: preserve enough tiles
1273        (nSx,nSy) for the number of threads (from eedata.mth)
1274    o model/src:
1275      - remove 2nd set of calls at the top of initialise_varia.F (Adjoint part)
1276        related to Non_Lin Free-Surf or Bottom-Control (but not longer necessary).
1277    o verification/tutorial_tracer_adjsens/
1278      - compile with ALLOW_CG2D_NSA
1279      - run with nonlinFreeSurf=3
1280      - update reference output_adm.txt
1281    o tools/genmake2:
1282      - add "-DHAVE_NETCDF" to the DEFINES list when NetCDF is available ;
1283        refine usePROFILES switching off (only when NetCDF is not available).
1284    o verification (atmospheric set-up):
1285      - change eosType='IDEALGAS' to eosType='IDEALG' to match variable declaration
1286    o pkg/profiles : refine profiles and files handling.
1287    o model/src and pkg/ecco : introduce run-time switch usePROFILES.
1288    o model/src/the_main_loop.F, forward_step.F and pkg/exf/EXF_OPTIONS.h :
1289      - changes to use model/src/the_main_loop.F rather than the ecco version
1290        in ecco type adjoint runs.
1291    o model/src:
1292      - move computation of recip of grid distance & area from INI_MASKS_ETC to INI_GRID
1293      - move setting of h0Fac[C,W,S] from INI_LINEAR_PHISURF to INI_MASKS_ETC
1294      - update_masks_etc.F: rename SMOOTH*_R4,R8 function to the corresponding type (RS,RL)
1295    o model/src:
1296      - fix S/R UPDATE_CG2D for ALLOW_DEPTH_CONTROL case (was empty before);
1297        update output of test experiment bottom_ctrl_5x5.
1298    o pkg/generic_advdiff:
1299      - implement vertical bi-harmonic diffusion (for now, only for T & S and
1300        only explicitly).
1301    o verification/bottom_ctrl_5x5/
1302      update reference output (results changed quite some time ago,
1303      not sure when; but new reference results look ok in terms of grdchk)
1304    o verification/1D_ocean_ice_column/
1305      For verification purposes, the exact adjoint rather than an approx.
1306      should be used (e.g., to comare against F.D. or TLM).
1307      removed autodiff_inadmode*_ad.F routines in code_ad/
1308      Update results/ accordingly.
1309    o pkg/cal:
1310      - change cal_getdate.F so that output date is function of input time only
1311        (less ambiguous, not mixed up with input iteration number).
1312      - fix calendarDumps for non-zero phase-lag (S/R CAL_TIME2DUMP).
1313    o pkg/diagnostics:
1314      - implement calendarDumps also for stats-diags
1315      - implement calendarDumps also for snap-shot output (negative freq)
1316      - for now, ignores calendarDumps if non-zero phase-lag.
1317    
1318    checkpoint63n (2012/06/04)
1319    o model/src:
1320      - recompute rSurfW & S to ensure consistent column thickness (needed for rStar)
1321        between Sum_k(hFac*drF) and rSurf-rLow, for now only when using pkg/shelfice;
1322      - use h0FacC, W & S to compute hFac_surfC, W & S in calc_surf_dr.F (more
1323        similar to calc_r_star.F); update results of experiment internal_wave and
1324        tutorial_global_oce_in_p (affected @ truncation level).
1325    o pkg/shelfice:
1326      - add parameterisation of advective-diffusive flux into the ice shelf
1327        according to Holland and Jenkins (1999), eq.22-33, as suggested by Jan De Ryd
1328      - simply eps3/3a computation
1329    o eesupp:
1330     - add new CPP option (DISCONNECTED_TILES) to disconnect tiles (no exchange
1331       between tiles, just fill-in edges assuming locally periodic subdomain) and
1332       add corresponding exchange subroutines (EXCH0);
1333     - new CG-solver version (_EX0) for disconnected-tiles special case.
1334    o model/src (CG-solvers):
1335     - modify Single-Reduction version (CG2D_SR) in case cg2dMaxIters is reached
1336       (similar final residual output and max-Iter number as with standard version);
1337     - allows to store and use lowest-residual solution (standard & _SR versions);
1338     - cleaning up (remove old, commented out code, LETS_MAKE_JAM ...).
1339     - by default, also compile CG2D_SR version (define ALLOW_SRCG in CPP_OPTIONS.h)
1340    o eesup/src:
1341     - global_vec_sum.F cleaning: add a BARRIER ; update comments ; remove ndef
1342       ALWAYS_USE_MPI (no longer needed after fixing usingMPI settings - March 2012)
1343    o pkg/salt_plume added to lab_sea/input_ad.noseaicedyn
1344    
1345    checkpoint63m (2012/04/27)
1346    o pkg/shelfice:
1347     - account for partical cells in surface level below ice-shelf for hydrostatic
1348       pressure calculion (set uniformFreeSurfLev to F); update isomip experiments.
1349    o ad test experiments:
1350     - update and rename to "ad_optfile.local" local AD-optfile specific to a
1351       particular adjoint verification experiment (in verification/*/code_ad/)
1352    o pkg/seaice & pkg/exf:
1353     - Part two of ECCO-CLIVAR code merges.
1354       Completes merge of seaice area relax. code.
1355       Requires unified CPP option EXF_ALLOW_SEAICE_RELAX
1356       to be set in EXF_OPTIONS.h since this pkg controls its I/O
1357       (and avoids second CPP option in SEAICE_OPTIONS.h)
1358     - change default value of costIceStart & costIceEnd to a valid date.
1359     - add snowPrecip to HSNOW in seaice_growth
1360    o pkg/ptracers:
1361     - move ptracers summary and setup check into separated S/R ; add a check for
1362       valid PTRACERS_Iter0 value (error+stop or just warning).
1363    o pkg/cal (+ pkg/ecco):
1364     - avoid calling a S/R with 2 times the same arg (FWD: unless both are only used
1365       as input; and for AD, unless both are not differentiable (e.g., k index)).
1366    o model/src:
1367     - define internal flag "uniformFreeSurfLev" (=T when free-surface level-index
1368       is everywhere k=1) to speed-up some calculations (by pass kSurf reference);
1369       temporary set to usingZCoords value (to be changed to F when using shelfice).
1370     - hydrostatic pressure: implement partial cell near the surface also for
1371       Z-coordinates (for the case where uniformFreeSurfLev=F); replace test on
1372       usingZCoords with test on uniformFreeSurfLev where needed (in NonHyd code).
1373    o pkg/ctrl/ctrl_init.F:
1374     - add a formal parameter to s/r ctrl_init_rec to print
1375       xx_$(ctrl_valiable)_file for easier debugging
1376     - move call of cal_* routines into the if-block where they are really
1377       needed so that xx_$(ctrl_variable)_period can be 0 or -12 without having
1378       to specify a startdate
1379    o pkg/seaice:
1380     - update comments in SEAICE_OPTIONS.h (+ similar update of lab_sea/code and
1381       global_ocean.cs32x15/code versions).
1382     - turn on seaice Multi-category (in data.seaice, SEAICE_multDim=7) for
1383       verification experiment global_ocean.cs32x15.seaice and update results.
1384    o pkg/exf:
1385     - new S/R EXF_GETFIELD_START to return starting-time of a forcing field
1386       (according to useExfYearlyFields).
1387    o pkg/cal:
1388     - move calendar setting & summary (previously in cal_readparams.F) into new
1389       S/R CAL_INIT_FIXED to be called later in the initialisation process, once
1390       length of the simulation is set (after SET_PARMS call); This is an attempt
1391       to fix Pb when, e.g.: pkg/longstep, modifies the length of the run.
1392     - For safety: keep a record of pkg/cal parameter settings status
1393               to allow to STOP if one pkg/cal S/R is called too early.
1394     - add a stop in all basic pkg/cal subroutines if called before setting is done.
1395     - modify cal_getdate.F: stop when nothing was returned;
1396       if called with myIter=-1, simply retrun modelBaseDate (1,2 = startDate_1,_2);
1397       this allows to remove "cal.h" from seaice_read_parms.F & init_mnc_vars.F.
1398    
1399    checkpoint63l (2012/04/04)
1400    o pkg/bbl:
1401      - fix call to FIND_RHO_2D in bbl_calc_rho.F (case multi-tiles per proc);
1402        update global_with_exf output.yearly.txt file.
1403    o pkg/cal:
1404      - start to clean-up cal_set.F ; fix for the case where baseTime is non-zero.
1405      - remove 2 unsused and very short (1 line only) functions ;
1406      - remove unsused subroutines from AD-Diff list.
1407    o model/src:
1408      - start to implement clean wait to stop in initialization S/R (config_check.F,
1409         packages_check.F, ini_parms.F and pkg/obcs/obcs_check.F + pkg/mypackage)
1410    o folowing PRINT_MESSAGE changes:
1411      - remove reminder multiple print to the same file (STDOUT) when multi-threads.
1412  o pkg/bbl:  o pkg/bbl:
1413    - modification so it can work with z*    - modification so it can work with z*
1414    - replace deltaT with dTtracerLev(k) for asynchronous time stepping    - replace deltaT with dTtracerLev(k) for asynchronous time stepping

Legend:
Removed from v.1.1641  
changed lines
  Added in v.1.1908

  ViewVC Help
Powered by ViewVC 1.1.22