Difference between revisions of "Sandbox"

From Geos-chem
Jump to: navigation, search
(Bug with Intel Fortran Compiler ("IFORT") 11)
 
(198 intermediate revisions by 3 users not shown)
Line 1: Line 1:
== feel free to experiment here ==
+
== Instructions for adding tracers to GEOS-Chem ==
  
Dear GEOS-Chem Users,
+
'''''By [mailto:mpayer@seas.harvard.edu Melissa Payer]'''''
  
A belated Happy St. Patrick's Day to one and all!  Here is the March 2009 edition of the GEOS-Chem newsletter.   
+
These instructions describe how to add advected tracers to GEOS-Chem.  Advected tracers are carried in the <tt>STT</tt> array (which is declared in <tt>GeosCore/tracer_mod.F</tt>), and are transported by the winds.   
  
''Bob Yantosca, Philippe Le Sager, and Claire Carouge''<br>
+
NOTE: Some advected tracers are also chemical species, which comprise GEOS-Chem's NOx-Ox-HC-aerosol chemistry mechanism.
''geos-chem-support@as.harvard.edu''
+
  
== Requests for help ==
+
#<p>Add tracers to input.geos under Tracer Menu</p>
Just a reminder: all GEOS-Chem questions should be sent to the email address '''''geos-chem-support@as.harvard.edu'''''.  This will ensure that Bob, Philippe, and Claire will all receive your email question at the same time. This will allow us to serve you better. If one of us is unavailable then the others will be able to respond to you.
+
##<p>Increase “Number of tracers” accordingly</p>
 +
##<p>Add tracer number, name, molecular weight, and emitted species to end of tracer list</p>
 +
#<p>Add tracer(s) to restart file – see separate instructions</p>
 +
#<p>Modify the following source code routines:</p>
 +
##<p><tt>Headers/CMN_SIZE_mod.F</tt></p>
 +
###<p>Increase <tt>NNPAR</tt> by number of tracers being added</p>
 +
###<p>If the species have anthropogenic emissions, increase NEMPARA accordingly</p>
 +
###<p>If the species have biogenic emissions, increase NEMPARB accordingly</p>
 +
###<p>If the species have biomass burning emissions, increase NBIOMAX accordingly</p>
 +
##<p><tt>GeosCore/tracerid_mod.F</tt></p>
 +
###<p>Increase <tt>NNNTRID</tt> by the number of tracers being added NOTE: <tt>NNNTRID</tt> must be equal to <tt>NNPAR</tt> in <tt>CMN_SIZE_mod.F</tt></p>
 +
###<p>Define tracer IDs as needed:</p>
 +
####<p>IDxxxx – ID for SMVGEAR species</p>
 +
####<p>IDTxxxx – GEOS-Chem tracer ID</p>
 +
####<p>IDExxxx – GEOS-Chem emission ID</p>
 +
####<p>IDBFxxxx – GEOS-Chem biofuel ID</p>
 +
####<p>IDBxxxx – GEOS-Chem biomass ID</p>
 +
###<p>In subroutine <tt>TRACERID</tt>,</p>
 +
####<p>Under “Assign tracer, biomass, biofuel, and anthro emission ID’s,” add case for added tracers to initialize IDTxxxx, IDBFxxxx, IDBxxxx</p>
 +
####<p>Under “Initialize the IDExxx flags,” add IF statement for added tracer IDs and initialize IDExxxx</p>
 +
####<p>Under “Fill IDEMS with appropriate tracer ID #’s,” add IF statement for added tracers</p>
 +
####<p>Under “Print additional information,” add WRITE statements for added tracers</p>
 +
###<p>In subroutine SETTRACE (NOTE: Only do the following if species is included in SMVGEAR chemical mechanism<p>
 +
####<p>Add IF statement, to initialize IDxxxx</p>
 +
####<p>In subroutine INIT_TRACERID,</p>
 +
####<p>Zero all IDs added (IDxxxx, IDTxxxx, IDExxxx, etc.)</p>
 +
##<p>Other modules that may need to be updated include:</p>
 +
###<p>wetscav_mod.F</p>
 +
###<p>drydep_mod.F</p>
 +
###<p>emissions_mod.F</p>
 +
###<p>biomass_mod.F</p>
 +
###<p>biofuel_mod.F</p> etc.
  
== GEOS-Chem update ==
 
  
=== Emissions release v8-01-04 "beta" ===
 
[[GEOS-Chem versions under development|GEOS-Chem v8-01-04 "beta"]], our emissions release, is now released!  This version contains several updated emissions inventories.  For a full description, including information about the 1-year benchmark simulations that were performed, [[GEOS-Chem versions under development|please visit this link]].
 
  
=== Chemistry release v8-02-01 ===
+
Instructions for adding species to GEOS-Chem
[[GEOS-Chem versions under development|GEOS-Chem v8-02-01]], our chemistry release, is undergoing final testing at this point.  A few technical problems with the GLYX chemistry mechanism (cf. May Fu) are being ironed out. 
+
  
Also, we would like to acknowledge the Palmer group (U. Edinburgh), Dylan Millet (UMN), and Jingqiu Mao (Harvard), who have been reviewing the GEOS-Chem chemistry mechanism file to make sure that we have the most up-to-date list of reactions.  The updated mechanism will be included in v8-02-01.
+
Modify run directory files
  
GEOS-Chem v8-02-01 will be a "public" release. However, due to time concerns, it will probably not be ready before the GEOS-Chem meeting, but hopefully should be ready soon thereafter.
+
1) Add tracers to input.geos under Tracer Menu
 +
c) Increase “Number of tracers” accordingly
 +
d) Add tracer number, name, molecular weight, and emitted species to end of tracer list
  
=== GEOS-Chem email lists===
+
2) Add tracer(s) to restart file – see separate instructions
The following email lists:
+
  
*GEOS-Chem users
+
3) Modify globchem.dat to include additional species, kinetic reactions (including emissions and drydep), or photolysis reactions
*GEOS-Chem aerosols
+
NOTE: If you modify globchem.dat and plan to run GEOS-Chem using the KPP chemical solver, you will need to generate new gckpp*.F90 files. For more information see the following wiki pages:
*GEOS-Chem adjoint
+
http://wiki.seas.harvard.edu/geos-chem/index.php/KPP_solvers_FAQ#What_are_the_cons_of_using_KPP.3F
 +
http://wiki.seas.harvard.edu/geos-chem/index.php/Interfacing_GEOS-Chem_with_KPP#Generating_KPP_input_files_from_GEOS-Chem_globchem.dat
  
were recently switched over from the "geos.as.harvard.edu" server to the "seas.harvard.edu" server.  Therefore, to send email to the entire list, you must now use the following addresses:
+
4) If necessary, modify:
 
+
a) ratj.d – contains species names and branching ratios for FAST–JX photolysis species
*geos-chem@seas.harvard.edu
+
For more information: http://acmg.seas.harvard.edu/geos/doc/man/chapter_5.html#5.4.1
*geos-chem-aerosols@seas.harvard.edu
+
b) jv_spec.dat – contains cross-sections and quantum yields for FAST–JX photolysis species
*geos-chem-adjoint@seas.harvard.edu
+
For more information: http://acmg.seas.harvard.edu/geos/doc/man/chapter_5.html#5.4.3
 
+
Also note, during the transition, some email addresses may have not been copied over correctly.  If you feel that you have been deleted from the list, you can resubscribe via [https://lists.seas.harvard.edu/mailman/listinfo this web interface].
+
 
+
 
+
 
+
== ESMF update ==
+
Development of the GEOS-Chem column chemistry module is proceeding swiftly.  Several of the sub-processes in the chemistry (e.g. inputs, photolysis, carbon & sea salt aerosol chemistry, aerosol thermodynamical equilibrium) have been columnized. Much of the remaining code lends itself to columnization; however, in many cases legacy code must be removed or updated.
+
 
+
Bob and Philippe have provided GSFC with a list of input and output arguments that the GEOS-Chem column chemistry module will use.  This list is being refined with the assistance of Max Suarez and Arlindo da Silva from GSFC.  Once the list is finalized, GSFC will create an interface to the GEOS-5 GCM to which the GEOS-Chem column chemistry module will be attached
+
 
+
 
+
== GEOS-5 met field reprocessing ==
+
 
+
=== Status ===
+
As described in the [[GEOS-Chem Newsletter January 2009|January 2009 newsletter]], we are reprocessing the entire archive of GEOS-5 met field data.  As of February 17, 2009 the following fields have been completed:
+
 
+
* 2008: entire year
+
* 2004: July - December
+
* 2005: January - March
+
 
+
for each of the following geographic domains:
+
 
+
* China nested 0.5 x 0.667
+
* Global 2 x 2.5
+
* Global 4 x 5
+
 
+
The files have been TAR'd and Gzip'd for your convienience (as this dramatically reduces the size of the data).  In each directory there are files <tt>01.tar.gz</tt>, <tt>02.tar.gz</tt> .. <tt>12.tar.gz</tt>, each of which contains a single month of met field data.  GEOS-Chem users outside Harvard may obtain these data files via anonymous FTP:
+
 
+
  ftp ftp.as.harvard.edu
+
  cd pub/geos-chem/data/GEOS_0.5x0.666_CH.d/GEOS_5/2008
+
  mget *.tar.gz
+
  cd pub/geos-chem/data/GEOS_2x2.5.d/GEOS_5/2008
+
  mget *.tar.gz
+
  cd pub/geos-chem/data/GEOS_4x5.d/GEOS_5/2008
+
  mget *.tar.gz
+
  cd pub/geos-chem/data/GEOS_0.5x0.666_CH.d/GEOS_5/2004
+
  mget *.tar.gz
+
  cd pub/geos-chem/data/GEOS_2x2.5.d/GEOS_5/2004
+
  mget *.tar.gz
+
  cd pub/geos-chem/data/GEOS_4x5.d/GEOS_5/2004
+
  mget *.tar.gz
+
 
+
However, to simplify the FTP process you might want to use a 3rd party FTP software program with a GUI interface, such as [http://fireftp.mozdev.org/ Mozilla FireFTP].
+
 
+
At present, the throughput rate is approximately 28 days of model data per day.  Therefore it will still be a couple of months before the entire GEOS-5 dataset has been reprocessed.
+
 
+
=== Required code modifications  ===
+
 
+
== GEOS-Chem Meeting: April 7-10, 2009 ==
+
 
+
The 4th Annual GEOS-Chem Scientific & Users' Meeting is rapidly approaching.  Daniel has provided a first draft of the meeting agenda [http://www.as.harvard.edu/ctm/geos/meetings/2009/agenda_gc4_v3_031109.pdf (click here for PDF format)]. Please direct your questions about the agenda to Daniel Jacob ('''''djacob@fas.harvard.edu''''').
+
 
+
Registration for the meeting is now closed.
+
 
+
--[[User:Bmy|Bob Y.]] 11:00, 18 March 2009 (EDT)
+

Latest revision as of 21:25, 10 May 2023

Instructions for adding tracers to GEOS-Chem

By Melissa Payer

These instructions describe how to add advected tracers to GEOS-Chem. Advected tracers are carried in the STT array (which is declared in GeosCore/tracer_mod.F), and are transported by the winds.

NOTE: Some advected tracers are also chemical species, which comprise GEOS-Chem's NOx-Ox-HC-aerosol chemistry mechanism.

  1. Add tracers to input.geos under Tracer Menu

    1. Increase “Number of tracers” accordingly

    2. Add tracer number, name, molecular weight, and emitted species to end of tracer list

  2. Add tracer(s) to restart file – see separate instructions

  3. Modify the following source code routines:

    1. Headers/CMN_SIZE_mod.F

      1. Increase NNPAR by number of tracers being added

      2. If the species have anthropogenic emissions, increase NEMPARA accordingly

      3. If the species have biogenic emissions, increase NEMPARB accordingly

      4. If the species have biomass burning emissions, increase NBIOMAX accordingly

    2. GeosCore/tracerid_mod.F

      1. Increase NNNTRID by the number of tracers being added NOTE: NNNTRID must be equal to NNPAR in CMN_SIZE_mod.F

      2. Define tracer IDs as needed:

        1. IDxxxx – ID for SMVGEAR species

        2. IDTxxxx – GEOS-Chem tracer ID

        3. IDExxxx – GEOS-Chem emission ID

        4. IDBFxxxx – GEOS-Chem biofuel ID

        5. IDBxxxx – GEOS-Chem biomass ID

      3. In subroutine TRACERID,

        1. Under “Assign tracer, biomass, biofuel, and anthro emission ID’s,” add case for added tracers to initialize IDTxxxx, IDBFxxxx, IDBxxxx

        2. Under “Initialize the IDExxx flags,” add IF statement for added tracer IDs and initialize IDExxxx

        3. Under “Fill IDEMS with appropriate tracer ID #’s,” add IF statement for added tracers

        4. Under “Print additional information,” add WRITE statements for added tracers

      4. In subroutine SETTRACE (NOTE: Only do the following if species is included in SMVGEAR chemical mechanism<p>

        1. <p>Add IF statement, to initialize IDxxxx

        2. In subroutine INIT_TRACERID,

        3. Zero all IDs added (IDxxxx, IDTxxxx, IDExxxx, etc.)

    3. Other modules that may need to be updated include:

      1. wetscav_mod.F

      2. drydep_mod.F

      3. emissions_mod.F

      4. biomass_mod.F

      5. biofuel_mod.F

        etc.


Instructions for adding species to GEOS-Chem

Modify run directory files

1) Add tracers to input.geos under Tracer Menu c) Increase “Number of tracers” accordingly d) Add tracer number, name, molecular weight, and emitted species to end of tracer list

2) Add tracer(s) to restart file – see separate instructions

3) Modify globchem.dat to include additional species, kinetic reactions (including emissions and drydep), or photolysis reactions NOTE: If you modify globchem.dat and plan to run GEOS-Chem using the KPP chemical solver, you will need to generate new gckpp*.F90 files. For more information see the following wiki pages: http://wiki.seas.harvard.edu/geos-chem/index.php/KPP_solvers_FAQ#What_are_the_cons_of_using_KPP.3F http://wiki.seas.harvard.edu/geos-chem/index.php/Interfacing_GEOS-Chem_with_KPP#Generating_KPP_input_files_from_GEOS-Chem_globchem.dat

4) If necessary, modify: a) ratj.d – contains species names and branching ratios for FAST–JX photolysis species For more information: http://acmg.seas.harvard.edu/geos/doc/man/chapter_5.html#5.4.1 b) jv_spec.dat – contains cross-sections and quantum yields for FAST–JX photolysis species For more information: http://acmg.seas.harvard.edu/geos/doc/man/chapter_5.html#5.4.3