MERRA-2 implementation details: Difference between revisions
Line 281: | Line 281: | ||
=== HEMCO/Extensions directory === | === HEMCO/Extensions directory === | ||
The following modifications for MERRA2 were made in the <tt>HEMCO/Extensions/tt> directory: | The following modifications for MERRA2 were made in the <tt>HEMCO/Extensions</tt> directory: | ||
{| border=1 cellspacing=0 cellpadding=5 | {| border=1 cellspacing=0 cellpadding=5 | ||
Line 289: | Line 289: | ||
|-valign="top" | |-valign="top" | ||
| | |hcox_ch4wetland_mod.F90 | ||
| | |In routine WETLAND_EMIS: | ||
* | *Changed code to: <tt>#if defined( GEOS_5 ) || defined( MERRA ) || defined( GEOS_FP ) || defined( MERRA2 )</tt> | ||
* | |||
|-valign="top" | |||
|hcox_dustdead_mod.F | |||
|In routine HCOX_DUSTDEAD_GETTUN: | |||
*Add placeholder values of <tt>FLX_MSS_FDG_FCT = -999</tt> for the MERRA2 2° x 2.5° and 4° x 5° grids. | |||
**<span style="color:red">We will add the correct values once we can run simulations with at least a year of met data.</span> | |||
|-valign="top" | |||
|hcox_lightnox_mod.F | |||
|In routine GET_OTD_LIS_SCALE: | |||
*Add placeholder values of <tt>ANN_AVG_FLASHRATE</tt> for the MERRA2 0.5° x 0.625° grids. | |||
*Add placeholder values of <tt>BETA</tt> for the MERRA2 2° x 2.5° and 4° x 5° grids. | |||
|-valign="top" | |-valign="top" | ||
| | |hcox_megan_mod.F | ||
|In routine | |In routine GET_GAMMA_SM: | ||
*Changed code to: <tt>#if defined( GEOS_5 ) || defined( MERRA ) || defined( GEOS_FP ) || defined( MERRA2 )</tt> | *Changed code to: <tt>#if defined( GEOS_5 ) || defined( MERRA ) || defined( GEOS_FP ) || defined( MERRA2 )</tt> | ||
|-valign="top" | |||
|hcox_tomas_dustdead_mod.F | |||
|In routine HCOX_TOMAS_DUSTDEAD_GETTUN: | |||
*Add placeholder values of <tt>FLX_MSS_FDG_FCT = -999</tt> for the MERRA2 2° x 2.5° and 4° x 5° grids. | |||
**<span style="color:red">We will add the correct values once we can run simulations with at least a year of met data.</span> | |||
|} | |} | ||
--[[User:Bmy|Bob Y.]] ([[User talk:Bmy|talk]]) 18:53, 12 August 2015 (UTC) |
Revision as of 18:53, 12 August 2015
File:Page is under construction.jpg
Required coding changes in GEOS-Chem
As noted in the section above, the similarities between MERRA2 and GEOS-FP (especially of the vertical grids) means that in most cases we can just treat MERRA2 in the same way as for GEOS-FP. In many areas of the code, the coding changes are straightforward and simply involve an extension of C-preprocessor statements such as:
#if defined( GEOS_5 ) || defined( MERRA ) || defined( GEOS_FP )
to
#if defined( GEOS_5 ) || defined( MERRA ) || defined( GEOS_FP ) || defined( MERRA2 )
In other areas of GEOS-Chem the changes are more involved. Below we provide a description of the areas of GEOS-Chem that were modified for MERRA2:
Top-level directory
The following modifications for MERRA2 were made in the root GEOS-Chem directory:
File | Modifications made |
---|---|
Makefile_header.mk |
|
--Bob Y. (talk) 18:28, 12 August 2015 (UTC)
Headers directory
The following modifications for MERRA2 were made in the Headers/ directory:
File | Modifications made |
---|---|
CMN_SIZE_mod.F |
|
gigc_input_opt_mod.F90 |
|
gigc_state_met_mod.F90 | Multiple instances:
|
--Bob Y. (talk) 18:28, 12 August 2015 (UTC)
GeosUtil directory
The following modifications for MERRA2 were made in the GeosUtil/ directory:
File | Modifications made |
---|---|
bpch2_mod.F | In routine GET_MODELNAME:
In routine GET_NAME_EXT:
In routine GET_NAME_EXT_2D:
In routine GET_RES_EXT:
|
pressure_mod.F | In routines GET_PEDGE and GET_PEDGE_FULLGRID:
In routine INIT_PRESSURE:
|
time_mod.F | In routine GET_A1_TIME:
|
transfer_mod.F | In several routines:
|
--Bob Y. (talk) 18:29, 12 August 2015 (UTC)
GeosCore directory
The following modifications for MERRA2 were made in the GeosCore/ directory:
File | Modifications made |
---|---|
calcrate.F | Multiple instances:
|
carbon_mod.F | Multiple instances:
|
cldice_HbrHOBr_mod.F | Multiple instances:
|
convection_mod.F | In routine DO_CONVECTION:
|
dao_mod.F | In routine COPY_I6_FIELDS:
In routine INTERP:
|
depo_mercury_mod.F | In routine ADD_Hg2_SNOWPACK
|
dust_dead_mod.F | In routine DST_MBL:
|
fast_jx_mod.F | In routine FAST_JX:
|
gamap_mod.F | In routine INIT_TRACERINFO:
|
merra2_read_mod.F90 | *Added this module w/ routines to read GEOS-FP met data (in netCDF format) |
global_ch4_mod.F | In routines WETLAND_EMIS and READ_COPROD:
|
input_mod.F | In routine READ_SIMULATION_MENU:
In routine READ_CONVECTION_MENU:
In routine VALIDATE_DIRECTORIES:
|
land_mercury_mod.F |
In routines LAND_MERCURY_FLUX:
In routines SOILEMIS:
|
main.F |
|
mercury_mod.F | In routine CHEMMERCURY
|
ocean_mercury_mod.F | Multiple instances:
|
planeflight_mod.F | In routine PLANEFLIGHT
|
strat_chem_mod.F90 | Multiple instances:
In routine DO_SYNOZ:
|
sulfate_mod.F | In routine CHEM_SO2:
In routine INIT_SULFATE:
In routine SRCSFC30 (TOMAS-only):
|
tagged_ox_mod.F | In routine GET_REGIONAL_POX:
|
tpcore_bc_mod.F: | Multiple instances:
|
vdiff_mod.F90 | In routine VDIFFDR:
|
wetscav_mod.F | In routine DO_WETDEP:
In routine DO_WASHOUT_ONLY::
In routine MAKE_QQ:
In routine RAINOUT:
|
--Bob Y. (talk) 18:29, 12 August 2015 (UTC)
HEMCO/Core directory
The following modifications for MERRA2 were made in the HEMCO/Core directory:
File | Modifications made |
---|---|
hco_chartools_mod.F90 | At the top of the module:
|
hco_interp_mod.F90 | In routine MODLEV_INTERPOLATE:
|
--Bob Y. (talk) 18:28, 12 August 2015 (UTC)
HEMCO/Extensions directory
The following modifications for MERRA2 were made in the HEMCO/Extensions directory:
File | Modifications made |
---|---|
hcox_ch4wetland_mod.F90 | In routine WETLAND_EMIS:
|
hcox_dustdead_mod.F | In routine HCOX_DUSTDEAD_GETTUN:
|
hcox_lightnox_mod.F | In routine GET_OTD_LIS_SCALE:
|
hcox_megan_mod.F | In routine GET_GAMMA_SM:
|
hcox_tomas_dustdead_mod.F | In routine HCOX_TOMAS_DUSTDEAD_GETTUN:
|