Compiling WRF-ARW decoder

Post questions and find resources to convert meteorological data into a format HYSPLIT can read.
Post Reply
federica
Posts: 31
Joined: November 12th, 2014, 5:17 pm
Registered HYSPLIT User: Yes

Compiling WRF-ARW decoder

Post by federica »

Hello,

I' trying to build HYSPLIT source code with WRF. In orderd to do this I've compiled WRF following this link:

http://www2.mmm.ucar.edu/wrf/OnLineTuto ... torial.php

and the setting for my NETCDF libraries is the following:

export DIR= path_to_directory/Build_WRF/LIBRARIES
export CC = gcc
export CXX = g++
export FC = gfortran
export FCFLAGS = -m64
export F77 = gfortran
export FFLAGS = -m64

I've change NETINC NETLIB in the arw2arl and cmap Makefile and also in the compile.sh according to the path of NETCDF libraries. However I cannot compile HYSPLIT. Is there anything I need to change? Do I need to install the NETCDF fortran libraries?

Many thanks for any help you can give me.

Best Regards

Federica
Fantine
Posts: 107
Joined: November 8th, 2012, 3:41 pm

Re: Compiling WRF-ARW decoder

Post by Fantine »

Compiling HYSPLIT is NOT dependent on the compilation of WRF. The WRF-ARW decoder reads the WRF output that is why it needs the NETCDF library.

Please check if your NETCDF library were installed successfully using the SAME fortran compiler used for compiling HYSPLIT. For example, if you desire to use gfortran to compile HYSPLIT, you need to install NETCDF using gfortran on your machine.
federica
Posts: 31
Joined: November 12th, 2014, 5:17 pm
Registered HYSPLIT User: Yes

Re: Compiling WRF-ARW decoder

Post by federica »

Hello,

thanks for your answer. These are the features of the netCDF libraries I've built:

--cc -> gcc
--cflags -> -I/home/pardini/Build_WRF/LIBRARIES/netcdf/include
--libs -> -L/home/pardini/Build_WRF/LIBRARIES/netcdf/lib -lnetcdf -lm

--cxx -> g++
--has-c++ -> yes

--fc -> gfortran
--fflags -> -m64 -I/home/pardini/Build_WRF/LIBRARIES/netcdf/include
--flibs -> -L/home/pardini/Build_WRF/LIBRARIES/netcdf/lib -lnetcdff -lnetcdf -lm
--has-f77 -> yes
--has-f90 -> yes

--has-dap -> no
--has-nc2 -> yes
--has-nc4 -> no
--has-hdf5 -> no
--has-hdf4 -> no
--has-pnetcdf-> no
--has-szlib ->

--prefix -> /home/pardini/Build_WRF/LIBRARIES/netcdf
--includedir-> /home/pardini/Build_WRF/LIBRARIES/netcdf/include
--version -> netCDF 4.1.3

Attached there is the compile.log with the error I get when I try to compile HYSPLIT.

Many thanks

Regards

Federica
Fantine
Posts: 107
Joined: November 8th, 2012, 3:41 pm

Re: Compiling WRF-ARW decoder

Post by Fantine »

Would you please post or upload the log file of the HYSPLIT installation?
federica
Posts: 31
Joined: November 12th, 2014, 5:17 pm
Registered HYSPLIT User: Yes

Re: Compiling WRF-ARW decoder

Post by federica »

***/home/pardini/Desktop/hysplit/trunk/data2arl/arw2arl
rm -f ../../exec/arw2arl
rm -f libarw.a
for member in cfgrec.f cfgvar.f get1dv.f get2dv.f get3dv.f get4dv.f getdim.f setmap.f setvar.f; do make member MODULE=$member;done
make[1]: Entering directory `/home/pardini/Desktop/hysplit/trunk/data2arl/arw2arl'
gfortran -c -O2 -fconvert=big-endian -frecord-marker=4 -ffree-form -I/home/pardini/Build_WRF/LIBRARIES/netcdf/include cfgrec.f
ar -vr libarw.a cfgrec.o
ar: creating libarw.a
a - cfgrec.o
ranlib libarw.a
rm -f cfgrec.o
make[1]: Leaving directory `/home/pardini/Desktop/hysplit/trunk/data2arl/arw2arl'
make[1]: Entering directory `/home/pardini/Desktop/hysplit/trunk/data2arl/arw2arl'
gfortran -c -O2 -fconvert=big-endian -frecord-marker=4 -ffree-form -I/home/pardini/Build_WRF/LIBRARIES/netcdf/include cfgvar.f
ar -vr libarw.a cfgvar.o
a - cfgvar.o
ranlib libarw.a
rm -f cfgvar.o
make[1]: Leaving directory `/home/pardini/Desktop/hysplit/trunk/data2arl/arw2arl'
make[1]: Entering directory `/home/pardini/Desktop/hysplit/trunk/data2arl/arw2arl'
gfortran -c -O2 -fconvert=big-endian -frecord-marker=4 -ffree-form -I/home/pardini/Build_WRF/LIBRARIES/netcdf/include get1dv.f
ar -vr libarw.a get1dv.o
a - get1dv.o
ranlib libarw.a
rm -f get1dv.o
make[1]: Leaving directory `/home/pardini/Desktop/hysplit/trunk/data2arl/arw2arl'
make[1]: Entering directory `/home/pardini/Desktop/hysplit/trunk/data2arl/arw2arl'
gfortran -c -O2 -fconvert=big-endian -frecord-marker=4 -ffree-form -I/home/pardini/Build_WRF/LIBRARIES/netcdf/include get2dv.f
ar -vr libarw.a get2dv.o
a - get2dv.o
ranlib libarw.a
rm -f get2dv.o
make[1]: Leaving directory `/home/pardini/Desktop/hysplit/trunk/data2arl/arw2arl'
make[1]: Entering directory `/home/pardini/Desktop/hysplit/trunk/data2arl/arw2arl'
gfortran -c -O2 -fconvert=big-endian -frecord-marker=4 -ffree-form -I/home/pardini/Build_WRF/LIBRARIES/netcdf/include get3dv.f
ar -vr libarw.a get3dv.o
a - get3dv.o
ranlib libarw.a
rm -f get3dv.o
make[1]: Leaving directory `/home/pardini/Desktop/hysplit/trunk/data2arl/arw2arl'
make[1]: Entering directory `/home/pardini/Desktop/hysplit/trunk/data2arl/arw2arl'
gfortran -c -O2 -fconvert=big-endian -frecord-marker=4 -ffree-form -I/home/pardini/Build_WRF/LIBRARIES/netcdf/include get4dv.f
ar -vr libarw.a get4dv.o
a - get4dv.o
ranlib libarw.a
rm -f get4dv.o
make[1]: Leaving directory `/home/pardini/Desktop/hysplit/trunk/data2arl/arw2arl'
make[1]: Entering directory `/home/pardini/Desktop/hysplit/trunk/data2arl/arw2arl'
gfortran -c -O2 -fconvert=big-endian -frecord-marker=4 -ffree-form -I/home/pardini/Build_WRF/LIBRARIES/netcdf/include getdim.f
ar -vr libarw.a getdim.o
a - getdim.o
ranlib libarw.a
rm -f getdim.o
make[1]: Leaving directory `/home/pardini/Desktop/hysplit/trunk/data2arl/arw2arl'
make[1]: Entering directory `/home/pardini/Desktop/hysplit/trunk/data2arl/arw2arl'
gfortran -c -O2 -fconvert=big-endian -frecord-marker=4 -ffree-form -I/home/pardini/Build_WRF/LIBRARIES/netcdf/include setmap.f
ar -vr libarw.a setmap.o
a - setmap.o
ranlib libarw.a
rm -f setmap.o
make[1]: Leaving directory `/home/pardini/Desktop/hysplit/trunk/data2arl/arw2arl'
make[1]: Entering directory `/home/pardini/Desktop/hysplit/trunk/data2arl/arw2arl'
gfortran -c -O2 -fconvert=big-endian -frecord-marker=4 -ffree-form -I/home/pardini/Build_WRF/LIBRARIES/netcdf/include setvar.f
ar -vr libarw.a setvar.o
a - setvar.o
ranlib libarw.a
rm -f setvar.o
make[1]: Leaving directory `/home/pardini/Desktop/hysplit/trunk/data2arl/arw2arl'
gfortran -o ../../exec/arw2arl -O2 -fconvert=big-endian -frecord-marker=4 -ffree-form -I/home/pardini/Build_WRF/LIBRARIES/netcdf/include arw2arl.f libarw.a -L/home/pardini/Build_WRF/LIBRARIES/netcdf/lib -lnetcdff -L../../library -lhysplit
/home/pardini/Build_WRF/LIBRARIES/netcdf/lib/libnetcdff.a(fort-attio.o): In function `nf_put_att_text_':
/home/pardini/Build_WRF/LIBRARIES/netcdf-4.1.3/fortran/fort-attio.c:14: undefined reference to `nc_put_att_text'
/home/pardini/Build_WRF/LIBRARIES/netcdf/lib/libnetcdff.a(fort-attio.o): In function `nf_get_att_text_':
/home/pardini/Build_WRF/LIBRARIES/netcdf-4.1.3/fortran/fort-attio.c:21: undefined reference to `nc_get_att_text'
/home/pardini/Build_WRF/LIBRARIES/netcdf/lib/libnetcdff.a(fort-attio.o): In function `nf_put_att_int1_':
/home/pardini/Build_WRF/LIBRARIES/netcdf-4.1.3/fortran/fort-attio.c:29: undefined reference to `nc_put_att_schar'
/home/pardini/Build_WRF/LIBRARIES/netcdf/lib/libnetcdff.a(fort-attio.o): In function `nf_get_att_int1_':
/home/pardini/Build_WRF/LIBRARIES/netcdf-4.1.3/fortran/fort-attio.c:47: undefined reference to `nc_get_att_schar'
/home/pardini/Build_WRF/LIBRARIES/netcdf/lib/libnetcdff.a(fort-attio.o): In function `nf_put_att_int2_':
/home/pardini/Build_WRF/LIBRARIES/netcdf-4.1.3/fortran/fort-attio.c:65: undefined reference to `nc_put_att_short'
/home/pardini/Build_WRF/LIBRARIES/netcdf/lib/libnetcdff.a(fort-attio.o): In function `nf_get_att_int2_':
/home/pardini/Build_WRF/LIBRARIES/netcdf-4.1.3/fortran/fort-attio.c:80: undefined reference to `nc_get_att_short'
/home/pardini/Build_WRF/LIBRARIES/netcdf/lib/libnetcdff.a(fort-attio.o): In function `nf_put_att_int_':
/home/pardini/Build_WRF/LIBRARIES/netcdf-4.1.3/fortran/fort-attio.c:95: undefined reference to `nc_put_att_int'
/home/pardini/Build_WRF/LIBRARIES/netcdf/lib/libnetcdff.a(fort-attio.o): In function `nf_get_att_int_':
/home/pardini/Build_WRF/LIBRARIES/netcdf-4.1.3/fortran/fort-attio.c:107: undefined reference to `nc_get_att_int'
/home/pardini/Build_WRF/LIBRARIES/netcdf/lib/libnetcdff.a(fort-attio.o): In function `nf_put_att_real_':
/home/pardini/Build_WRF/LIBRARIES/netcdf-4.1.3/fortran/fort-attio.c:122: undefined reference to `nc_put_att_float'
/home/pardini/Build_WRF/LIBRARIES/netcdf/lib/libnetcdff.a(fort-attio.o): In function `nf_get_att_real_':
/home/pardini/Build_WRF/LIBRARIES/netcdf-4.1.3/fortran/fort-attio.c:134: undefined reference to `nc_get_att_float'
/home/pardini/Build_WRF/LIBRARIES/netcdf/lib/libnetcdff.a(fort-attio.o): In function `nf_put_att_double_':
/home/pardini/Build_WRF/LIBRARIES/netcdf-4.1.3/fortran/fort-attio.c:142: undefined reference to `nc_put_att_double'
/home/pardini/Build_WRF/LIBRARIES/netcdf/lib/libnetcdff.a(fort-attio.o): In function `nf_get_att_double_':
/home/pardini/Build_WRF/LIBRARIES/netcdf-4.1.3/fortran/fort-attio.c:149: undefined reference to `nc_get_att_double'
/home/pardini/Build_WRF/LIBRARIES/netcdf/lib/libnetcdff.a(fort-attio.o): In function `nf_put_att_text_':
/home/pardini/Build_WRF/LIBRARIES/netcdf-4.1.3/fortran/fort-attio.c:14: undefined reference to `nc_put_att_text'
/home/pardini/Build_WRF/LIBRARIES/netcdf/lib/libnetcdff.a(fort-attio.o): In function `nf_get_att_text_':
/home/pardini/Build_WRF/LIBRARIES/netcdf-4.1.3/fortran/fort-attio.c:21: undefined reference to `nc_get_att_text'
/home/pardini/Build_WRF/LIBRARIES/netcdf/lib/libnetcdff.a(fort-attio.o): In function `nf_put_att_int1_':
/home/pardini/Build_WRF/LIBRARIES/netcdf-4.1.3/fortran/fort-attio.c:29: undefined reference to `nc_put_att_schar'
/home/pardini/Build_WRF/LIBRARIES/netcdf/lib/libnetcdff.a(fort-attio.o): In function `nf_get_att_int1_':
/home/pardini/Build_WRF/LIBRARIES/netcdf-4.1.3/fortran/fort-attio.c:47: undefined reference to `nc_get_att_schar'
/home/pardini/Build_WRF/LIBRARIES/netcdf/lib/libnetcdff.a(fort-attio.o): In function `nf_put_att_int2_':
/home/pardini/Build_WRF/LIBRARIES/netcdf-4.1.3/fortran/fort-attio.c:65: undefined reference to `nc_put_att_short'
/home/pardini/Build_WRF/LIBRARIES/netcdf/lib/libnetcdff.a(fort-attio.o): In function `nf_get_att_int2_':
/home/pardini/Build_WRF/LIBRARIES/netcdf-4.1.3/fortran/fort-attio.c:80: undefined reference to `nc_get_att_short'
/home/pardini/Build_WRF/LIBRARIES/netcdf/lib/libnetcdff.a(fort-attio.o): In function `nf_put_att_int_':
/home/pardini/Build_WRF/LIBRARIES/netcdf-4.1.3/fortran/fort-attio.c:95: undefined reference to `nc_put_att_int'
/home/pardini/Build_WRF/LIBRARIES/netcdf/lib/libnetcdff.a(fort-attio.o): In function `nf_get_att_int_':
/home/pardini/Build_WRF/LIBRARIES/netcdf-4.1.3/fortran/fort-attio.c:107: undefined reference to `nc_get_att_int'
/home/pardini/Build_WRF/LIBRARIES/netcdf/lib/libnetcdff.a(fort-attio.o): In function `nf_put_att_real_':
/home/pardini/Build_WRF/LIBRARIES/netcdf-4.1.3/fortran/fort-attio.c:122: undefined reference to `nc_put_att_float'
/home/pardini/Build_WRF/LIBRARIES/netcdf/lib/libnetcdff.a(fort-attio.o): In function `nf_get_att_real_':
/home/pardini/Build_WRF/LIBRARIES/netcdf-4.1.3/fortran/fort-attio.c:134: undefined reference to `nc_get_att_float'
/home/pardini/Build_WRF/LIBRARIES/netcdf/lib/libnetcdff.a(fort-attio.o): In function `nf_put_att_double_':
/home/pardini/Build_WRF/LIBRARIES/netcdf-4.1.3/fortran/fort-attio.c:142: undefined reference to `nc_put_att_double'
/home/pardini/Build_WRF/LIBRARIES/netcdf/lib/libnetcdff.a(fort-attio.o): In function `nf_get_att_double_':
/home/pardini/Build_WRF/LIBRARIES/netcdf-4.1.3/fortran/fort-attio.c:149: undefined reference to `nc_get_att_double'
/home/pardini/Build_WRF/LIBRARIES/netcdf/lib/libnetcdff.a(fort-control.o): In function `nf_create_':
/home/pardini/Build_WRF/LIBRARIES/netcdf-4.1.3/fortran/fort-control.c:13: undefined reference to `nc_create'
/home/pardini/Build_WRF/LIBRARIES/netcdf-4.1.3/fortran/fort-control.c:13: undefined reference to `nc_create'
/home/pardini/Build_WRF/LIBRARIES/netcdf/lib/libnetcdff.a(fort-control.o): In function `nf__create_':
/home/pardini/Build_WRF/LIBRARIES/netcdf-4.1.3/fortran/fort-control.c:20: undefined reference to `nc__create'
/home/pardini/Build_WRF/LIBRARIES/netcdf-4.1.3/fortran/fort-control.c:20: undefined reference to `nc__create'
/home/pardini/Build_WRF/LIBRARIES/netcdf/lib/libnetcdff.a(fort-control.o): In function `nf_open_':
/home/pardini/Build_WRF/LIBRARIES/netcdf-4.1.3/fortran/fort-control.c:27: undefined reference to `nc_open'
/home/pardini/Build_WRF/LIBRARIES/netcdf-4.1.3/fortran/fort-control.c:27: undefined reference to `nc_open'
/home/pardini/Build_WRF/LIBRARIES/netcdf/lib/libnetcdff.a(fort-control.o): In function `nf__open_':
/home/pardini/Build_WRF/LIBRARIES/netcdf-4.1.3/fortran/fort-control.c:34: undefined reference to `nc__open'
/home/pardini/Build_WRF/LIBRARIES/netcdf-4.1.3/fortran/fort-control.c:34: undefined reference to `nc__open'
/home/pardini/Build_WRF/LIBRARIES/netcdf/lib/libnetcdff.a(fort-control.o): In function `nf_set_fill_':
/home/pardini/Build_WRF/LIBRARIES/netcdf-4.1.3/fortran/fort-control.c:41: undefined reference to `nc_set_fill'
/home/pardini/Build_WRF/LIBRARIES/netcdf/lib/libnetcdff.a(fort-control.o): In function `nf_set_default_format_':
/home/pardini/Build_WRF/LIBRARIES/netcdf-4.1.3/fortran/fort-control.c:48: undefined reference to `nc_set_default_format'
/home/pardini/Build_WRF/LIBRARIES/netcdf/lib/libnetcdff.a(fort-control.o): In function `nf_delete_':
/home/pardini/Build_WRF/LIBRARIES/netcdf-4.1.3/fortran/fort-control.c:99: undefined reference to `nc_delete'
/home/pardini/Build_WRF/LIBRARIES/netcdf/lib/libnetcdff.a(fort-control.o): In function `nf__create_mp_':
/home/pardini/Build_WRF/LIBRARIES/netcdf-4.1.3/fortran/fort-control.c:105: undefined reference to `nc__create_mp'
/home/pardini/Build_WRF/LIBRARIES/netcdf-4.1.3/fortran/fort-control.c:105: undefined reference to `nc__create_mp'
/home/pardini/Build_WRF/LIBRARIES/netcdf/lib/libnetcdff.a(fort-control.o): In function `nf__open_mp_':
/home/pardini/Build_WRF/LIBRARIES/netcdf-4.1.3/fortran/fort-control.c:111: undefined reference to `nc__open_mp'
/home/pardini/Build_WRF/LIBRARIES/netcdf-4.1.3/fortran/fort-control.c:111: undefined reference to `nc__open_mp'
/home/pardini/Build_WRF/LIBRARIES/netcdf/lib/libnetcdff.a(fort-control.o): In function `nf_delete_mp_':
/home/pardini/Build_WRF/LIBRARIES/netcdf-4.1.3/fortran/fort-control.c:117: undefined reference to `nc_delete_mp'
/home/pardini/Build_WRF/LIBRARIES/netcdf/lib/libnetcdff.a(fort-control.o): In function `nf_inq_base_pe_':
/home/pardini/Build_WRF/LIBRARIES/netcdf-4.1.3/fortran/fort-control.c:129: undefined reference to `nc_inq_base_pe'
/home/pardini/Build_WRF/LIBRARIES/netcdf/lib/libnetcdff.a(fort-control.o): In function `nf_redef_':
/home/pardini/Build_WRF/LIBRARIES/netcdf-4.1.3/fortran/fort-control.c:55: undefined reference to `nc_redef'
/home/pardini/Build_WRF/LIBRARIES/netcdf/lib/libnetcdff.a(fort-control.o): In function `nf_enddef_':
/home/pardini/Build_WRF/LIBRARIES/netcdf-4.1.3/fortran/fort-control.c:62: undefined reference to `nc_enddef'
/home/pardini/Build_WRF/LIBRARIES/netcdf/lib/libnetcdff.a(fort-control.o): In function `nf__enddef_':
/home/pardini/Build_WRF/LIBRARIES/netcdf-4.1.3/fortran/fort-control.c:69: undefined reference to `nc__enddef'
/home/pardini/Build_WRF/LIBRARIES/netcdf/lib/libnetcdff.a(fort-control.o): In function `nf_sync_':
/home/pardini/Build_WRF/LIBRARIES/netcdf-4.1.3/fortran/fort-control.c:77: undefined reference to `nc_sync'
/home/pardini/Build_WRF/LIBRARIES/netcdf/lib/libnetcdff.a(fort-control.o): In function `nf_abort_':
/home/pardini/Build_WRF/LIBRARIES/netcdf-4.1.3/fortran/fort-control.c:84: undefined reference to `nc_abort'
/home/pardini/Build_WRF/LIBRARIES/netcdf/lib/libnetcdff.a(fort-control.o): In function `nf_close_':
/home/pardini/Build_WRF/LIBRARIES/netcdf-4.1.3/fortran/fort-control.c:91: undefined reference to `nc_close'
/home/pardini/Build_WRF/LIBRARIES/netcdf/lib/libnetcdff.a(fort-control.o): In function `nf_delete_':
/home/pardini/Build_WRF/LIBRARIES/netcdf-4.1.3/fortran/fort-control.c:99: undefined reference to `nc_delete'
/home/pardini/Build_WRF/LIBRARIES/netcdf/lib/libnetcdff.a(fort-control.o): In function `nf_delete_mp_':
/home/pardini/Build_WRF/LIBRARIES/netcdf-4.1.3/fortran/fort-control.c:117: undefined reference to `nc_delete_mp'
/home/pardini/Build_WRF/LIBRARIES/netcdf/lib/libnetcdff.a(fort-control.o): In function `nf_set_base_pe_':
/home/pardini/Build_WRF/LIBRARIES/netcdf-4.1.3/fortran/fort-control.c:123: undefined reference to `nc_set_base_pe'
/home/pardini/Build_WRF/LIBRARIES/netcdf/lib/libnetcdff.a(fort-dim.o): In function `nf_def_dim_':
/home/pardini/Build_WRF/LIBRARIES/netcdf-4.1.3/fortran/fort-dim.c:20: undefined reference to `nc_def_dim'
/home/pardini/Build_WRF/LIBRARIES/netcdf-4.1.3/fortran/fort-dim.c:20: undefined reference to `nc_def_dim'
/home/pardini/Build_WRF/LIBRARIES/netcdf/lib/libnetcdff.a(fort-dim.o): In function `nf_inq_dimid_':
/home/pardini/Build_WRF/LIBRARIES/netcdf-4.1.3/fortran/fort-dim.c:27: undefined reference to `nc_inq_dimid'
/home/pardini/Build_WRF/LIBRARIES/netcdf-4.1.3/fortran/fort-dim.c:27: undefined reference to `nc_inq_dimid'
/home/pardini/Build_WRF/LIBRARIES/netcdf/lib/libnetcdff.a(fort-dim.o): In function `nf_inq_dim_':
/home/pardini/Build_WRF/LIBRARIES/netcdf-4.1.3/fortran/fort-dim.c:34: undefined reference to `nc_inq_dim'
/home/pardini/Build_WRF/LIBRARIES/netcdf/lib/libnetcdff.a(fort-dim.o): In function `nf_inq_dimname_':
/home/pardini/Build_WRF/LIBRARIES/netcdf-4.1.3/fortran/fort-dim.c:41: undefined reference to `nc_inq_dimname'
/home/pardini/Build_WRF/LIBRARIES/netcdf/lib/libnetcdff.a(fort-dim.o): In function `nf_inq_dimlen_':
/home/pardini/Build_WRF/LIBRARIES/netcdf-4.1.3/fortran/fort-dim.c:48: undefined reference to `nc_inq_dimlen'
/home/pardini/Build_WRF/LIBRARIES/netcdf/lib/libnetcdff.a(fort-dim.o): In function `nf_rename_dim_':
/home/pardini/Build_WRF/LIBRARIES/netcdf-4.1.3/fortran/fort-dim.c:55: undefined reference to `nc_rename_dim'
/home/pardini/Build_WRF/LIBRARIES/netcdf-4.1.3/fortran/fort-dim.c:55: undefined reference to `nc_rename_dim'
/home/pardini/Build_WRF/LIBRARIES/netcdf/lib/libnetcdff.a(fort-genvar.o): In function `nf_def_var_':
/home/pardini/Build_WRF/LIBRARIES/netcdf-4.1.3/fortran/fort-genvar.c:20: undefined reference to `nc_def_var'
/home/pardini/Build_WRF/LIBRARIES/netcdf-4.1.3/fortran/fort-genvar.c:20: undefined reference to `nc_def_var'
/home/pardini/Build_WRF/LIBRARIES/netcdf/lib/libnetcdff.a(fort-genvar.o): In function `nf_inq_var_':
/home/pardini/Build_WRF/LIBRARIES/netcdf-4.1.3/fortran/fort-genvar.c:27: undefined reference to `nc_inq_var'
/home/pardini/Build_WRF/LIBRARIES/netcdf/lib/libnetcdff.a(fort-genvar.o): In function `nf_inq_varid_':
/home/pardini/Build_WRF/LIBRARIES/netcdf-4.1.3/fortran/fort-genvar.c:34: undefined reference to `nc_inq_varid'
/home/pardini/Build_WRF/LIBRARIES/netcdf-4.1.3/fortran/fort-genvar.c:34: undefined reference to `nc_inq_varid'
/home/pardini/Build_WRF/LIBRARIES/netcdf/lib/libnetcdff.a(fort-genvar.o): In function `nf_inq_varname_':
/home/pardini/Build_WRF/LIBRARIES/netcdf-4.1.3/fortran/fort-genvar.c:41: undefined reference to `nc_inq_varname'
/home/pardini/Build_WRF/LIBRARIES/netcdf/lib/libnetcdff.a(fort-genvar.o): In function `nf_inq_vartype_':
/home/pardini/Build_WRF/LIBRARIES/netcdf-4.1.3/fortran/fort-genvar.c:48: undefined reference to `nc_inq_vartype'
/home/pardini/Build_WRF/LIBRARIES/netcdf/lib/libnetcdff.a(fort-genvar.o): In function `nf_inq_varndims_':
/home/pardini/Build_WRF/LIBRARIES/netcdf-4.1.3/fortran/fort-genvar.c:55: undefined reference to `nc_inq_varndims'
/home/pardini/Build_WRF/LIBRARIES/netcdf/lib/libnetcdff.a(fort-genvar.o): In function `nf_inq_vardimid_':
/home/pardini/Build_WRF/LIBRARIES/netcdf-4.1.3/fortran/fort-genvar.c:62: undefined reference to `nc_inq_vardimid'
/home/pardini/Build_WRF/LIBRARIES/netcdf/lib/libnetcdff.a(fort-genvar.o): In function `nf_inq_varnatts_':
/home/pardini/Build_WRF/LIBRARIES/netcdf-4.1.3/fortran/fort-genvar.c:69: undefined reference to `nc_inq_varnatts'
/home/pardini/Build_WRF/LIBRARIES/netcdf/lib/libnetcdff.a(fort-genvar.o): In function `nf_rename_var_':
/home/pardini/Build_WRF/LIBRARIES/netcdf-4.1.3/fortran/fort-genvar.c:76: undefined reference to `nc_rename_var'
/home/pardini/Build_WRF/LIBRARIES/netcdf-4.1.3/fortran/fort-genvar.c:76: undefined reference to `nc_rename_var'
/home/pardini/Build_WRF/LIBRARIES/netcdf/lib/libnetcdff.a(fort-genvar.o): In function `nf_copy_var_':
/home/pardini/Build_WRF/LIBRARIES/netcdf-4.1.3/fortran/fort-genvar.c:83: undefined reference to `nc_copy_var'
/home/pardini/Build_WRF/LIBRARIES/netcdf/lib/libnetcdff.a(fort-lib.o): In function `c2f_dimids':
/home/pardini/Build_WRF/LIBRARIES/netcdf-4.1.3/fortran/fort-lib.c:30: undefined reference to `nc_inq_varndims'
/home/pardini/Build_WRF/LIBRARIES/netcdf/lib/libnetcdff.a(fort-lib.o): In function `c2f_chunksizes':
/home/pardini/Build_WRF/LIBRARIES/netcdf-4.1.3/fortran/fort-lib.c:61: undefined reference to `nc_inq_varndims'
/home/pardini/Build_WRF/LIBRARIES/netcdf/lib/libnetcdff.a(fort-lib.o): In function `f2c_chunksizes':
/home/pardini/Build_WRF/LIBRARIES/netcdf-4.1.3/fortran/fort-lib.c:77: undefined reference to `nc_inq_varndims'
/home/pardini/Build_WRF/LIBRARIES/netcdf/lib/libnetcdff.a(fort-lib.o): In function `f2c_coords':
/home/pardini/Build_WRF/LIBRARIES/netcdf-4.1.3/fortran/fort-lib.c:96: undefined reference to `nc_inq_varndims'
/home/pardini/Build_WRF/LIBRARIES/netcdf/lib/libnetcdff.a(fort-lib.o): In function `f2c_counts':
/home/pardini/Build_WRF/LIBRARIES/netcdf-4.1.3/fortran/fort-lib.c:116: undefined reference to `nc_inq_varndims'
/home/pardini/Build_WRF/LIBRARIES/netcdf/lib/libnetcdff.a(fort-lib.o):/home/pardini/Build_WRF/LIBRARIES/netcdf-4.1.3/fortran/fort-lib.c:138: more undefined references to `nc_inq_varndims' follow
/home/pardini/Build_WRF/LIBRARIES/netcdf/lib/libnetcdff.a(fort-misc.o): In function `nf_inq_libvers_':
/home/pardini/Build_WRF/LIBRARIES/netcdf-4.1.3/fortran/fort-misc.c:20: undefined reference to `nc_inq_libvers'
/home/pardini/Build_WRF/LIBRARIES/netcdf/lib/libnetcdff.a(fort-misc.o): In function `nf_strerror_':
/home/pardini/Build_WRF/LIBRARIES/netcdf-4.1.3/fortran/fort-misc.c:36: undefined reference to `nc_strerror'
/home/pardini/Build_WRF/LIBRARIES/netcdf/lib/libnetcdff.a(fort-vario.o): In function `nf_put_var_text_':
/home/pardini/Build_WRF/LIBRARIES/netcdf-4.1.3/fortran/fort-vario.c:22: undefined reference to `nc_put_var_text'
/home/pardini/Build_WRF/LIBRARIES/netcdf/lib/libnetcdff.a(fort-vario.o): In function `nf_get_var_text_':
/home/pardini/Build_WRF/LIBRARIES/netcdf-4.1.3/fortran/fort-vario.c:29: undefined reference to `nc_get_var_text'
/home/pardini/Build_WRF/LIBRARIES/netcdf/lib/libnetcdff.a(fort-vario.o): In function `nf_put_var_int1_':
/home/pardini/Build_WRF/LIBRARIES/netcdf-4.1.3/fortran/fort-vario.c:37: undefined reference to `nc_put_var_schar'
/home/pardini/Build_WRF/LIBRARIES/netcdf/lib/libnetcdff.a(fort-vario.o): In function `nf_get_var_int1_':
/home/pardini/Build_WRF/LIBRARIES/netcdf-4.1.3/fortran/fort-vario.c:55: undefined reference to `nc_get_var_schar'
/home/pardini/Build_WRF/LIBRARIES/netcdf/lib/libnetcdff.a(fort-vario.o): In function `nf_put_var_int2_':
/home/pardini/Build_WRF/LIBRARIES/netcdf-4.1.3/fortran/fort-vario.c:73: undefined reference to `nc_put_var_short'
/home/pardini/Build_WRF/LIBRARIES/netcdf/lib/libnetcdff.a(fort-vario.o): In function `nf_get_var_int2_':
/home/pardini/Build_WRF/LIBRARIES/netcdf-4.1.3/fortran/fort-vario.c:88: undefined reference to `nc_get_var_short'
/home/pardini/Build_WRF/LIBRARIES/netcdf/lib/libnetcdff.a(fort-vario.o): In function `nf_put_var_int_':
/home/pardini/Build_WRF/LIBRARIES/netcdf-4.1.3/fortran/fort-vario.c:103: undefined reference to `nc_put_var_int'
/home/pardini/Build_WRF/LIBRARIES/netcdf/lib/libnetcdff.a(fort-vario.o): In function `nf_get_var_int_':
/home/pardini/Build_WRF/LIBRARIES/netcdf-4.1.3/fortran/fort-vario.c:115: undefined reference to `nc_get_var_int'
/home/pardini/Build_WRF/LIBRARIES/netcdf/lib/libnetcdff.a(fort-vario.o): In function `nf_put_var_real_':
/home/pardini/Build_WRF/LIBRARIES/netcdf-4.1.3/fortran/fort-vario.c:130: undefined reference to `nc_put_var_float'
/home/pardini/Build_WRF/LIBRARIES/netcdf/lib/libnetcdff.a(fort-vario.o): In function `nf_get_var_real_':
/home/pardini/Build_WRF/LIBRARIES/netcdf-4.1.3/fortran/fort-vario.c:142: undefined reference to `nc_get_var_float'
/home/pardini/Build_WRF/LIBRARIES/netcdf/lib/libnetcdff.a(fort-vario.o): In function `nf_put_var_double_':
/home/pardini/Build_WRF/LIBRARIES/netcdf-4.1.3/fortran/fort-vario.c:150: undefined reference to `nc_put_var_double'
/home/pardini/Build_WRF/LIBRARIES/netcdf/lib/libnetcdff.a(fort-vario.o): In function `nf_get_var_double_':
/home/pardini/Build_WRF/LIBRARIES/netcdf-4.1.3/fortran/fort-vario.c:157: undefined reference to `nc_get_var_double'
/home/pardini/Build_WRF/LIBRARIES/netcdf/lib/libnetcdff.a(fort-varaio.o): In function `nf_put_vara_text_':
/home/pardini/Build_WRF/LIBRARIES/netcdf-4.1.3/fortran/fort-varaio.c:22: undefined reference to `nc_put_vara_text'
/home/pardini/Build_WRF/LIBRARIES/netcdf/lib/libnetcdff.a(fort-varaio.o): In function `nf_get_vara_text_':
/home/pardini/Build_WRF/LIBRARIES/netcdf-4.1.3/fortran/fort-varaio.c:29: undefined reference to `nc_get_vara_text'
/home/pardini/Build_WRF/LIBRARIES/netcdf/lib/libnetcdff.a(fort-varaio.o): In function `nf_put_vara_int1_':
/home/pardini/Build_WRF/LIBRARIES/netcdf-4.1.3/fortran/fort-varaio.c:37: undefined reference to `nc_put_vara_schar'
/home/pardini/Build_WRF/LIBRARIES/netcdf/lib/libnetcdff.a(fort-varaio.o): In function `nf_get_vara_int1_':
/home/pardini/Build_WRF/LIBRARIES/netcdf-4.1.3/fortran/fort-varaio.c:55: undefined reference to `nc_get_vara_schar'
/home/pardini/Build_WRF/LIBRARIES/netcdf/lib/libnetcdff.a(fort-varaio.o): In function `nf_put_vara_int2_':
/home/pardini/Build_WRF/LIBRARIES/netcdf-4.1.3/fortran/fort-varaio.c:73: undefined reference to `nc_put_vara_short'
/home/pardini/Build_WRF/LIBRARIES/netcdf/lib/libnetcdff.a(fort-varaio.o): In function `nf_get_vara_int2_':
/home/pardini/Build_WRF/LIBRARIES/netcdf-4.1.3/fortran/fort-varaio.c:88: undefined reference to `nc_get_vara_short'
/home/pardini/Build_WRF/LIBRARIES/netcdf/lib/libnetcdff.a(fort-varaio.o): In function `nf_put_vara_int_':
/home/pardini/Build_WRF/LIBRARIES/netcdf-4.1.3/fortran/fort-varaio.c:103: undefined reference to `nc_put_vara_int'
/home/pardini/Build_WRF/LIBRARIES/netcdf/lib/libnetcdff.a(fort-varaio.o): In function `nf_get_vara_int_':
/home/pardini/Build_WRF/LIBRARIES/netcdf-4.1.3/fortran/fort-varaio.c:115: undefined reference to `nc_get_vara_int'
/home/pardini/Build_WRF/LIBRARIES/netcdf/lib/libnetcdff.a(fort-varaio.o): In function `nf_put_vara_real_':
/home/pardini/Build_WRF/LIBRARIES/netcdf-4.1.3/fortran/fort-varaio.c:130: undefined reference to `nc_put_vara_float'
/home/pardini/Build_WRF/LIBRARIES/netcdf/lib/libnetcdff.a(fort-varaio.o): In function `nf_get_vara_real_':
/home/pardini/Build_WRF/LIBRARIES/netcdf-4.1.3/fortran/fort-varaio.c:142: undefined reference to `nc_get_vara_float'
/home/pardini/Build_WRF/LIBRARIES/netcdf/lib/libnetcdff.a(fort-varaio.o): In function `nf_put_vara_double_':
/home/pardini/Build_WRF/LIBRARIES/netcdf-4.1.3/fortran/fort-varaio.c:150: undefined reference to `nc_put_vara_double'
/home/pardini/Build_WRF/LIBRARIES/netcdf/lib/libnetcdff.a(fort-varaio.o): In function `nf_get_vara_double_':
/home/pardini/Build_WRF/LIBRARIES/netcdf-4.1.3/fortran/fort-varaio.c:157: undefined reference to `nc_get_vara_double'
/home/pardini/Build_WRF/LIBRARIES/netcdf/lib/libnetcdff.a(fort-varaio.o): In function `nf_put_vara_':
/home/pardini/Build_WRF/LIBRARIES/netcdf-4.1.3/fortran/fort-varaio.c:160: undefined reference to `nc_put_vara'
/home/pardini/Build_WRF/LIBRARIES/netcdf/lib/libnetcdff.a(fort-varaio.o): In function `nf_get_vara_':
/home/pardini/Build_WRF/LIBRARIES/netcdf-4.1.3/fortran/fort-varaio.c:163: undefined reference to `nc_get_vara'
collect2: error: ld returned 1 exit status
make: *** [arw2arl] Error 1
federica
Posts: 31
Joined: November 12th, 2014, 5:17 pm
Registered HYSPLIT User: Yes

Re: Compiling WRF-ARW decoder

Post by federica »

Hello,

I think I solved the problem changing this line in the Makefile:
LINKS = -L$(NETLIB) -lnetcdff -L../../library -lhysplit
into:
LINKS = -L$(NETLIB) -lnetcdff -lnetcdf -lz -L../../library -lhysplit

now the executable arw2arl is created.

Federica
Post Reply