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
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