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

Fatal Error: Cannot open module file ‘module_input_chem_data.mod’ for reading at (1): No such file or directory

dharmsai

New member
I have successfully compiled WRF4.4.1, but when I am Compiling WRF-Chem 4.4.1, I am facing the following error:

start_em.f90:46:7:

46 | USE module_aerosols_sorgam, ONLY: sum_pm_sorgam
| 1
Fatal Error: Cannot open module file ‘module_aerosols_sorgam.mod’ for reading at (1): No such file or directory
compilation terminated.
.
.
solve_em.f90:82:7:

82 | USE module_input_chem_data
| 1
Fatal Error: Cannot open module file ‘module_input_chem_data.mod’ for reading at (1): No such file or directory
compilation terminated.


I also installed all the libraries in separate folder and gave path as:
export DIR=/home/rahul/Build_WRF/WRF-CHEM/LIBRARIES
export CC="gcc"
export CXX="g++"
export FC="gfortran"
export FCFLAGS="-m64"
export F77="gfortran"
export FFLAGS="-m64"
export JASPERLIB=$DIR/grib2/lib
export JASPERINC=$DIR/grib2/include
export LDFLAGS=-L$DIR/grib2/lib
export CPPFLAGS=-I$DIR/grib2/include
########################################################
export PATH=$DIR/netcdf/bin:$PATH
export NETCDF=$DIR/netcdf
export LD_LIBRARY_PATH=$DIR/netcdf/lib:$LD_LIBRARY_PATH
#############################################
export PATH=$DIR/mpich/bin:$PATH
export MPICH=$DIR/mpich
export LD_LIBRARY_PATH=$DIR/mpich/lib:$LD_LIBRARY_PATH
#############################################
export PATH=$DIR/hdf5/bin:$PATH
export HDF5=$DIR/hdf5
export LD_LIBRARY_PATH=$DIR/hdf5/lib:$LD_LIBRARY_PATH
############################################
export WRF_DIR=/home/rahul/Build_WRF/WRF-CHEM/WRFV4.4.1
##########################################
export NCARG_ROOT=/home/rahul/ncl_ncarg_6.4.0
export PATH=$NCARG_ROOT/bin:$PATH
export NCL=/home/rahul/ncl_ncarg_6.4.0/bin/ncl
########################################
export NETCDF_classic=1
####################################
export EM_CORE=1
export WRF_CHEM=1
export WRF_KPP=1
export FLEX=$DIR/flex/bin/flex
export FLEX_LIB_DIR=/home/rahul/Build_WRF/WRF-CHEM/LIBRARIES/flex/lib
export YACC='/usr/bin/yacc -d'
export KPP_HOME=/home/rahul/Build_WRF/WRF-CHEM/WRFV4.4.1/chem/KPP/kpp/kpp-2.1
export PATH=$KPP_HOME/bin:$PATH
 

Attachments

  • compile_log.txt
    1.1 MB · Views: 5
Hi,

See this line in your compile log:

/home/rahul/Build_WRF/WRF-CHEM/WRFV4.4.1/chem/KPP/kpp/kpp-2.1/bin/kpp: error while loading shared libraries: libfl.so.2: cannot open shared object file: No such file or directory

It looks like you do not have the proper libraries installed (FLEX)

Jordan
 
Top