Compilation error with WRF Chem

All things involving the setup (compiling, NetCDF, etc.) of the WRF Model itself.

Compilation error with WRF Chem

Postby krishnaap7@gmail.com » Sat Nov 18, 2017 8:00 am

Hi, I am new to WRF. I have installed WRFV3.9 successfully. But when I tried to reinstall with Chem, there are errors while compiling.
My laptop is running on Ubuntu 15.04 ,gnu-fortran 4.9.2, netcdf 3.6.3. I have assigned these values in .bashrc.
export WRF_EM_CORE=1
export WRF_CHEM=1

I am getting following errors while compile WRF,

Code: Select all
rm -f module_pbl_driver.G module_pbl_driver.H module_pbl_driver.bb
time gfortran -o module_pbl_driver.o -c -O2 -ftree-vectorize -funroll-loops -w -ffree-form -ffree-line-length-none -fconvert=big-endian -frecord-marker=4   -I../dyn_em -I../dyn_nmm   -I/home/krishna/WRF/WRFV3/external/esmf_time_f90  -I/home/krishna/WRF/WRFV3/main -I/home/krishna/WRF/WRFV3/external/io_netcdf -I/home/krishna/WRF/WRFV3/external/io_int -I/home/krishna/WRF/WRFV3/frame -I/home/krishna/WRF/WRFV3/share -I/home/krishna/WRF/WRFV3/phys -I/home/krishna/WRF/WRFV3/chem -I/home/krishna/WRF/WRFV3/inc -I/usr/local/netcdf-3.6.3/include    module_pbl_driver.f90
module_pbl_driver.f90:1457.22:

              ,CHEM3D=CHEM,   VD3D=VD,  NCHEM=nchem, KDVEL=kdvel              &
                      1
Error: Keyword argument 'chem3d' at (1) is not in the procedure
module_pbl_driver.f90:1524.27:

                   &chem3d=chem,vd3d=vd,nchem=nchem,kdvel=kdvel,         &
                           1
Error: Keyword argument 'chem3d' at (1) is not in the procedure
Command exited with non-zero status 1
0.25user 0.00system 0:00.77elapsed 33%CPU (0avgtext+0avgdata 27348maxresident)k
0inputs+8outputs (0major+4632minor)pagefaults 0swaps
../configure.wrf:341: recipe for target 'module_pbl_driver.o' failed
make[3]: [module_pbl_driver.o] Error 1 (ignored)


Code: Select all
module_microphysics_driver.f90:685.30:

                     RAINPROD=rainprod,                  &
                              1
Error: Keyword argument 'rainprod' at (1) is not in the procedure
module_microphysics_driver.f90:740.30:

                     RAINPROD=rainprod,                  &
                              1
Error: Keyword argument 'rainprod' at (1) is not in the procedure
module_microphysics_driver.f90:1706.27:

                 ,EVAPPROD=evapprod,RAINPROD=rainprod               &
                           1
Error: Keyword argument 'evapprod' at (1) is not in the procedure
Command exited with non-zero status 1
0.39user 0.00system 0:00.40elapsed 98%CPU (0avgtext+0avgdata 28144maxresident)k
0inputs+8outputs (0major+5486minor)pagefaults 0swaps
../configure.wrf:341: recipe for target 'module_microphysics_driver.o' failed
make[3]: [module_microphysics_driver.o] Error 1 (ignored)

Code: Select all
make[3]: Leaving directory '/home/krishna/WRF/WRFV3/phys'
ar: module_physics_init.o: No such file or directory
Makefile:207: recipe for target 'physics' failed
make[2]: [physics] Error 1 (ignored)
make[2]: Leaving directory '/home/krishna/WRF/WRFV3/phys'
make[1]: Leaving directory '/home/krishna/WRF/WRFV3'
if [ 1  -eq 1 ]    ; then make -i -r MODULE_DIRS="-I../dyn_em -I../dyn_nmm   -I/home/krishna/WRF/WRFV3/external/esmf_time_f90  -I/home/krishna/WRF/WRFV3/main -I/home/krishna/WRF/WRFV3/external/io_netcdf -I/home/krishna/WRF/WRFV3/external/io_int -I/home/krishna/WRF/WRFV3/frame -I/home/krishna/WRF/WRFV3/share -I/home/krishna/WRF/WRFV3/phys -I/home/krishna/WRF/WRFV3/chem -I/home/krishna/WRF/WRFV3/inc -I/usr/local/netcdf-3.6.3/include " chemics ; fi
make[1]: Entering directory '/home/krishna/WRF/WRFV3'


Code: Select all
/phys/module_pbl_driver.f90
../phys/module_pbl_driver.f90:1457.22:

              ,CHEM3D=CHEM,   VD3D=VD,  NCHEM=nchem, KDVEL=kdvel              &
                      1
Error: Keyword argument 'chem3d' at (1) is not in the procedure
../phys/module_pbl_driver.f90:1524.27:

                   &chem3d=chem,vd3d=vd,nchem=nchem,kdvel=kdvel,         &
                           1
Error: Keyword argument 'chem3d' at (1) is not in the procedure
Command exited with non-zero status 1
0.22user 0.01system 0:00.24elapsed 98%CPU (0avgtext+0avgdata 27456maxresident)k
0inputs+8outputs (0major+4640minor)pagefaults 0swaps
../configure.wrf:341: recipe for target '../phys/module_pbl_driver.o' failed
make[2]: [../phys/module_pbl_driver.o] Error 1 (ignored)

after that too many errors..
Code: Select all
module_first_rk_step_part1.f90:42.8:

    USE module_pbl_driver, ONLY : pbl_driver
        1
Fatal Error: Can't open module file 'module_pbl_driver.mod' for reading at (1): No such file or directory
Command exited with non-zero status 1
8.25user 0.04system 0:08.29elapsed 100%CPU (0avgtext+0avgdata 32592maxresident)k
0inputs+16outputs (0major+6575minor)pagefaults 0swaps
../configure.wrf:341: recipe for target 'module_first_rk_step_part1.o' failed
make[2]: [module_first_rk_step_part1.o] Error 1 (ignored)


Code: Select all
Makefile:57: recipe for target 'dyn_em' failed
make[2]: [dyn_em] Error 1 (ignored)
make[2]: Leaving directory '/home/krishna/WRF/WRFV3/dyn_em'
make[1]: Leaving directory '/home/krishna/WRF/WRFV3'
if [ 0 -eq 1 ]   ; then make -i -r MODULE_DIRS="-I../dyn_em -I../dyn_nmm   -I/home/krishna/WRF/WRFV3/external/esmf_time_f90  -I/home/krishna/WRF/WRFV3/main -I/home/krishna/WRF/WRFV3/external/io_netcdf -I/home/krishna/WRF/WRFV3/external/io_int -I/home/krishna/WRF/WRFV3/frame -I/home/krishna/WRF/WRFV3/share -I/home/krishna/WRF/WRFV3/phys -I/home/krishna/WRF/WRFV3/chem -I/home/krishna/WRF/WRFV3/inc -I/usr/local/netcdf-3.6.3/include " nmm_core ; fi
if [ 0 -eq 1 ]   ; then make -i -r MODULE_DIRS="-I../dyn_em -I../dyn_nmm   -I/home/krishna/WRF/WRFV3/external/esmf_time_f90  -I/home/krishna/WRF/WRFV3/main -I/home/krishna/WRF/WRFV3/external/io_netcdf -I/home/krishna/WRF/WRFV3/external/io_int -I/home/krishna/WRF/WRFV3/frame -I/home/krishna/WRF/WRFV3/share -I/home/krishna/WRF/WRFV3/phys -I/home/krishna/WRF/WRFV3/chem -I/home/krishna/WRF/WRFV3/inc -I/usr/local/netcdf-3.6.3/include " exp_core ; fi
if [ 0 -eq 1 ]   ; then make -i -r MODULE_DIRS="-I../dyn_em -I../dyn_nmm   -I/home/krishna/WRF/WRFV3/external/esmf_time_f90  -I/home/krishna/WRF/WRFV3/main -I/home/krishna/WRF/WRFV3/external/io_netcdf -I/home/krishna/WRF/WRFV3/external/io_int -I/home/krishna/WRF/WRFV3/frame -I/home/krishna/WRF/WRFV3/share -I/home/krishna/WRF/WRFV3/phys -I/home/krishna/WRF/WRFV3/chem -I/home/krishna/WRF/WRFV3/inc -I/usr/local/netcdf-3.6.3/include " wrf_hydro ; fi
( cd main ; make -i -r RLFLAGS="" MODULE_DIRS="-I../dyn_em -I../dyn_nmm   -I/home/krishna/WRF/WRFV3/external/esmf_time_f90  -I/home/krishna/WRF/WRFV3/main -I/home/krishna/WRF/WRFV3/external/io_netcdf -I/home/krishna/WRF/WRFV3/external/io_int -I/home/krishna/WRF/WRFV3/frame -I/home/krishna/WRF/WRFV3/share -I/home/krishna/WRF/WRFV3/phys -I/home/krishna/WRF/WRFV3/chem -I/home/krishna/WRF/WRFV3/inc -I/usr/local/netcdf-3.6.3/include " SOLVER=em em_wrf )
make[1]: Entering directory '/home/krishna/WRF/WRFV3/main'
ranlib  libwrflib.a
time gfortran -o wrf.exe  -O2 -ftree-vectorize -funroll-loops -w -ffree-form -ffree-line-length-none -fconvert=big-endian -frecord-marker=4    wrf.o ../main/module_wrf_top.o libwrflib.a /home/krishna/WRF/WRFV3/external/fftpack/fftpack5/libfftpack.a /home/krishna/WRF/WRFV3/external/io_grib1/libio_grib1.a /home/krishna/WRF/WRFV3/external/io_grib_share/libio_grib_share.a /home/krishna/WRF/WRFV3/external/io_int/libwrfio_int.a -L/home/krishna/WRF/WRFV3/external/esmf_time_f90 -lesmf_time /home/krishna/WRF/WRFV3/external/RSL_LITE/librsl_lite.a /home/krishna/WRF/WRFV3/frame/module_internal_header_util.o /home/krishna/WRF/WRFV3/frame/pack_utils.o  -L/home/krishna/WRF/WRFV3/external/io_netcdf -lwrfio_nf -L/usr/local/netcdf-3.6.3/lib  -lnetcdf   -L/home/krishna/WRF/WRFV3/external/io_grib2 -lio_grib2 -L/usr/local/jasper-1.701.0/lib -L/usr/local/libpng-1.6.12/lib -L/usr/local/zlib-1.2.3/lib -ljasper     
/usr/local/jasper-1.701.0/lib/libjasper.a(jas_stream.o): In function `jas_stream_tmpfile':
/usr/local/jasper-1.701.0/jasper-1.701.0/src/libjasper/base/jas_stream.c:368: warning: the use of `tmpnam' is dangerous, better use `mkstemp'
libwrflib.a(module_dm.o): In function `feedback_domain_em_part2_':
module_dm.f90:(.text+0x142632): undefined reference to `cd_feedback_mask_'
.
.
.
module_cam_mam_gasaerexch.f90:(.text+0x2319): undefined reference to `__constituents_MOD_cnst_get_ind'
module_cam_mam_gasaerexch.f90:(.text+0x2335): undefined reference to `__constituents_MOD_cnst_get_ind'
module_cam_mam_gasaerexch.f90:(.text+0x2351): undefined reference to `__constituents_MOD_cnst_get_ind'
module_cam_mam_gasaerexch.f90:(.text+0x236d): undefined reference to `__constituents_MOD_cnst_get_ind'
module_cam_mam_gasaerexch.f90:(.text+0x24ab): undefined reference to `__module_cam_support_MOD_endrun'
module_cam_mam_gasaerexch.f90:(.text+0x29d7): undefined reference to `__modal_aero_data_MOD_lptr_so4_a_amode'
.
.
.

Code: Select all
( cd main ; make -i -r RLFLAGS="" MODULE_DIRS="-I../dyn_em -I../dyn_nmm   -I/home/krishna/WRF/WRFV3/external/esmf_time_f90  -I/home/krishna/WRF/WRFV3/main -I/home/krishna/WRF/WRFV3/external/io_netcdf -I/home/krishna/WRF/WRFV3/external/io_int -I/home/krishna/WRF/WRFV3/frame -I/home/krishna/WRF/WRFV3/share -I/home/krishna/WRF/WRFV3/phys -I/home/krishna/WRF/WRFV3/chem -I/home/krishna/WRF/WRFV3/inc -I/usr/local/netcdf-3.6.3/include " SOLVER=em IDEAL_CASE=real em_real )
make[1]: Entering directory '/home/krishna/WRF/WRFV3/main'
rm -f ndown_em.o
sed -e "s/grid%mu/gridmu/g" -e "s/grid%Mu/gridMu/g" -e "s/^\!.*'.*//" -e "s/^ *\!.*'.*//" ndown_em.F > ndown_em.G
/lib/cpp -P -nostdinc -I/home/krishna/WRF/WRFV3/inc -DEM_CORE=1 -DNMM_CORE=0 -DNMM_MAX_DIM=2600 -DCOAMPS_CORE=0 -DDA_CORE=0 -DEXP_CORE=0 -DIWORDSIZE=4 -DDWORDSIZE=8 -DRWORDSIZE=4 -DLWORDSIZE=4 -DNONSTANDARD_SYSTEM_SUBR  -DWRF_USE_CLM -DNO_IEEE_MODULE  -DDM_PARALLEL -DSTUBMPI -DNETCDF -DGRIB2 -DUSE_ALLOCATABLES -DGRIB1 -DINTIO -DKEEP_INT_AROUND -DLIMIT_ARGS -DCONFIG_BUF_LEN=65536 -DMAX_DOMAINS_F=21 -DMAX_HISTORY=25 -DNMM_NEST=0 -DWRF_CHEM -DBUILD_CHEM=1 -I. -traditional-cpp   ndown_em.G  > ndown_em.H
sed -e "s/gridmu/grid%mu/g" -e "s/gridMu/grid%Mu/g" ndown_em.H > ndown_em.bb
/home/krishna/WRF/WRFV3/tools/standard.exe ndown_em.bb | /lib/cpp -P -nostdinc -traditional-cpp > ndown_em.f90
rm -f ndown_em.G ndown_em.H ndown_em.bb
time gfortran -o ndown_em.o -c -O2 -ftree-vectorize -funroll-loops -w -ffree-form -ffree-line-length-none -fconvert=big-endian -frecord-marker=4   -I../dyn_em -I../dyn_nmm   -I/home/krishna/WRF/WRFV3/external/esmf_time_f90  -I/home/krishna/WRF/WRFV3/main -I/home/krishna/WRF/WRFV3/external/io_netcdf -I/home/krishna/WRF/WRFV3/external/io_int -I/home/krishna/WRF/WRFV3/frame -I/home/krishna/WRF/WRFV3/share -I/home/krishna/WRF/WRFV3/phys -I/home/krishna/WRF/WRFV3/chem -I/home/krishna/WRF/WRFV3/inc -I/usr/local/netcdf-3.6.3/include    ndown_em.f90
f951: internal compiler error: in read_module, at fortran/module.c:4998
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-4.9/README.Bugs> for instructions.
Command exited with non-zero status 1
0.14user 0.01system 0:00.15elapsed 98%CPU (0avgtext+0avgdata 29460maxresident)k
0inputs+8outputs (0major+5000minor)pagefaults 0swaps
../configure.wrf:341: recipe for target 'ndown_em.o' failed
make[1]: [ndown_em.o] Error 1 (ignored)
rm -f tc_em.o

with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-4.9/README.Bugs> for instructions.
Command exited with non-zero status 1
1.93user 0.00system 0:01.94elapsed 99%CPU (0avgtext+0avgdata 41696maxresident)k
0inputs+8outputs (0major+7755minor)pagefaults 0swaps
../configure.wrf:341: recipe for target 'tc_em.o' failed
make[1]: [tc_em.o] Error 1 (ignored)
ranlib  libwrflib.a
time gfortran -o ndown.exe  -O2 -ftree-vectorize -funroll-loops -w -ffree-form -ffree-line-length-none -fconvert=big-endian -frecord-marker=4    ndown_em.o  ../dyn_em/module_initialize_real.o libwrflib.a /home/krishna/WRF/WRFV3/external/fftpack/fftpack5/libfftpack.a /home/krishna/WRF/WRFV3/external/io_grib1/libio_grib1.a /home/krishna/WRF/WRFV3/external/io_grib_share/libio_grib_share.a /home/krishna/WRF/WRFV3/external/io_int/libwrfio_int.a -L/home/krishna/WRF/WRFV3/external/esmf_time_f90 -lesmf_time /home/krishna/WRF/WRFV3/external/RSL_LITE/librsl_lite.a /home/krishna/WRF/WRFV3/frame/module_internal_header_util.o /home/krishna/WRF/WRFV3/frame/pack_utils.o  -L/home/krishna/WRF/WRFV3/external/io_netcdf -lwrfio_nf -L/usr/local/netcdf-3.6.3/lib  -lnetcdf   -L/home/krishna/WRF/WRFV3/external/io_grib2 -lio_grib2 -L/usr/local/jasper-1.701.0/lib -L/usr/local/libpng-1.6.12/lib -L/usr/local/zlib-1.2.3/lib -ljasper   
gfortran: error: ndown_em.o: No such file or directory
Command exited with non-zero status 1
0.00user 0.00system 0:00.00elapsed 0%CPU (0avgtext+0avgdata 2592maxresident)k
0inputs+0outputs (0major+111minor)pagefaults 0swaps
Makefile:28: recipe for target 'em_real' failed
make[1]: [em_real] Error 1 (ignored)
#TEMPORARILY REMOVED time gfortran -o nup.exe  -O2 -ftree-vectorize -funroll-loops -w -ffree-form -ffree-line-length-none -fconvert=big-endian -frecord-marker=4    nup_em.o  ../dyn_em/module_initialize_real.o libwrflib.a /home/krishna/WRF/WRFV3/external/fftpack/fftpack5/libfftpack.a /home/krishna/WRF/WRFV3/external/io_grib1/libio_grib1.a /home/krishna/WRF/WRFV3/external/io_grib_share/libio_grib_share.a /home/krishna/WRF/WRFV3/external/io_int/libwrfio_int.a -L/home/krishna/WRF/WRFV3/external/esmf_time_f90 -lesmf_time /home/krishna/WRF/WRFV3/external/RSL_LITE/librsl_lite.a /home/krishna/WRF/WRFV3/frame/module_internal_header_util.o /home/krishna/WRF/WRFV3/frame/pack_utils.o  -L/home/krishna/WRF/WRFV3/external/io_netcdf -lwrfio_nf -L/usr/local/netcdf-3.6.3/lib  -lnetcdf   -L/home/krishna/WRF/WRFV3/external/io_grib2 -lio_grib2 -L/usr/local/jasper-1.701.0/lib -L/usr/local/libpng-1.6.12/lib -L/usr/local/zlib-1.2.3/lib -ljasper   
time gfortran -o tc.exe  -O2 -ftree-vectorize -funroll-loops -w -ffree-form -ffree-line-length-none -fconvert=big-endian -frecord-marker=4    tc_em.o  ../dyn_em/module_initialize_real.o libwrflib.a /home/krishna/WRF/WRFV3/external/fftpack/fftpack5/libfftpack.a /home/krishna/WRF/WRFV3/external/io_grib1/libio_grib1.a /home/krishna/WRF/WRFV3/external/io_grib_share/libio_grib_share.a /home/krishna/WRF/WRFV3/external/io_int/libwrfio_int.a -L/home/krishna/WRF/WRFV3/external/esmf_time_f90 -lesmf_time /home/krishna/WRF/WRFV3/external/RSL_LITE/librsl_lite.a /home/krishna/WRF/WRFV3/frame/module_internal_header_util.o /home/krishna/WRF/WRFV3/frame/pack_utils.o  -L/home/krishna/WRF/WRFV3/external/io_netcdf -lwrfio_nf -L/usr/local/netcdf-3.6.3/lib  -lnetcdf   -L/home/krishna/WRF/WRFV3/external/io_grib2 -lio_grib2 -L/usr/local/jasper-1.701.0/lib -L/usr/local/libpng-1.6.12/lib -L/usr/local/zlib-1.2.3/lib -ljasper   
gfortran: error: tc_em.o: No such file or directory
Command exited with non-zero status 1
0.00user 0.00system 0:00.00elapsed 0%CPU (0avgtext+0avgdata 2628maxresident)k
0inputs+0outputs (0major+114minor)pagefaults 0swaps
Makefile:28: recipe for target 'em_real' failed
make[1]: [em_real] Error 1 (ignored)
time gfortran -o real.exe  -O2 -ftree-vectorize -funroll-loops -w -ffree-form -ffree-line-length-none -fconvert=big-endian -frecord-marker=4    real_em.o ../dyn_em/module_initialize_real.o libwrflib.a /home/krishna/WRF/WRFV3/external/fftpack/fftpack5/libfftpack.a /home/krishna/WRF/WRFV3/external/io_grib1/libio_grib1.a /home/krishna/WRF/WRFV3/external/io_grib_share/libio_grib_share.a /home/krishna/WRF/WRFV3/external/io_int/libwrfio_int.a -L/home/krishna/WRF/WRFV3/external/esmf_time_f90 -lesmf_time /home/krishna/WRF/WRFV3/external/RSL_LITE/librsl_lite.a /home/krishna/WRF/WRFV3/frame/module_internal_header_util.o /home/krishna/WRF/WRFV3/frame/pack_utils.o  -L/home/krishna/WRF/WRFV3/external/io_netcdf -lwrfio_nf -L/usr/local/netcdf-3.6.3/lib  -lnetcdf   -L/home/krishna/WRF/WRFV3/external/io_grib2 -lio_grib2 -L/usr/local/jasper-1.701.0/lib -L/usr/local/libpng-1.6.12/lib -L/usr/local/zlib-1.2.3/lib -ljasper   
/usr/local/jasper-1.701.0/lib/libjasper.a(jas_stream.o): In function `jas_stream_tmpfile':
/usr/local/jasper-1.701.0/jasper-1.701.0/src/libjasper/base/jas_stream.c:368: warning: the use of `tmpnam' is dangerous, better use `mkstemp'
real_em.o: In function `assemble_output_':
real_em.f90:(.text+0x4e47): undefined reference to `__module_big_step_utilities_em_MOD_couple'
real_em.f90:(.text+0x5070): undefined reference to `__module_big_step_utilities_em_MOD_couple'
real_em.f90:(.text+0x52a0): undefined reference to `__module_big_step_utilities_em_MOD_couple'
real_em.f90:(.text+0x54cf): undefined reference to `__module_big_step_utilities_em_MOD_couple'
real_em.f90:(.text+0x57d7): undefined reference to `__module_big_step_utilities_em_MOD_couple'
real_em.o:real_em.f90:(.text+0x7c0e): more undefined references to `__module_big_step_utilities_em_MOD_couple' follow
../dyn_em/module_initialize_real.o: In function `__module_initialize_real_MOD_init_domain_rk':
module_initialize_real.f90:(.text+0x4e092): undefined reference to `__module_polarfft_MOD_pxft'
module_initialize_real.f90:(.text+0x4ec32): undefined reference to `blend_terrain_'
libwrflib.a(module_dm.o): In function `feedback_domain_em_part2_':
module_dm.f90:(.text+0x142632): undefined reference to `cd_feedback_mask_'
module_dm.f90:(.text+0x1426a4): undefined reference to `cd_feedback_mask_'
module_dm.f90:(.text+0x142789): undefined reference to `cd_feedback_mask_'
module_dm.f90:(.text+0x142839): undefined reference to `cd_feedback_mask_'
module_dm.f90:(.text+0x1428eb): undefined reference to `cd_feedback_mask_'
libwrflib.a(module_dm.o):module_dm.f90:(.text+0x14299d): more undefined references to `cd_feedback_mask_' follow
libwrflib.a(init_modules.o): In function `init_modules_':
init_modules.f90:(.text+0x30): undefined reference to `init_modules_em_'
libwrflib.a(start_domain.o): In function `start_domain_':
start_domain.f90:(.text+0xa30): undefined reference to `start_domain_em_'
collect2: error: ld returned 1 exit status
Command exited with non-zero status 1
0.22user 0.09system 0:01.06elapsed 29%CPU (0avgtext+0avgdata 74140maxresident)k
0inputs+86952outputs (0major+12078minor)pagefaults 0swaps
Makefile:28: recipe for target 'em_real' failed
make[1]: [em_real] Error 1 (ignored)
make[1]: Leaving directory '/home/krishna/WRF/WRFV3/main'
( cd test/em_real ; /bin/rm -f wrf.exe ; ln -s ../../main/wrf.exe . )
if [ 0 -eq 1 ] ; then \
  ( cd main ; make -i -r RLFLAGS="" MODULE_DIRS="-I../dyn_em -I../dyn_nmm   -I/home/krishna/WRF/WRFV3/external/esmf_time_f90  -I/home/krishna/WRF/WRFV3/main -I/home/krishna/WRF/WRFV3/external/io_netcdf -I/home/krishna/WRF/WRFV3/external/io_int -I/home/krishna/WRF/WRFV3/frame -I/home/krishna/WRF/WRFV3/share -I/home/krishna/WRF/WRFV3/phys -I/home/krishna/WRF/WRFV3/chem -I/home/krishna/WRF/WRFV3/inc -I/usr/local/netcdf-3.6.3/include " SOLVER=em IDEAL_CASE=real em_wrf_SST_ESMF ) ; \
  ( cd test/em_esmf_exp ; /bin/rm -f wrf.exe ; ln -s ../../main/wrf.exe . ) ; \
  ( cd test/em_esmf_exp ; /bin/rm -f wrf_SST_ESMF.exe ; ln -s ../../main/wrf_SST_ESMF.exe . ) ; \
  ( cd test/em_esmf_exp ; /bin/rm -f real.exe ; ln -s ../../main/real.exe . ) ; \
  ( cd test/em_esmf_exp ; /bin/rm -f README.namelist ; ln -s ../../run/README.namelist . ) ; \
  ( cd test/em_esmf_exp ; /bin/rm -f ETAMPNEW_DATA.expanded_rain ETAMPNEW_DATA RRTM_DATA RRTMG_LW_DATA RRTMG_SW_DATA ; \
               ln -sf ../../run/ETAMPNEW_DATA . ;                      \
               ln -sf ../../run/ETAMPNEW_DATA.expanded_rain . ;        \
               ln -sf ../../run/RRTM_DATA . ;                          \
               ln -sf ../../run/RRTMG_LW_DATA . ;                      \
               ln -sf ../../run/RRTMG_SW_DATA . ;                      \
               ln -sf ../../run/CAM_ABS_DATA . ;                       \
               ln -sf ../../run/CAM_AEROPT_DATA . ;                    \
               ln -sf ../../run/CAMtr_volume_mixing_ratio.RCP4.5 . ;   \
               ln -sf ../../run/CAMtr_volume_mixing_ratio.RCP6   . ;   \
               ln -sf ../../run/CAMtr_volume_mixing_ratio.RCP8.5 CAMtr_volume_mixing_ratio ;   \
               ln -sf ../../run/CAMtr_volume_mixing_ratio.A1B    . ;   \
               ln -sf ../../run/CAMtr_volume_mixing_ratio.A2     . ;   \
               ln -sf ../../run/CLM_ALB_ICE_DFS_DATA . ;               \
               ln -sf ../../run/CLM_ALB_ICE_DRC_DATA . ;               \
               ln -sf ../../run/CLM_ASM_ICE_DFS_DATA . ;               \
               ln -sf ../../run/CLM_ASM_ICE_DRC_DATA . ;               \
               ln -sf ../../run/CLM_DRDSDT0_DATA . ;                   \
               ln -sf ../../run/CLM_EXT_ICE_DFS_DATA . ;               \
               ln -sf ../../run/CLM_EXT_ICE_DRC_DATA . ;               \
               ln -sf ../../run/CLM_KAPPA_DATA . ;                     \
               ln -sf ../../run/CLM_TAU_DATA . ;                       \
               ln -sf ../../run/ozone.formatted . ;                    \
               ln -sf ../../run/ozone_lat.formatted . ;                \
               ln -sf ../../run/ozone_plev.formatted . ;               \
               ln -sf ../../run/aerosol.formatted . ;                  \
               ln -sf ../../run/aerosol_lat.formatted . ;              \
               ln -sf ../../run/aerosol_lon.formatted . ;              \
               ln -sf ../../run/aerosol_plev.formatted . ;             \
               ln -sf ../../run/CCN_ACTIVATE.BIN . ;                   \
               ln -sf ../../run/p3_lookup_table_1.dat . ;              \
               if [ 4 -eq 8 ] ; then                        \
                  ln -sf ../../run/ETAMPNEW_DATA_DBL ETAMPNEW_DATA ;   \
                  ln -sf ../../run/ETAMPNEW_DATA.expanded_rain_DBL ETAMPNEW_DATA.expanded_rain ;   \
                  ln -sf ../../run/RRTM_DATA_DBL RRTM_DATA         ;   \
                  ln -sf ../../run/RRTMG_LW_DATA_DBL RRTMG_LW_DATA ;   \
                  ln -sf ../../run/RRTMG_SW_DATA_DBL RRTMG_SW_DATA ;   \
               fi ) ; \
  ( cd test/em_esmf_exp ; /bin/rm -f GENPARM.TBL ; ln -s ../../run/GENPARM.TBL . ) ; \
  ( cd test/em_esmf_exp ; /bin/rm -f LANDUSE.TBL ; ln -s ../../run/LANDUSE.TBL . ) ; \
  ( cd test/em_esmf_exp ; /bin/rm -f SOILPARM.TBL ; ln -s ../../run/SOILPARM.TBL . ) ; \
  ( cd test/em_esmf_exp ; /bin/rm -f URBPARM.TBL ; ln -s ../../run/URBPARM.TBL . ) ; \
  ( cd test/em_esmf_exp ; /bin/rm -f VEGPARM.TBL ; ln -s ../../run/VEGPARM.TBL . ) ; \
  ( cd test/em_esmf_exp ; /bin/rm -f MPTABLE.TBL ; ln -s ../../run/MPTABLE.TBL . ) ; \
  ( cd test/em_esmf_exp ; /bin/rm -f tr49t67 ; ln -s ../../run/tr49t67 . ) ; \
  ( cd test/em_esmf_exp ; /bin/rm -f tr49t85 ; ln -s ../../run/tr49t85 . ) ; \
  ( cd test/em_esmf_exp ; /bin/rm -f tr67t85 ; ln -s ../../run/tr67t85 . ) ; \
  ( cd test/em_esmf_exp ; /bin/rm -f gribmap.txt ; ln -s ../../run/gribmap.txt . ) ; \
  ( cd test/em_esmf_exp ; /bin/rm -f grib2map.tbl ; ln -s ../../run/grib2map.tbl . ) ; \
fi
( cd test/em_real ; /bin/rm -f real.exe ; ln -s ../../main/real.exe . )
( cd test/em_real ; /bin/rm -f tc.exe ; ln -s ../../main/tc.exe . )
( cd test/em_real ; /bin/rm -f ndown.exe ; ln -s ../../main/ndown.exe . )
#TEMPORARILY REMOVED ( cd test/em_real ; /bin/rm -f nup.exe ; ln -s ../../main/nup.exe . )
( cd test/em_real ; /bin/rm -f README.namelist ; ln -s ../../run/README.namelist . )
( cd test/em_real ; /bin/rm -f ETAMPNEW_DATA.expanded_rain ETAMPNEW_DATA RRTM_DATA RRTMG_LW_DATA RRTMG_SW_DATA ;    \
             ln -sf ../../run/ETAMPNEW_DATA . ;                     \
             ln -sf ../../run/ETAMPNEW_DATA.expanded_rain . ;       \
             ln -sf ../../run/RRTM_DATA . ;                         \
             ln -sf ../../run/RRTMG_LW_DATA . ;                     \
             ln -sf ../../run/RRTMG_SW_DATA . ;                     \
             ln -sf ../../run/CAM_ABS_DATA . ;                      \
             ln -sf ../../run/CAM_AEROPT_DATA . ;                   \
             ln -sf ../../run/CAMtr_volume_mixing_ratio.RCP4.5 . ;  \
             ln -sf ../../run/CAMtr_volume_mixing_ratio.RCP6   . ;  \
             ln -sf ../../run/CAMtr_volume_mixing_ratio.RCP8.5 CAMtr_volume_mixing_ratio ;   \
             ln -sf ../../run/CAMtr_volume_mixing_ratio.A1B    . ;  \
             ln -sf ../../run/CAMtr_volume_mixing_ratio.A2     . ;  \
             ln -sf ../../run/CLM_ALB_ICE_DFS_DATA . ;              \
             ln -sf ../../run/CLM_ALB_ICE_DRC_DATA . ;              \
             ln -sf ../../run/CLM_ASM_ICE_DFS_DATA . ;              \
             ln -sf ../../run/CLM_ASM_ICE_DRC_DATA . ;              \
             ln -sf ../../run/CLM_DRDSDT0_DATA . ;                  \
             ln -sf ../../run/CLM_EXT_ICE_DFS_DATA . ;              \
             ln -sf ../../run/CLM_EXT_ICE_DRC_DATA . ;              \
             ln -sf ../../run/CLM_KAPPA_DATA . ;                    \
             ln -sf ../../run/CLM_TAU_DATA . ;                      \
             ln -sf ../../run/ozone.formatted . ;                   \
             ln -sf ../../run/ozone_lat.formatted . ;               \
             ln -sf ../../run/ozone_plev.formatted . ;              \
             ln -sf ../../run/aerosol.formatted . ;                 \
             ln -sf ../../run/aerosol_lat.formatted . ;             \
             ln -sf ../../run/aerosol_lon.formatted . ;             \
             ln -sf ../../run/aerosol_plev.formatted . ;            \
             ln -sf ../../run/capacity.asc . ;            \
             ln -sf ../../run/coeff_p.asc . ;            \
             ln -sf ../../run/coeff_q.asc . ;            \
             ln -sf ../../run/constants.asc . ;            \
             ln -sf ../../run/masses.asc . ;            \
             ln -sf ../../run/termvels.asc . ;            \
             ln -sf ../../run/kernels.asc_s_0_03_0_9 . ;            \
             ln -sf ../../run/kernels_z.asc . ;            \
             ln -sf ../../run/bulkdens.asc_s_0_03_0_9 . ;            \
             ln -sf ../../run/bulkradii.asc_s_0_03_0_9 . ;            \
             ln -sf ../../run/CCN_ACTIVATE.BIN . ;                   \
             ln -sf ../../run/p3_lookup_table_1.dat . ;                   \
             if [ 4 -eq 8 ] ; then                       \
                ln -sf ../../run/ETAMPNEW_DATA_DBL ETAMPNEW_DATA ;  \
                ln -sf ../../run/ETAMPNEW_DATA.expanded_rain_DBL ETAMPNEW_DATA.expanded_rain ;   \
                ln -sf ../../run/RRTM_DATA_DBL RRTM_DATA ;          \
                ln -sf ../../run/RRTMG_LW_DATA_DBL RRTMG_LW_DATA ;  \
                ln -sf ../../run/RRTMG_SW_DATA_DBL RRTMG_SW_DATA ;  \
             fi )
( cd test/em_real ; /bin/rm -f GENPARM.TBL ; ln -s ../../run/GENPARM.TBL . )
( cd test/em_real ; /bin/rm -f LANDUSE.TBL ; ln -s ../../run/LANDUSE.TBL . )
( cd test/em_real ; /bin/rm -f SOILPARM.TBL ; ln -s ../../run/SOILPARM.TBL . )
( cd test/em_real ; /bin/rm -f URBPARM.TBL ; ln -s ../../run/URBPARM.TBL . )
( cd test/em_real ; /bin/rm -f VEGPARM.TBL ; ln -s ../../run/VEGPARM.TBL . )
( cd test/em_real ; /bin/rm -f MPTABLE.TBL ; ln -s ../../run/MPTABLE.TBL . )
( cd test/em_real ; /bin/rm -f tr49t67 ; ln -s ../../run/tr49t67 . )
( cd test/em_real ; /bin/rm -f tr49t85 ; ln -s ../../run/tr49t85 . )
( cd test/em_real ; /bin/rm -f tr67t85 ; ln -s ../../run/tr67t85 . )
( cd test/em_real ; /bin/rm -f gribmap.txt ; ln -s ../../run/gribmap.txt . )
( cd test/em_real ; /bin/rm -f grib2map.tbl ; ln -s ../../run/grib2map.tbl . )
( cd run ; /bin/rm -f real.exe ; ln -s ../main/real.exe . )
( cd run ; /bin/rm -f tc.exe ; ln -s ../main/tc.exe . )
( cd run ; /bin/rm -f ndown.exe ; ln -s ../main/ndown.exe . )
#TEMPORARILY REMOVED ( cd run ; /bin/rm -f nup.exe ; ln -s ../main/nup.exe . )
( cd run ; if test -f namelist.input ; then \
   /bin/cp -f namelist.input namelist.input.backup.`date +%Y-%m-%d_%H_%M_%S` ; fi ; \
   /bin/rm -f namelist.input ; cp ../test/em_real/namelist.input . )
 
==========================================================================
build started:   Sat Nov 18 16:58:51 IST 2017
build completed: Sat Nov 18 17:00:19 IST 2017
 
---> Problems building executables, look for errors in the build log  <---
 


Please help me to solve this issue. Thanks in advance
Krishnakumar AP
Banaras Hindu University
krishnaap7@gmail.com
 
Posts: 4
Joined: Sun Nov 12, 2017 3:23 am

Re: Compilation error with WRF Chem

Postby kwthomas » Mon Nov 20, 2017 7:28 pm

Did you do a "clean -a" before building? If not, you probably have a code mix of non-CHEM and CHEM.

You might also grab WRF 3.9.1.1, which is the latest update for WRF 3.9.
Kevin W. Thomas
Center for Analysis and Prediction of Storms
University of Oklahoma
kwthomas
 
Posts: 208
Joined: Thu Aug 07, 2008 6:53 pm

Re: Compilation error with WRF Chem

Postby krishnaap7@gmail.com » Tue Nov 21, 2017 6:16 am

kwthomas wrote:Did you do a "clean -a" before building? If not, you probably have a code mix of non-CHEM and CHEM.

You might also grab WRF 3.9.1.1, which is the latest update for WRF 3.9.


I tried again by completely deleting and reinstalling, now it works. I should have tried ./clean
Thanks anyway :)
Krishnakumar AP
Banaras Hindu University
krishnaap7@gmail.com
 
Posts: 4
Joined: Sun Nov 12, 2017 3:23 am


Return to Installation

Who is online

Users browsing this forum: No registered users and 5 guests

cron