Start by copying the GEOS-Chem source code and run directory to your working location:
cp -r /path/to/GCClassic /path/to/my_working_directory/GCClassic
cp -r /path/to/RunDir /path/to/my_working_directory/RunDir
Replace '/path/to/...' with your actual directory paths.
Navigate to your Run Directory:
cd /path/to/my_working_directory/RunDir
Edit the main input file:
nano input.geos
Update fields like meteorology (MERRA2), METDIR, INPUTDIR, simulation start/end time, timestep and output settings.
Open the configuration file:
nano HEMCO_Config.rc
Focus on the PAH emission section. Ensure the line is enabled, paths are correct, and time settings match input.geos.
Before building the model, load necessary modules:
module load intel
module load netcdf
module load openmpi
Set the environment for NetCDF and GEOS-Chem:
export NETCDF_ROOT=/data/lab/meng/jahidul/netcdf
export GC_BIN=$NETCDF_ROOT/bin
export GC_F_BIN=$NETCDF_ROOT/bin
export GC_INCLUDE=$NETCDF_ROOT/include
export GC_F_INCLUDE=$NETCDF_ROOT/include
export GC_LIB=$NETCDF_ROOT/lib
export LD_LIBRARY_PATH=$NETCDF_ROOT/lib:$LD_LIBRARY_PATH
Navigate to the run code directory:
cd /path/to/my_working_directory/RunDir
nano Makefile
Edit CODE_DIR to your code directory path and run:
make -j4 mpbuild
Rename the restart file to match your start date:
mv GC_restart.20190701_0000z.nc4 GC_restart.YYYYMMDD_0000z.nc4
rm diaginfo.dat tracerinfo.dat