Scheduled Downtime
On Friday 21 April 2023 @ 5pm MT, this website will be down for maintenance and expected to return online the morning of 24 April 2023 at the latest

Compiling WRF Chem with KPP

kshores

New member
I'm only interested in getting the KPP files to compile for a specific WRF mechanism. I don't have a preference for the version of WRF, but I'm using 4.5. I'm compiling on Derecho, but ultimately, I want to set up a Dockerfile to compile the KPP files for different mechanisms since that's all I care about. I don't actually care if WRF compiles successfully. I need a set of files configured to build the KPP version we've modified.

However, KPP fails to compile, and I'm unclear whether it's a configuration I haven't set or a module version. This problem seems similar to this thread, but I don't understand what was fixed there.

On derecho, I've installed the dependencies for WRF using conda environment I've called music_box in /glade/work/kshores/conda-envs/music_box

# packages in environment at /glade/work/kshores/conda-envs/music_box:
#
# Name Version Build Channel
bison 3.8.2 h59595ed_0 conda-forge
flex 2.6.4 h58526e2_1004 conda-forge


I load gcc with module load gcc.

(music_box) [kshores@derecho2] ~/WRFV4.5 $ module load gcc
(music_box) [kshores@derecho2] ~/WRFV4.5 $ gcc --version
gcc (Spack GCC) 12.4.0
Copyright (C) 2022 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.



Then I set these exports


export WRF_CHEM=1
export WRF_KPP=1
export NETCDF_classic=1
export FLEX=/glade/work/kshores/conda-envs/music_box/bin/flex
export FLEX_LIB_DIR=/glade/work/kshores/conda-envs/music_box/lib/
export WRFCHEM_FOLDER=$HOME/WRFV4.5
export KPP_HOME=$WRFCHEM_FOLDER/chem/KPP/kpp/kpp-2.1
export WRF_SRC_ROOT_DIR=$WRFCHEM_FOLDER
export YACC=/glade/work/kshores/conda-envs/music_box/bin/yacc

After that, I configure with option 32 for gcc, and zero for the next default value. The build of KPP then immediately fails.

What am I missing here?
 

Attachments

  • log.txt
    11.1 KB · Views: 2
Top