WFDA v.3.9.1 Compile error: Symbol has no IMPLICIT type

Setting up the 3DVAR package within WRF.

WFDA v.3.9.1 Compile error: Symbol has no IMPLICIT type

Postby gerardo » Fri Apr 19, 2019 2:40 pm

Dear WRF FORUM
I have installed, in a i7-3520M laptop (2 cores), the WRF ARW v. 3.9.1. The characteristics and directories where they reside are as follows:
/usr/bin/gfortran ; (GNU Fortran (GCC) 4.9.2)
/opt/MiWrf_391/Build_wrf/LIBRARIES/netcdf-4.3.3.1
/opt/MiWrf_391/Build_wrf/LIBRARIES/netcdf-fortran-4.4.2
I run geogrid, ungrib, metgrid and real.exe, successfully. The wrf.exe, wrfdy_d01 and wrfinput_d01 files were created and the last line of rsl.out.0000 is:
d01 2007-08-16_00:00:00 real_em: SUCCESS COMPLETE REAL_EM INIT, and wrf.exe.
Next; I start to install and compile WRFDA v. 3.9.1
I set the following environment variables:
export PATH=/opt/MiWrf_391/Build_wrf/LIBRARIES/mpic/bin:$PATH
export LD_LIBRARY_PATH=/opt/MiWrf_391/Build_wrf/LIBRARIES/netcdf/lib
export DIR=/opt/MiWrf_391/Build_wrf/LIBRARIES
export CC=gcc
export CXX=g++
export FC=gfortran
export FCFLAGS=-m64
export F77=gfortran
export FFLAGS=-m64
export PATH=$DIR/netcdf/bin:$PATH
export NETCDF=$DIR/netcdf
export JASPERLIB=$DIR/grib2/lib
export JASPERINC=$DIR/grib2/include
export BUFR=1
export CRTM=1.
I'm not using RTTOV
The WRFV3 model is located in the directory:
./opt/MiWrf_391/Build_wrf/WRFV3
And the WRFDA in the directory:
./opt/MiWrf_391/Build_wrf/WRFDA
I also installed the hdf5 and have the following files
./opt/MiWrf_391/Build_wrf/LIBRARIES/hdf5-1.8.15-patch1/config/cmake/HDF518_Examples.cmake.in
./opt/MiWrf_391/Build_wrf/LIBRARIES/hdf5-1.8.15-patch1/config/cmake/HDF5Macros.cmake
./opt/MiWrf_391/Build_wrf/LIBRARIES/hdf5-1.8.15-patch1/fortran/src/HDF5.o
./opt/MiWrf_391/Build_wrf/LIBRARIES/hdf5-1.8.15-patch1/fortran/src/HDF5.f90
./opt/MiWrf_391/Build_wrf/LIBRARIES/hdf5-1.8.15-patch1/fortran/src/HDF5.lo
./opt/MiWrf_391/Build_wrf/LIBRARIES/hdf5-1.8.15-patch1/fortran/src/HDF5mpio.f90
./opt/MiWrf_391/Build_wrf/LIBRARIES/hdf5-1.8.15-patch1/fortran/src/.libs/HDF5.o.
but, I don't set yet environment variable for this variable.
I configure the WRFDA with the option: 34. However, when I compile it, only 12 executables are created and one of the first errors is:
Error: Symbol 'ncnowrit' at (1) has no IMPLICIT type
da_netcdf_interface.f:13133.30:

I saw that the program da_netcdf_interface.f, is a fortran program writing in F77 and probably, it is compiling (in my laptop) with a f90 compiler. However, I don't know how to solve this problem. Similar errors have been reported in https://www.flexpart.eu/ticket/97, however, I’m not sure if the answer in this post will work in this case. I greatly appreciate any help.

several segments of the compile.out file are the following:

rm -f module_internal_header_util.G module_internal_header_util.H module_internal_header_util.bb
time mpif90 -f90=gfortran -o module_internal_header_util.o -c -O2 -ftree-vectorize -funroll-loops -w -ffree-form -ffree-line-length-none -fconvert=big-endian -frecord-marker=4 -fdefault-real-8 module_internal_header_util.f90
da_netcdf_interface.f:17838.31:

cdfid = ncopn(file, NCNOWRIT, rcode)
1
Error: Symbol 'ncnowrit' at (1) has no IMPLICIT type
da_netcdf_interface.f:13133.30:

cdfid = ncopn(file, NCWRITE, rcode)
1
Error: Symbol 'ncwrite' at (1) has no IMPLICIT type
da_netcdf_interface.f:11931.31:

cdfid = ncopn(file, NCNOWRIT, rcode)
1
Error: Symbol 'ncnowrit' at (1) has no IMPLICIT type
da_netcdf_interface.f:10723.30:

cdfid = ncopn(file, NCWRITE, rcode)
1
Error: Symbol 'ncwrite' at (1) has no IMPLICIT type
da_netcdf_interface.f:9507.30:

cdfid = ncopn(file, NCWRITE, rcode)
1
Error: Symbol 'ncwrite' at (1) has no IMPLICIT type
da_netcdf_interface.f:8294.31:

cdfid = ncopn(file, NCNOWRIT, rcode)
1
Error: Symbol 'ncnowrit' at (1) has no IMPLICIT type
da_netcdf_interface.f:7077.31:

cdfid = ncopn(file, NCNOWRIT, rcode)
1
Error: Symbol 'ncnowrit' at (1) has no IMPLICIT type
da_netcdf_interface.f:5857.31:

cdfid = ncopn(file, NCNOWRIT, rcode)
1
Error: Symbol 'ncnowrit' at (1) has no IMPLICIT type
da_netcdf_interface.f:4666.31:

cdfid = ncopn(file, NCNOWRIT, rcode)
1
Error: Symbol 'ncnowrit' at (1) has no IMPLICIT type
da_netcdf_interface.f:3502.31:

cdfid = ncopn(file, NCNOWRIT, rcode)
1
Error: Symbol 'ncnowrit' at (1) has no IMPLICIT type
da_netcdf_interface.f:2337.31:

cdfid = ncopn(file, NCNOWRIT, rcode)
1
Error: Symbol 'ncnowrit' at (1) has no IMPLICIT type
da_netcdf_interface.f:1149.31:

cdfid = ncopn(file, NCNOWRIT, rcode)
1
Error: Symbol 'ncnowrit' at (1) has no IMPLICIT type
da_netcdf_interface.f:17849.13:

id_time = ncvid(cdfid, varnam, rcode)
1
Error: Function 'ncvid' at (1) has no IMPLICIT type
da_netcdf_interface.f:13142.13:

id_data = ncvid(cdfid, var, rcode)
1
Error: Function 'ncvid' at (1) has no IMPLICIT type
da_netcdf_interface.f:11938.13:

id_data = ncvid(cdfid, var, rcode)
1
Error: Function 'ncvid' at (1) has no IMPLICIT type
da_netcdf_interface.f:10732.13:

id_data = ncvid(cdfid, var, rcode)
1
Error: Function 'ncvid' at (1) has no IMPLICIT type
da_netcdf_interface.f:9514.13:

id_data = ncvid(cdfid, var, rcode)
1
Error: Function 'ncvid' at (1) has no IMPLICIT type
da_netcdf_interface.f:8301.13:

id_data = ncvid(cdfid, var, rcode)
1
Error: Function 'ncvid' at (1) has no IMPLICIT type
da_netcdf_interface.f:7084.13:

id_data = ncvid(cdfid, var, rcode)
1
Error: Function 'ncvid' at (1) has no IMPLICIT type
da_netcdf_interface.f:5864.13:

id_data = ncvid(cdfid, var, rcode)
1
Error: Function 'ncvid' at (1) has no IMPLICIT type
da_netcdf_interface.f:2346.13:

id_time = ncvid(cdfid, var, rcode)
1
Error: Function 'ncvid' at (1) has no IMPLICIT type
da_netcdf_interface.f:1158.13:

id_time = ncvid(cdfid, 'Times', rcode)
1
Error: Function 'ncvid' at (1) has no IMPLICIT type
da.make:320: recipe for target 'da_netcdf_interface.o' failed
make[1]: [da_netcdf_interface.o] Error 1 (ignored)
rm -f module_get_file_names.o
.......................................................................................................
use da_netcdf_interface, only : da_get_var_3d_real_cdf, &
1
Fatal Error: Can't open module file 'da_netcdf_interface.mod' for reading at (1): No such file or directory
da.make:312: recipe for target 'da_update_bc.o' failed
make[1]: [da_update_bc.o] Error 1 (ignored)
..........................................................................................
use da_netcdf_interface, only : da_get_var_3d_real_cdf, &
1
Fatal Error: Can't open module file 'da_netcdf_interface.mod' for reading at (1): No such file or directory
da.make:305: recipe for target 'da_update_bc_ad.o' failed
make[1]: [da_update_bc_ad.o] Error 1 (ignored)
rm -f da_gen_be.o
.......................................................................................
LIBRARIES/netcdf/lib -lnetcdff -lnetcdf
gfortran: error: da_verif_grid.o: No such file or directory
gfortran: error: da_netcdf_interface.o: No such file or directory
da.make:206: recipe for target 'da_verif_grid.exe' failed
make[1]: [da_verif_grid.exe] Error 1 (ignored)

.............................................................................................
gfortran: error: da_update_bc_ad.o: No such file or directory
gfortran: error: da_netcdf_interface.o: No such file or directory
da.make:231: recipe for target 'da_update_bc_ad.exe' failed
make[1]: [da_update_bc_ad.exe] Error 1 (ignored)
.................................................................................................
da_gen_be.o: In function `__da_gen_be_MOD_da_get_field':
da_gen_be.f:(.text+0x107a3): undefined reference to `ncvgt_'
da_gen_be.f:(.text+0x10b57): undefined reference to `ncvgt_'
da_gen_be.f:(.text+0x11008): undefined reference to `ncvgt_'
collect2: error: ld returned 1 exit status
gen_be.make:58: recipe for target 'gen_be_stage0_wrf.exe' failed
make[1]: [gen_be_stage0_wrf.exe] Error 1 (ignored)
...............................................................................................................
gen_be.make:104: recipe for target 'gen_be_ep2.exe' failed
make[1]: [gen_be_ep2.exe] Error 1 (ignored)
rm -f module_comm_dm_4.o
.............................................................................................................................................
time mpif90 -f90=gfortran -c -O2 -ftree-vectorize -funroll-loops -w -ffree-form -ffree-line-length-none -fconvert=big-endian -frecord-marker=4 -fdefault-real-8 -I../external/crtm_2.2.3/libsrc -I/opt/MiWrf_391/Build_wrf/LIBRARIES/netcdf/include da_wrfvar_top.f ; \
fi
da_wrfvar_top.f:98.7:

use da_netcdf_interface, only : da_get_var_2d_real_cdf
1
Fatal Error: Can't open module file 'da_netcdf_interface.mod' for reading at (1): No such file or directory

real 0m0.908s
user 0m0.878s
sys 0m0.030s
da.make:360: recipe for target 'da_wrfvar_top.o' failed
make[1]: [da_wrfvar_top.o] Error 1 (ignored)
rm -f libwrfvar.a
rm -f da_wrfvar_main.o
..........................................................................................................................
makefile:53: recipe for target 'libwrfvar.a' failed
make[1]: [libwrfvar.a] Error 1 (ignored)
ranlib libwrfvar.a
/lib/cpp -P -nostdinc -DEM_CORE=1 -DNMM_CORE=0 -DNMM_MAX_DIM=2600 -DCOAMPS_CORE=0 -DDA_CORE=1 -DEXP_CORE=0 -DIWORDSIZE=4 -DDWORDSIZE=8 -DRWORDSIZE=8 -DLWORDSIZE=4 -DNONSTANDARD_SYSTEM_SUBR -DWRF_USE_CLM -DNO_IEEE_MODULE -DBUFR -DFFTPACK -DNORESHAPE -DDM_PARALLEL -DNETCDF -DCRTM -DUSE_ALLOCATABLES -DGRIB1 -DINTIO -DKEEP_INT_AROUND -DLIMIT_ARGS -DCONFIG_BUF_LEN=65536 -DMAX_DOMAINS_F=21 -DMAX_HISTORY=25 -DNMM_NEST=0 -I. -traditional-cpp -I/opt/MiWrf_391/Build_wrf/WRFDA/inc da_wrfvar_main.b > da_wrfvar_main.f
ranlib: 'libwrfvar.a': No such file
makefile:53: recipe for target 'libwrfvar.a' failed
make[1]: [libwrfvar.a] Error 1 (ignored)
rm -f da_wrfvar_main.b
.......................................................................................................................
time mpif90 -f90=gfortran -c -O2 -ftree-vectorize -funroll-loops -w -ffree-form -ffree-line-length-none -fconvert=big-endian -frecord-marker=4 -fdefault-real-8 -I../external/crtm_2.2.3/libsrc -I/opt/MiWrf_391/Build_wrf/LIBRARIES/netcdf/include da_wrfvar_main.f ; \
fi
da_wrfvar_main.f:18.7:

use da_wrfvar_top, only : da_wrfvar_init1,da_wrfvar_init2,da_wrfvar_run, &
1
Fatal Error: Can't open module file 'da_wrfvar_top.mod' for reading at (1): No such file or directory

real 0m0.040s
user 0m0.030s
sys 0m0.012s
da.make:360: recipe for target 'da_wrfvar_main.o' failed
make[1]: [da_wrfvar_main.o] Error 1 (ignored)
rm -f da_wrfvar.exe
gfortran: error: da_wrfvar_main.o: No such file or directory

real 0m0.036s
user 0m0.008s
sys 0m0.029s
da.make:164: recipe for target 'da_wrfvar.exe' failed
make[1]: [da_wrfvar.exe] Error 1 (ignored)
.......................................................................................
Thanks,
Gerardo Montoya full professor (retired) Universidad Nacional de Colombia
gerardo
 
Posts: 1
Joined: Sat Mar 23, 2019 8:25 am

Return to Installation

Who is online

Users browsing this forum: No registered users and 1 guest

cron