Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Contents

Table of Contents
minLevel2
maxLevel3
outlinefalse
stylecircle
exclude.*(Contents|RETURN).*
typelist
printablefalse

...

(https://www2.acom.ucar.edu/wrf-chem/wrf-chem-tools-community)

1. Installation

Paste the below whole recipe to into your terminal

Code Block
module purge
module load cpeIntel/23.03
module load cray-hdf5-parallel
module load cray-netcdf-hdf5parallel

export FC=ifort ftn
export NETCDF_DIR=${CRAY_NETCDF_HDF5PARALLEL_PREFIX}
export LD_LIBRARY_PATH=${CRAY_LD_LIBRARY_PATH}:${LD_LIBRARY_PATH}

# GNU 
# module --> FC=gfortranload cpeGNU/23.03
# --> Addexport FC='ftn -fallow-argument-mismatch'

tar xzf ./project/common/WPS_Static/WRFprechem_XXXOct2023.tar.gz

# ANTHRO
cd ./WRFchem_pre/anthro/src/
csh make_anthro  
cd ../
ln -s ./src/anthro_emis .
cd ../../

# BIO
cd ./WRFchem_pre/bio/src/
csh make_util megan_bio_emiss 
cd ../
ln -s ./src/megan_bio_emiss .
cd ../../    

# MOZBC
cd ./WRFchem_pre/mozbc/src/
csh make_mozbc  
cd ../
ln -s ./src/mozbc .
cd ../../

# FIRE
cd ./WRFchem_pre/fire/src/
csh make_fire_emis   
cd ../
ln -s ./src/fire_emis .
cd ../../

# OXYGEN
cd ./WRFchem_pre/oxygen/src/
csh make_util wesely
csh make_util exo_coldens
cd ../
ln -s ./src/exo_coldens .
ln -s ./src/wesely .
cd ../../

...

Code Block
#!/bin/bash
#SBATCH -p memory               # Partition
#SBATCH -N 1                    # Number of nodes
#SBATCH --ntasks-per-node=1     # Number of MPI processes per node
#SBATCH -t 5-00:00:00           # Job runtime limit
#SBATCH -J WRFchemWRFprechem              # Job name
#SBATCH -A ltxxxxxx             # Account *** {USER EDIT} ***

module purge
module load cpeIntel/23.03
module load cray-hdf5-parallel
module load cray-netcdf-hdf5parallel

export OMP_NUM_THREADS=1

ulimit -s unlimited

./megan_bio_emiss < megan_bio_emiss.inp > megan_bio_emiss.log
./anthro_emis     < anthro_emis.inp     > anthro_emis.log
./fire_emis       < fire_emis.inp       > fire_emis.log
./wesely          < wesely.inp          > wesely.log
./exo_coldens     < exo_coldens.inp     > exo_coldens.log

#./mozbc_hybridcoord < mozbc_ic.inp > mozbc_ic.log
#./mozbc_hybridcoord < mozbc_bc.inp > mozbc_bc.log

...

Prep_Chem_Sources can be compiled using Intel compiler as well, the differences are

  1. Load ‘cpeIntel’ instead of ‘cpeGNU’

  2. Edit 'include.mk.intel.wrf' instead of ‘include.mk.gfortran.wrf’

    1. Edit NETCDF, HDF5 and HDF5_LIB as above, but don’t edit F_OPTS

  3. Edit ‘./src/convert_edgar_to_RELACS_REAC.f90’ instead of './src/edgar_emissions.f90'

    1. Comment out ‘use chem1_list'
      (We slightly prefer GNU over Intel compilers due to this step)

  4. Use ‘OPT=intel.wrf’ instead of ‘OPT=gfortran.wrf’

For more information, please explore /project/common/WRF/Example2/ on LANTA.

5. Example: Job submission script

Code Block
#!/bin/bash
#SBATCH -p memory               # Partition
#SBATCH -N 1                    # Number of nodes
#SBATCH --ntasks-per-node=1     # Number of MPI processes per node
#SBATCH -t 5-00:00:00           # Job runtime limit
#SBATCH -J WRFprechem           # Job name
#SBATCH -A ltxxxxxx             # Account *** {USER EDIT} ***

module purge
module load cpeIntel/23.03
module load cray-hdf5-parallel
module load cray-netcdf-hdf5parallel

export OMP_NUM_THREADS=1

ulimit -s unlimited

./prep_chem_sources_RADM_WRF_FIM_SIMPLE.exe < prep_chem_sources.inp

...

Contact Us
ThaiSC support service : thaisc-support@nstda.or.th

...