MERRA-2 implementation details: Difference between revisions
Line 98: | Line 98: | ||
=== GeosCore directory === | === GeosCore directory === | ||
The following modifications for | The following modifications for MERRA2 were made in the <tt>GeosCore/</tt> directory: | ||
{| border=1 cellspacing=0 cellpadding=5 | {| border=1 cellspacing=0 cellpadding=5 | ||
Line 218: | Line 218: | ||
In routine INIT_SULFATE: | In routine INIT_SULFATE: | ||
*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> | ||
In routine SRCSFC30 (TOMAS-only) | In routine SRCSFC30 (TOMAS-only): | ||
*Added a placeholder value for TSCALE for the 0.5° x 0.625° grids | *Added a placeholder value for TSCALE for the 0.5° x 0.625° grids | ||
Line 240: | Line 240: | ||
|-valign="top" | |-valign="top" | ||
|wetscav_mod.F | |wetscav_mod.F | ||
|In | |In routine DO_WETDEP: | ||
*Changed code to: <tt>#if defined( MERRA ) || defined( GEOS_FP )</tt> | *Changed code to: <tt>#if defined( MERRA ) || defined( GEOS_FP ) || defined( MERRA2 )</tt> | ||
In routine DO_WASHOUT_ONLY:: | |||
*Changed code to: <tt>#if defined( MERRA ) || defined( GEOS_FP ) || defined( MERRA2 )</tt> | |||
In routine MAKE_QQ: | In routine MAKE_QQ: | ||
* | *Changed code to: <tt>#defined( GEOS_FP ) || defined( MERRA2 )</tt> | ||
In routine RAINOUT: | In routine RAINOUT: | ||
*Changed code to: <tt>#if defined( GEOS_5 ) || defined( MERRA ) || defined( GEOS_FP )</tt> | *Changed code to: <tt>#if defined( GEOS_5 ) || defined( MERRA ) || defined( GEOS_FP ) || defined( MERRA2 )</tt> | ||
|} | |} | ||
--[[User:Bmy|Bob Y.]] ([[User talk:Bmy|talk]]) | --[[User:Bmy|Bob Y.]] ([[User talk:Bmy|talk]]) 18:17, 12 August 2015 (UTC) |
Revision as of 18:17, 12 August 2015
File:Page is under construction.jpg
Required coding changes in GEOS-Chem
As noted in the section above, the similarities between MERRA and GEOS-FP (especially of the vertical grids) means that in most cases we can just treat MERRA in the same way as for GEOS-5. 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 )
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 MERRA:
Top-level directory
File | Modifications made |
---|---|
Makefile_header.mk |
|
--Bob Y. (talk) 21:25, 11 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) 21:26, 11 August 2015 (UTC)
GeosUtil directory
The following modifications for GEOS-FP 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) 21:40, 11 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:
|