J. Input__Parameters__for__the__Flux__Coupler_________________________ The coupler reads an input namelist, called inparm, from stdin at runtime. The Flux Coupler uses the namelist input parameter processing capability which is a FORTRAN 90 standard, but is also available as an extension to most FORTRAN 77 compilers. This section contains a list and description of available namelist input parameters. I. List of Input Parameters Flux Coupler input variables follow a naming convention in which the first few letters of the variable identify a basic functionality group: o rest__xxx selects options with respect to model initial conditions and the acquisition and creation of restart files, o case__xxx selects options with respect to specifying a case name and description, o stop__xxx selects options with respect to when a simulation will stop, o hist__xxx selects options with respect to when and what type of history data is created, o mss__xxx selects options with respect to data file storage on NCAR's Mass Storage System, o diag__xxx selects options with respect to run-time diagnostics of the physical simulation, o flux__xxx selects options with respect to flux calculation specifics, o info__xxx selects options with respect to monitoring the computational performance of the model. The following list of the Flux Coupler Input Namelist includes: o the default value of the variable. While reasonable default values are selected for all variables, users might want to alter these values according to their application. o if and when the variable is required input. Note that very few input parameters are required. In a few cases, changing one default value will cause another input parameter to become required. o a brief description of the purpose and effect of the parameter. o a reference to an example namelist which uses the variable (examples follow this list). case__name Default: "null" Required: no, but highly recommended Description: This is the case name text string, up to 8 characters, which is included in output files to help identify the model run. case__desc Default: "null" Required: no, but highly recommended Description: This is a short text string, up to 80 characters, which is included in output files to help identify the model run. See Example: 1, 2, 3, 4 J-1 rest__type Default: "initial" Required: no (but default is of limited usefulness) Description: This selects the run type. Valid choices are: "initial", "continue","branch", "regenerate." Selecting "branch" or "regenerate" makes rest__bfile a required input. See Example: 1, 2, 3, 4 rest__dir Default: "null" Required: yes Description: This is a mass store directory name. Restart and history files go into this directory. For continuation or regeneration runs, the initial condition restart file must also be in this directory. See Example: 1, 2, 3, 4 rest__bfile Default: "null" Required: required if rest__type = "branch" or "regeneration", ignored otherwise Description: This is the mass store file name of the branch file (a.k.a. the IC data file). See Example: 3, 4 rest__pfile Default: "null" Required: yes Description: This is the complete path and name of the restart pointer file. This must include an existing, NFS mounted directory. See Example: 1, 2, 3, 4 rest__date Default: 00010101 (year 1, month 1, day 1) Required: no (optional for initial and branch runs, ignored otherwise) Description: This is the restart date (encoded: yyyymmdd). o On initial runs, rest__date is the initial date of the simulation. o On branch runs, if rest__date > 0, it will over-ride the date contained in the rest__bfile IC restart file. Otherwise the date from the rest__bfile data file is used. o On continuation or regeneration runs rest__date is not used. See Example: 1 rest__freq Default: "monthly" Required: no Description: This is the restart frequency, one of "monthly", "yearly", or "ndays" which selects how often restart data files are created. See Example: 3 J-2 rest__nday Default: 10 Required: no (only used if rest__freq = "ndays") Description: If rest__freq = "ndays", restart files will be created every n days. More specifically, whenever mod(d-p;n) = 0, where d = the simulation day (1 Jan, year 1 <=> d = 365) p = an offset such that mod(d-p;n) = 0 on the date specified by rest__odate n = rest__nday See Example: 3 rest__odate Default: 0 Required: no Description: Selects restart file offset calendar date, used in conjunction with rest__nday when rest__freq = "ndays." If rest__odate > 0, it is a valid calendar date (encoded: yyyymmdd). Restart data is created every n days relative to (and including) either o the initial date of the run (if rest__odate < 1) o the date hist__odate (if rest__odate > 0) stop__option Default: "newyear" Required: no Description: Selects when to stop the simulation. o "newdecade" => stop at the start of the next decade o "newyear" => stop on the next January 1st o "newmonth" => stop on the 1st of the next month o "ndays" => stop after advancing n days, where n=stop__nday o "date" => stop when stop__date is reached. This makes stop__date a required input. See Example: 1, 2, 3, 4 stop__nday Default: 1 Required: no (only used when stop__option = "ndays") Description: If stop__option = "ndays," stop after advancing stop__nday days. See Example: 3 stop__date Default: 00010101 (year 1, month 1, day 1) Required: no (required if stop__option = "date," ignored otherwise) Description: If stop__option = "date," stop on this date. See Example: 4 J-3 hist__freq Default: "monthly" Required: no Description: One of "monthly," "biweekly," "weekly," or "ndays," which selects how often history data files are created. o "monthly" => data is created on the 1st of each month o "biweekly" => data is created on the 1st and 15th of each month o "weekly" => data is created on the 1st, 8th, 15th, and 22nd of each month o "ndays" => history data is created every n days relative to a history offset date specified by hist__odate. Note: a history file is never created on a simulation stopping date, but a history file can be created on a simulation starting date. See Example: 2 hist__nday Default: 10 Required: no (only used if hist__freq = "ndays") Description: If hist__freq = "ndays" > 0, restart files will be created every n days. More specifically, whenever mod(d-p;n) = 0, where d = the simulation day (1 Jan, year 1 <=> d = 365 ) n = hist__nday p = an offset such that mod(d-p;n) = 0 on the date specified by rest__odate See Example: 2 hist__odate Default: 0 Required: no (only used if hist__freq = "ndays") Description: Selects history file offset calendar date, used in conjunction with hist__nday when hist__freq = "ndays". If hist__odate > 1, it is a valid calendar date (encoded: yyyymmdd). See hist__freq for usage. History data is created every n days relative to (and including) either o the initial date of the run (if hist__odate < 1) o the 1st of the month (if hist__odate = 1) o the date hist__odate (if hist__odate > 1) See Example: 2 hist__tavg Default: 0 (false) Required: no Description: If hist__tavg is true (non-zero), the Coupler will create monthly average history data files and component models will be requested to do the same. J-4 mss__opts Default: "nowait, nomail" Required: no Description: Options used when data files are sent to NCAR's Mass Storage System (MSS) via a mswrite library call. This default request uses asynchronous data file transfer. See the mswrite man pages at NCAR for more details. See Example: 4 mss__pass Default: " " Required: no Description: Mswrite password string for files sent to the MSS. See the mswrite man pages at NCAR for more details. The format is "[read-password][,write-password]." See Example: 4 mss__rtpd Default: 365 Required: no Description: Retention period for data files sent to the MSS. See the mswrite man pages at NCAR for more details. See Example: 4 diag__glob Default: 0 (false) Required: no Description: If true (non-zero), print global diagnostic information. See Example: 2 flx__albd Default: 0 (false) Required: no Description: If true (non-zero), the atm is sent albedo fields which are zenith angle independent. The default is that the atm is sent albedo fields which are zenith angle dependent. flx__epbal Default: 0 (false) Required: no Description: If true (non-zero), adjust the precipitation field over the non-land- locked ocean and ice by a factor. The default factor is such that E + P = 0 over that ocean and ice surface area, but the ocean model may provide an alternate factor during execution. J-5 init__tavg Default: 1 (true) for initial runs, 0 (false) otherwise Required: no Description: If true (non-zero), on startup, the atm, ice, and lnd models are advanced one ocn synchronization interval while the ocn does not advance. This allows the formation of initial time-averaged fluxes for the ocn component. After this initial procedure, all models will begin to advance in unison. info__dbug Default: 1 Required: no Description: Debugging information level: 0, 1, 2, or 3. o 0 => do not write any extra debugging information to stdout o 1 => write a small amount of extra debugging information to stdout o 2 => write a medium amount of extra debugging information to stdout o 3 => write a large amount of extra debugging information to stdout See Example: 2 info__time Default: 0 (false) Required: no (normally not recommended) Description: If true (non-zero), write message passing timing info to stdout. II. Example Input Namelists Example 1: an initial run $inparmcase_name = ``test01" case_descrest_=ty``testingpean initial= run``"initial" rest_dir = ``/DOE/csm/test01/cpl/ " rest_pfileres=t_``$HOME/cpl.test01.rpointer"date = 19800101 stop_optionst=op``date"_date = 19800701 / Here the inputs specify an initial run starting on 1 Jan 1980 and stopping on 1 Jul 1980. Restart files will be sent to the MSS directory "/DOE/csm/test01/cpl/...". The restart pointer file, rest__pfile, will be in the user's home directory. The restart pointer file contains the name of the most recently created restart file. History data files and restart files will be created according to the default settings (on the 1st of each month). The Flux Coupler will be communicating with atmosphere, ocean, land, and ice models that are executing simultaneously. J-6 Example 2: a continuation run $inparmcase_name = ``test01" case_descrest_=ty``testingpea continuation= run``"continue" rest_dir = ``/DOE/csm/test01/cpl/ " rest_pfilesto=p_``$HOME/cpl.test01.rpointer"option = `newyear" hist_freqhist_=nd``ndays"ay = 10 hist_odateinf=o_1dbug = 0 diag_glob = 1 / Here the inputs specify a continuation run. Assuming this run continues from where example 1 finished, this run will start on 1 Jul 1980 and stop on 1 Jan 1981. Exactly where this run continues from is specified by the restart pointer file, which contains the name of the restart file that will be used. New restart files will be sent to the MSS directory specified by rest__dir. Restart files will be created according to the default settings (on the 1st of each month). History data will be created every 10 days relative to the 1st day of each month, i.e. on the 1st, 11th, 21st, and 31st of every month. Setting info__dbug = 0 will minimize the amount of debugging information written to stdout. Setting diag__glob = 1 will signal the coupler to calculate some global diagnostic information and write it to stdout. Example 3: a branch run $inparmcase_name = ``test.02" case_descrest_=ty``testingpe a branch= run``"branch" rest_dir = ``/DOE/csm/test.02/cpl/ " rest_pfile = ``$HOME/cpl.test.02.rpointer" rest_bfileres=t_``/DOE/csm/test01/cpl/r1981-01-01fr"eq = ``ndays" rest_ndaystop_=op10tion = ``ndays" stop_nday = 31 / Here the input parameter rest__type specifies a branch run. The branch file (/DOE/.../r1981-01-01) must be specified. This initial condition file was created by a previous simulation. Since the simulation's starting date (rest__date) is unspecified in the namelist, the date from the branch file will be used (1 Jan 1981). The simulation will stop after advancing 31 days (1 Feb 1981). Restart files will be created every 10 days relative to the start of the run. Example 4: a regeneration run $inparmcase_name = ``test01" case_descrest_=ty``regeneratepesome =data``"regeneration" rest_dir = ``/DOE/csm/test01/cpl/ " rest_pfile = ``$HOME/cpl.test01.rpointer" rest_bfilesto=p_``/DOE/csm/test01/cpl/r1980-07-01op"tion = ``date" stop_datemss_r=tp19800801d = 30 mss_passmss_op=ts``,rosebud"= ``nowait" / J-7 Here the inputs specify a regeneration run. The initial condition file, rest__bfile, must be specified. The simulation's starting date is taken from this branch file (1 Jul 1980). The stop options will cause the simulation to stop on a particular date, 1 Aug 1981. The mass store file retention period and write password have been selected here. J-8