Page 1 of 1

WRF-hydro compilation error

PostPosted: Fri Jul 10, 2015 3:54 am
by pramodsoni41
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

Re: WRF-hydro compilation error

PostPosted: Thu Jul 23, 2015 12:51 am
by winash12
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.

Re: WRF-hydro compilation error

PostPosted: Tue Jul 28, 2015 1:38 am
by pramodsoni41
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?

Re: WRF-hydro compilation error

PostPosted: Wed Apr 06, 2016 3:43 pm
by tiantian
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.

Re: WRF-hydro compilation error

PostPosted: Tue Jan 03, 2017 3:18 am
by amitsac
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