WRF-hydro compilation error

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

WRF-hydro compilation error

Postby pramodsoni41 » Fri Jul 10, 2015 3:54 am

I am trying to compile WRF 3.7 with hydro3 using gfortran (dmpr) with netcdf 3.6.2 and 4.0.1 both. I am getting this particular error.

"undefined reference to `nf_get_var_real_'"

as given below.

Could anyone please help me resolve this error

mpif90 -f90=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/pramods/WRF3.6/gfortran_$
../hydro/lib/libHYDRO.a(module_HYDRO_utils.o): In function `__module_hydro_utils_MOD_get2d_real':
module_HYDRO_utils.f:(.text+0x3d21): undefined reference to `nf_get_var_real_'

Thank you
pramodsoni41
 
Posts: 8
Joined: Fri May 24, 2013 1:13 am

Re: WRF-hydro compilation error

Postby winash12 » Thu Jul 23, 2015 12:51 am

It is a linking problem. Do a nfconfig --help and see the linking options for your system and include the linking options in the Makefile.
winash12
 
Posts: 37
Joined: Thu May 29, 2014 2:56 am

Re: WRF-hydro compilation error

Postby pramodsoni41 » Tue Jul 28, 2015 1:38 am

Thank you for the reply. I had to compile it using netcdf4.4 and it got compiled.

But I am unable to run it in coupled mode

rsl file says

d01 2013-09-11_00:00:00 calling inc/HALO_PWP_inline.inc
d01 2013-09-11_00:00:00 call surface_driver
d01 2013-09-11_00:00:00 in SFCLAY
d01 2013-09-11_00:00:00 in NOAH DRV

After this model just stops. Do you have any idea about this?
pramodsoni41
 
Posts: 8
Joined: Fri May 24, 2013 1:13 am

Re: WRF-hydro compilation error

Postby tiantian » Wed Apr 06, 2016 3:43 pm

pramodsoni41 wrote:Thank you for the reply. I had to compile it using netcdf4.4 and it got compiled.

But I am unable to run it in coupled mode

rsl file says

d01 2013-09-11_00:00:00 calling inc/HALO_PWP_inline.inc
d01 2013-09-11_00:00:00 call surface_driver
d01 2013-09-11_00:00:00 in SFCLAY
d01 2013-09-11_00:00:00 in NOAH DRV

After this model just stops. Do you have any idea about this?


Hi, I am having the exact same issue. I am wondering have you ever found out why this happened? For me, both WRF and the uncoupled wrf-hydro runs fine, however, when I run the coupled wrf-hydro, the model stops at the exact same place as yours.

Please let me know if you have any suggestions. Thanks.
tiantian
 
Posts: 1
Joined: Wed Apr 06, 2016 3:37 pm

Re: WRF-hydro compilation error

Postby amitsac » Tue Jan 03, 2017 3:18 am

Hello,
I have compiled the model with intel-fortran compiler. I guess there are some bugs when you try to compile it with gfortran. But when I try to run it with sample data provided by NCAR for the fully coupled mode, the model stuck at terrain routing. I have tried everything but no luck, if anyone has solved it please let me know. Thnaks the error is given below.

INITIALIZE THREE Noah LSM RELATED TABLES
Tile Strategy is not specified. Assuming 1D-Y
WRF TILE 1 IS 13 IE 24 JS 1 JE 5
WRF NUMBER OF TILES = 1
Tile Strategy is not specified. Assuming 1D-Y
WRF TILE 1 IS 18 IE 34 JS 1 JE 9
WRF NUMBER OF TILES = 1
forrtl: error (69): process interrupted (SIGINT)
Image PC Routine Line Source
wrf.exe 0000000002C75075 Unknown Unknown Unknown
wrf.exe 0000000002C72E37 Unknown Unknown Unknown
wrf.exe 0000000002C140E4 Unknown Unknown Unknown
wrf.exe 0000000002C13EF6 Unknown Unknown Unknown
wrf.exe 0000000002BA00E6 Unknown Unknown Unknown
amitsac
 
Posts: 2
Joined: Mon Jan 02, 2017 5:20 am


Return to Installation

Who is online

Users browsing this forum: Baidu [Spider] and 2 guests