4.12. Offline Experiments

This document describes two experiments using the offline form of the MITgcm.

4.12.1. Overview

The first experiment demonstrates use of the offline form of the MITgcm to study advection of a passive tracer. Time-averaged flow-fields and mixing coefficients, deriving from a prior online run, are re-used leaving only the tracer equation to be integrated. This first experiment’s run configuration is specified in directory verification/tutorial_cfc_offline/input_tutorial.

Figure — missing figure — shows a movie of tracer being advected using the offline package of the MITgcm. In the top panel the frames of the movie show the monthly surface evolution of an initially local source of passive tracer. In the lower panel, the frames of the movie show the changing monthly surface evolution where the initial tracer field had a global distribution.

The second experiment, a more complicated example exploring contamination of the global ocean through surface exposure to CFCs during the last century, is described after this more simple first example. The run configuration for this second experiment is specified in directory verification/tutorial_cfc_offline/input.

4.12.2. Time-stepping of tracers

See Section 2.16 and Section 2.17 for details of available tracer time-stepping schemes and their characteristics.

4.12.3. Code Configuration

The experiment files

contain the code customizations and parameter settings required to run the example. In addition the following binary data files are required:

4.12.3.1. File input_tutorial/data

Listing 4.25 verification/tutorial_cfc_offline/input_tutorial/data
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# ====================
# | Model parameters |
# ====================
#
# Continuous equation parameters
 &PARM01
 implicitDiffusion=.TRUE.,
 &
#
# Elliptic solver parameters
 &PARM02
 cg2dMaxIters=1000,
 cg2dTargetResidual=1.E-13,
 &
#
# Time stepping parameters
 &PARM03
 nIter0  = 4269600,
 nTimeSteps = 4,
 deltaTtracer= 43200.0,
 deltaTClock = 43200.0,
 pChkptFreq=3110400000.,
 chkptFreq= 3110400000.,
 dumpFreq=  31104000.,
 taveFreq=  31104000.,
 monitorFreq= 1.,
 periodicExternalForcing=.TRUE.,
 externForcingPeriod=2592000.,
 externForcingCycle=31104000.,
 &
#
# Gridding parameters
 &PARM04
 usingSphericalPolarGrid=.TRUE.,
 delR=  50.,  70., 100., 140., 190., 
       240., 290., 340., 390., 440., 
       490., 540., 590., 640., 690.,
 ygOrigin=-90.,
 dxSpacing=2.8125,
 dySpacing=2.8125,
 &
#
# Input datasets
 &PARM05
 bathyFile=      'depth_g77.bin',
 &

This file specifies the main parameters for the experiment.

  • Lines 18-19,

    nIter0  = 4269600,
    nTimeSteps = 4,
    

nIter0 and nTimesteps control the start time and the length of the run (in timesteps). Given at nIter0 is non-zero, the model requires appropriate pickup files to be present in the run directory. For testing purposes, the model has been prescribed to run for 4 timesteps; for a longer run, increase nTimesteps.

  • Line 20,

    deltaTtracer= 43200.0,
    

deltaTtracer is the tracer timestep in seconds, in this case, 12 hours (43200 seconds = 12 hours). Note that deltatTracer must be specified in input_tutorial/data as well as specified in deltaToffline in input_tutorial/data.off.

  • Line 21,

    deltaTClock= 43200.0,
    

When using the MITgcm in offline mode, deltaTClock (an internal model counter) should be made equal to the value assigned to deltatTtracer.

  • Line 27,

    periodicExternalForcing=.TRUE.,
    

periodicExternalForcing is a flag telling the model whether to cyclically re-use forcing data where there is external forcing (see Section 4.12.5 below). Where there is no external forcing, as here, but where there is to be cyclic re-use of the offline flow and mixing fields, periodicExternalForcing must be assigned the value .TRUE..

  • Line 28,

    externForcingPeriod=2592000.,
    

externForcingPeriod specifies the period of the external forcing data in seconds. In the absence of external forcing, as in this example, it must be made equal to the value of externForcingPeriod in input_tutorial/data.off, in this case, monthly (2592000 seconds = 1 month).

  • Line 29,

    externForcingCycle=31104000.,
    

externForcingCycle specifies the duration of the external forcing data cycle in seconds. In the absence of external forcing, as in this example, it must be made equal to the value of externForcingCycle in input_tutorial/data.off, in this case, the cycle is one year (31104000 seconds = 1 year).

  • Line34,

    usingSphericalPolarGrid=.TRUE.,
    

This line requests that the simulation be performed in a spherical polar coordinate system. It affects the interpretation of grid input parameters and causes the grid generation routines to initialize an internal grid based on spherical polar geometry.

  • Lines 35-37,

    delR=  50.,  70., 100., 140., 190.,
          240., 290., 340., 390., 440.,
          490., 540., 590., 640., 690.,
    

This line sets the vertical grid spacing between each \(z\)-coordinate line in the discrete grid. Here the total model depth is 5200 m.

  • Line 38,

    ygOrigin=-90.,
    

This line sets the southern boundary of the modeled domain to -90o latitude N (= 90o S). This value affects both the generation of the locally orthogonal grid that the model uses internally and affects the initialization of the Coriolis force. Note: it is not required to set a longitude boundary, since the absolute longitude does not alter the kernel equation discretization.

  • Line 39,

    dxSpacing=2.8125,
    

This line sets the horizontal grid spacing between each \(y\)-coordinate line in the discrete grid to 2.8125o in longitude.

  • Line 40,

    dySpacing=2.8125,
    

This line sets the vertical grid spacing between each \(x\)-coordinate line in the discrete grid to 2.8125o in latitude.

  • Line 45,

    bathyFile='depth_g77.bin',
    

This line specifies the name of the file from which the domain bathymetry is read. This file contains a 2-D (\(x,y\)) map of (assumed 64-bit) binary numbers giving the depth of the model at each grid cell, ordered with the \(x\) coordinate varying fastest. The points are ordered from low coordinate to high coordinate for both axes. The units and orientation of the depths in this file are the same as used in the MITgcm code. In this experiment, a depth of 0 m indicates land.

4.12.3.2. File input_tutorial/data.off

Listing 4.26 verification/tutorial_cfc_offline/input_tutorial/data.off
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
 &OFFLINE_PARM01
  UvelFile= 'input_off/uVeltave',
  VvelFile= 'input_off/vVeltave',
  WvelFile= 'input_off/wVeltave',
  GMwxFile= 'input_off/GM_Kwx-T',
  GMwyFile= 'input_off/GM_Kwy-T',
  GMwzFile= 'input_off/GM_Kwz-T',
  ConvFile= 'input_off/Convtave',
 &

 &OFFLINE_PARM02
  offlineIter0=4248000,
  deltaToffline=43200.,
  offlineForcingPeriod=2592000.,
  offlineForcingCycle=31104000.,
 &

input_tutorial/data.off provides the MITgcm offline package with package specific parameters. Specifically, it contains the location (relative to the run directory) and prefix of files describing the flow field (UvelFile, VvelFile, WvelFile) and the corresponding convective mixing coefficients (ConvFile) which together prescribe the 3-D, time varying dynamic system within which the offline model will advect the tracer.

  • Lines 2-4,8

    UvelFile= '../input/input_off/uVeltave',
    VvelFile= '../input/input_off/vVeltave',
    WvelFile= '../input/input_off/wVeltave',
    ConvFile= '../input/input_off/Convtave',
    

In the example the offline data is located in the sub-directory verification/tutorial_cfc_offline/input/input_off. In this directory are fields describing the velocity and convective mixing histories of a prior forward integration of the MITgcm, required for the offline package. Based on the values of deltaToffline, offlineForcingPeriod and offlineForcingCycle specified in verification/tutorial_cfc_offline/input/input_off, since offlineForcingCycle corresponds to twelve forcing periods offlineForcingPeriod and since offlineIter0 is zero, there needs to be twelve uVeltave, twelve vVeltave, twelve wVeltave and twelve Convtave files each having a 10 digit sequence identifier between 0000000001 to 0000000012, that is, a total of 48 files.

  • Line 12,

    offlineIter0=4248000,
    

offlineIter0, here specified to be 4248000 timesteps, corresponds to the timestep at which the tracer model is initialized. Note that offlineIter0 and nIter0 (set in input_tutorial/data) need not be the same.

  • Line 13,

    deltaToffline=43200.,
    

deltatToffline sets the timestep associated with the offline model data in seconds, here 12 hours (43200 seconds = 12 hours).

  • Line 14,

    offlineForcingPeriod=43200.,
    

offlineForcingPeriod sets the forcing period associated with the offline model data in seconds.

  • Line 15,

    offlineForcingCycle=518400.,
    

offlineForcingCycle sets the forcing cycle length associated with the offline model data in seconds. In this example the offline forcing cycle is 6 days, or twelve offline forcing periods. Together deltatToffline, offlineForcingPeriod and offlineForcingCycle determine the value of the ten digit sequencing tag the model expects files in input_tutorial/data.off to have.

4.12.3.3. File input_tutorial/data.pkg

Listing 4.27 verification/tutorial_cfc_offline/input_tutorial/data.pkg
1
2
3
4
5
6
7
# Packages
 &PACKAGES
 useGMRedi=.TRUE.,
 usePTRACERS=.TRUE.,
 useGCHEM=.TRUE.,
 &
  

This file specifies which MITgcm packages are to be used.

  • Line 4,

    usePTRACERS=.TRUE.,
    

usePTRACERS is a flag invoking pkg/ptracers which is responsible for the advection of the tracer within the model.

4.12.3.4. File input_tutorial/data.ptracers

Listing 4.28 verification/tutorial_cfc_offline/input_tutorial/data.ptracers
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
 &PTRACERS_PARM01
 PTRACERS_numInUse=2,
 PTRACERS_Iter0= 4248000,
#
# tracer 1 - CFC11
 PTRACERS_advScheme(1)=77,
 PTRACERS_diffKh(1)=0.E3,
 PTRACERS_diffKr(1)=5.E-5,
 PTRACERS_useGMRedi(1)=.TRUE. ,
 PTRACERS_useKPP(1)=.FALSE. ,
 PTRACERS_initialFile(1)=' ',
# tracer 2 - CFC12
 PTRACERS_advScheme(2)=77,
 PTRACERS_diffKh(2)=0.E3,
 PTRACERS_diffKr(2)=5.E-5,
 PTRACERS_useGMRedi(2)=.TRUE. ,
 PTRACERS_useKPP(2)=.FALSE. ,
 PTRACERS_initialFile(2)=' ',
 &

This file provides the MITgcm ptracers package with package specific parameters, prescribing the nature of the the tracer/tracers as well as the variables associated with their advection.

  • Line 2,

    PTRACERS_numInUse=2,
    

PTRACERS_numInUse tells the model how many separate tracers are to be advected, in this case 2. Note: The value of PTRACERS_numInUse must agree with the value specified in code/PTRACERS_SIZE.h (see below).

  • Line 3,

    PTRACERS_Iter0= 4248000,
    

PTRACERS_Iter0 specifies the iteration at which the tracer is to be introduced.

  • Lines 6 and 13,

    PTRACERS_advScheme(1)=77,
    

PTRACERS_advScheme(n) identifies which advection scheme will be used for tracer n, where n is the number of the tracer up to PTRACERS_numInUse. See Section 2.17 to identify the numerical codes used to specify different advection schemes (e.g. centered 2nd order, 3rd order upwind) as well as details of each.

  • Lines 7 and 14,

    PTRACERS_diffKh(1)=1.E3,
    

PTRACERS_diffKh(n) is the horizontal diffusion coefficient for tracer n, where n is the number of the tracer up to PTRACERS_numInUse.

  • Lines 8 and 15,

    PTRACERS_diffKr(1)=5.E-5,
    

PTRACERS_diffKr(n) is the vertical diffusion coefficient for tracer n, where n is the number of the tracer up to PTRACERS_numInUse.

  • Lines 11 and 18,

    PTRACERS_initialFile(1)=' ',
    

PTRACERS_initialFile(n) identifies the initial tracer field to be associated with tracer n, where n is the number of the tracer up to PTRACERS_numInUse. Note that no initial file is specified here.

Note input_tutorial/data.ptracers requires a set of entries for each tracer.

4.12.3.5. File input_tutorial/eedata

This file uses standard default values and does not contain customizations for this experiment.

4.12.3.6. File code/packages.conf

Listing 4.29 verification/tutorial_cfc_offline/code/packages.conf
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
gfd
-mom_common
-mom_fluxform 
-mom_vecinv
gmredi
ptracers
gchem
cfc
offline
timeave

This file is used to invoke the model components required for a particular implementation of the MITgcm.

4.12.3.7. File code/PTRACERS_SIZE.h

Listing 4.30 verification/tutorial_cfc_offline/code/PTRACERS_SIZE.h
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
#ifdef ALLOW_PTRACERS

CBOP
C    !ROUTINE: PTRACERS_SIZE.h
C    !INTERFACE:
C #include PTRACERS_SIZE.h
 
C    !DESCRIPTION:
C Contains passive tracer array size (number of tracers).

C PTRACERS_num defines how many passive tracers are allocated/exist.
C  and is set here (default 1)
C
C     Number of tracers
      INTEGER PTRACERS_num
      PARAMETER(PTRACERS_num = 2 )

CEOP
#endif /* ALLOW_PTRACERS */
  • Line 16,

    PARAMETER(PTRACERS_num = 2 )
    

This line sets the parameters PTRACERS_num (the number of tracers to be integrated) to 2 (in agreement with input_tutorial/data.ptracers).

4.12.3.8. File code/SIZE.h

Listing 4.31 verification/tutorial_cfc_offline/code/SIZE.h
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
CBOP
C    !ROUTINE: SIZE.h
C    !INTERFACE:
C    include SIZE.h
C    !DESCRIPTION: \bv
C     *==========================================================*
C     | SIZE.h Declare size of underlying computational grid.
C     *==========================================================*
C     | The design here supports a three-dimensional model grid
C     | with indices I,J and K. The three-dimensional domain
C     | is comprised of nPx*nSx blocks (or tiles) of size sNx
C     | along the first (left-most index) axis, nPy*nSy blocks
C     | of size sNy along the second axis and one block of size
C     | Nr along the vertical (third) axis.
C     | Blocks/tiles have overlap regions of size OLx and OLy
C     | along the dimensions that are subdivided.
C     *==========================================================*
C     \ev
C
C     Voodoo numbers controlling data layout:
C     sNx :: Number of X points in tile.
C     sNy :: Number of Y points in tile.
C     OLx :: Tile overlap extent in X.
C     OLy :: Tile overlap extent in Y.
C     nSx :: Number of tiles per process in X.
C     nSy :: Number of tiles per process in Y.
C     nPx :: Number of processes to use in X.
C     nPy :: Number of processes to use in Y.
C     Nx  :: Number of points in X for the full domain.
C     Ny  :: Number of points in Y for the full domain.
C     Nr  :: Number of points in vertical direction.
CEOP
      INTEGER sNx
      INTEGER sNy
      INTEGER OLx
      INTEGER OLy
      INTEGER nSx
      INTEGER nSy
      INTEGER nPx
      INTEGER nPy
      INTEGER Nx
      INTEGER Ny
      INTEGER Nr
      PARAMETER (
     &           sNx =  64,
     &           sNy =  32,
     &           OLx =   4,
     &           OLy =   4,
     &           nSx =   2,
     &           nSy =   2,
     &           nPx =   1,
     &           nPy =   1,
     &           Nx  = sNx*nSx*nPx,
     &           Ny  = sNy*nSy*nPy,
     &           Nr  =  15)

C     MAX_OLX :: Set to the maximum overlap region size of any array
C     MAX_OLY    that will be exchanged. Controls the sizing of exch
C                routine buffers.
      INTEGER MAX_OLX
      INTEGER MAX_OLY
      PARAMETER ( MAX_OLX = OLx,
     &            MAX_OLY = OLy )

C     for pkg/ctrl:
      INTEGER     nobcs
      PARAMETER ( nobcs = 4 )

Several lines are customized in this file for the current experiment:

  • Line 45,

    sNx=64,
    

    this line sets the lateral domain extent in grid points for the axis aligned with the \(x\)-coordinate.

  • Line 46,

    sNy=64,
    

    this line sets the lateral domain extent in grid points for the axis aligned with the \(y\)-coordinate.

  • Line 55,

    Nr=15,
    

    this line sets the vertical domain extent in grid points.

4.12.4. Running the Experiment

In your run directory, as per usual, a copy of all files from the input directory (here, input_tutorial/) are required. In addition, you will also need to copy .data and .meta files from directory input/input_off.

4.12.5. A more complicated example

The previous example demonstrated simple advection of a passive tracer using the offline form of the MITgcm. Now we present a more complicated example in which the model is used to explore contamination of the global ocean through surface exposure to CFCs during the last century. In invoking packages pkg/gchem, pkg/gmredi and pkg/cfc it provides a starting point and template for more complicated offline modeling, involving as it does surface forcing through wind and ice fields, more sophisticated mixing, and a time-varying forcing function.

The run configuration for this experiment resides under the directory verification/tutorial_cfc_offline/input/ (the code configuration is the same as in the first example, so the same model executable can be used, i.e., no need to re-compile). The files

contain all the parameter settings required.

4.12.5.1. File input/data

Listing 4.32 verification/tutorial_cfc_offline/input/data
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
# ====================
# | Model parameters |
# ====================
#
# Continuous equation parameters
 &PARM01
 tRef=15*20.,
 sRef=15*35.,
 viscA4=0.,
 viscAh=5.E5,
 diffKhT=0.E3,
 diffKhS=0.E3,
 viscAr=1.E-3,
 diffKrT=5.E-5,
 diffKrS=5.E-5,
 gravity=9.81,
 rhoConst=1035.,
 rigidLid=.FALSE.,
 implicitFreeSurface=.TRUE.,
 eosType='POLY3',
 implicitDiffusion=.TRUE.,
 implicitViscosity=.TRUE.,
 ivdc_kappa=100.,
 multiDimAdvection   = .FALSE.
#allowFreezing=.TRUE.,
 useCDscheme=.FALSE.,
 &

# Elliptic solver parameters
 &PARM02
 cg2dMaxIters=1000,
 cg2dTargetResidual=1.E-13,
 &

# Time stepping parameters
 &PARM03
 nIter0  = 4269600,
 nTimeSteps = 4,
# 100 years starting from a spinup of 5900 years:
#startTime = 1.835136E+11,
#endTime   = 1.866240E+11,
 deltaTmom = 900.0,
#tauCD =     321428.,
 deltaTtracer= 43200.0,
 deltaTClock = 43200.0,
 abEps = 0.1,
#cAdjFreq = -1,
 pChkptFreq=3110400000.,
#chkptFreq= 3110400000.,
 dumpFreq=  31104000.,
 taveFreq=  31104000.,
#monitorFreq= 4853865600.,
 monitorFreq= 2592000.,
#tauThetaClimRelax = 5184000.0,
#tauSaltClimRelax =  7776000.0,
 periodicExternalForcing=.TRUE.,
 externForcingPeriod=2592000.,
 externForcingCycle=31104000.,
 &

# Gridding parameters
 &PARM04
 usingSphericalPolarGrid=.TRUE.,
 delR=  50.,  70., 100., 140., 190.,
       240., 290., 340., 390., 440.,
       490., 540., 590., 640., 690.,
 ygOrigin=-90.,
 dxSpacing=2.8125,
 dySpacing=2.8125,
 &

# Input datasets
 &PARM05
 bathyFile=      'depth_g77.bin',
#hydrogThetaFile='lev_clim_temp.bin',
#hydrogSaltFile= 'lev_clim_salt.bin',
#zonalWindFile=  'tren_taux.bin',
#meridWindFile=  'tren_tauy.bin',
#thetaClimFile=  'lev_monthly_temp.bin',
#saltClimFile=   'lev_monthly_salt.bin',
#surfQnetFile=   'shi_qnet.bin',
#EmPmRFile=      'shi_empmr_year.bin',
 the_run_name=   'Testing CFC and OFFLINE code',
 &

A single line must be added (under PARM01, line 21) from the previous example

&PARM01
implicitDiffusion=.TRUE.,
&

When pkg/gmredi is used, the flag implicitDiffusion must be assigned the value .TRUE.

In this example the starting timestep nIter0 is set to 4269600 requiring model access to pickup files with the suffix 0004269600. The model will run for 4 timesteps (nTimeSteps = 4). In this case the frequencies with which permanent and rolling checkpoints (pChkptFreq and chkptFreq) have been set is sufficiently long to ensure that only one from the last timestep will be written. This is also true of the values that have been assigned to the frequency with which dumps are written (dumpFreq) and time averaging (taveFreq) is performed. However, since the model always dumps the state of the model when it stops without error, a dump will be written with suffix 0004269604 upon completion.

4.12.5.2. File input/data.off

Listing 4.33 verification/tutorial_cfc_offline/input/data.off
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
 &OFFLINE_PARM01
  UvelFile= '../input/input_off/uVeltave',
  VvelFile= '../input/input_off/vVeltave',
  WvelFile= '../input/input_off/wVeltave',
  GMwxFile= '../input/input_off/GM_Kwx-T',
  GMwyFile= '../input/input_off/GM_Kwy-T',
  GMwzFile= '../input/input_off/GM_Kwz-T',
  ConvFile= '../input/input_off/Convtave',
  SaltFile= '../input/input_off/Stave',
  ThetFile= '../input/input_off/Ttave',
# SFluxFile='../input/input_off/sFluxtave',
# HFluxFile=' ',
 &

 &OFFLINE_PARM02
  offlineIter0=4248000,
  deltaToffline=43200.,
  offlineForcingPeriod=2592000.,
  offlineForcingCycle=31104000.,
 &

This file specifies the prefixes and locations of additional input files required to run the offline model. Note that directory input/input_off contains only as many offline files as are required to successfully run for 4 timesteps. Where the GMREDI scheme was used in the forward run, as here, package GMREDI must again be invoked when running offline. In this example, tracer is specified as having been introduced with a non-zero starttime, at timestep 4248000.

4.12.5.3. File input/data.pkg

Listing 4.34 verification/tutorial_cfc_offline/input/data.pkg
1
2
3
4
5
6
7
8
9
# Packages
 &PACKAGES
 useGMRedi=.TRUE.,
 usePTRACERS=.TRUE.,
 useGCHEM=.TRUE.,
 useOffLine=.TRUE.,
#useMNC=.TRUE.,
 &
  

This file specifies which MITgcm packages are to be used. It now invokes additional packages pkg/gmredi and pkg/gchem.

4.12.5.4. File input/data.ptracers

Listing 4.35 verification/tutorial_cfc_offline/input/data.ptracers
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
 &PTRACERS_PARM01
 PTRACERS_numInUse=2,
 PTRACERS_Iter0= 4248000,
# for verification:
 PTRACERS_monitorFreq=43200.,
#- for each tracers:
# tracer 1 - dic
 PTRACERS_names(1)='cfc11',
 PTRACERS_long_names(1)='CFC11',
 PTRACERS_units(1)='mol/m^3',
 PTRACERS_advScheme(1)=77,
 PTRACERS_diffKh(1)=0.E3,
 PTRACERS_diffKr(1)=5.E-5,
 PTRACERS_useGMRedi(1)=.TRUE. ,
 PTRACERS_useKPP(1)=.FALSE. ,
 PTRACERS_initialFile(1)=' ',
# tracer 2 - alk
 PTRACERS_names(2)='cfc12',
 PTRACERS_units(2)='mol/m^3',
 PTRACERS_advScheme(2)=77,
 PTRACERS_diffKh(2)=0.E3,
 PTRACERS_diffKr(2)=5.E-5,
 PTRACERS_useGMRedi(2)=.TRUE. ,
 PTRACERS_useKPP(2)=.FALSE. ,
 PTRACERS_initialFile(2)=' ',
 &

This file specifies parameters associated with the CFC11 and CFC12 tracer fields advected in this example.

  • Line 3,

    PTRACERS_Iter0= 4248000,
    

In this example the tracers were introduced at iteration 4248000.

  • Lines 12 and 21,

    PTRACERS_diffKh(n)=0.E3,
    

Since package GMREDI is being used, regular horizontal diffusion is set to zero.

  • Lines 14-15 and 23-24,

    PTRACERS_useGMRedi(n)=.TRUE. ,
    PTRACERS_useKPP(n)=.FALSE. ,
    

Setting flag PTRACERS_useGMRedi(n) to .TRUE. identifies that /pkg/gmredi is to be used. Setting flag PTRACERS_useKPP(n) to .FALSE. explicitly turns off KPP mixing.

  • Lines 16 and 25,

    PTRACERS_initialFile(n)=' ',
    

Since this is a ‘pickup’ run the initial tracer files PTRACERS_initialFile are not needed. The model will obtain the tracer state from pickup_ptracers.0004269600.data

4.12.5.5. File input/data.gchem

Listing 4.36 verification/tutorial_cfc_offline/input/data.gchem
1
2
3
4
 &GCHEM_PARM01
  useCFC=.TRUE.,
  nsubtime=1,
 &

This file specifies the parameters used in /pkg/gchem.

4.12.5.6. File input/data.gmredi

Listing 4.37 verification/tutorial_cfc_offline/input/data.gmredi
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# from MOM
# GM_background_K: 	isopycnal diffusion coefficien
# GM_maxSlope:		max slope of isopycnals
# GM_Scrit:		transition for scaling diffusion coefficient
# GM_Sd:		half width scaling for diffusion coefficient
# real background diff:	horizontal diffusion

# ifdef GM_VISBECK_VARIABLE_K, include following in GM_PARM01
# GM_Visbeck_alpha   = 0.,
# GM_Visbeck_length  = 2.e+5,
# GM_Visbeck_depth   = 1.e+3,
# GM_Visbeck_maxval_K= 2.5e+3,

 &GM_PARM01 
  GM_background_K    = 1.e+3,
  GM_taper_scheme    = 'gkw91',
  GM_maxSlope        = 1.e-2,
  GM_Kmin_horiz      = 100.,
  GM_Scrit           = 4.e-3,
  GM_Sd              = 1.e-3,
 &


This file specifies parameters required for /pkg/gmredi.

4.12.5.7. File input/cfc1112.atm

This is a ASCII data file containing the CFC source functions over the northern and southern hemispheres annually from 1931 through 1998.

4.12.5.8. Running the Experiment

The model is run as before.