[Wrf-users] WRFV3 compilation errors

Kemp, Eric M. (GSFC-610.3)[SCIENCE SYSTEMS AND APPLICATIONS INC] eric.kemp at nasa.gov
Mon May 6 11:50:13 MDT 2013


Not quite.  WRF 3.4.1 doesn't support the "new" netCDF4 features that require HDF5.  But you can still compile netCDF4.1.3 in classic mode (w/o HDF5) and link WRF to it.

Going back to the original problem:  Was the same compiler used to build netCDF and WRF?

-Eric

--------------------------------------------------------------------
Eric M. Kemp                   Goddard Space Flight Center
Chief Programmer/Analyst       Mailstop 610.3
SSAI                           Greenbelt, MD 20771
                               Telephone:  301-286-9768
                               E-mail:     eric.kemp at nasa.gov
                               E-mail:     eric.kemp at ssaihq.com
--------------------------------------------------------------------


From: Juan Camilo Hernandez Diaz <camilo.hernandez at gmail.com<mailto:camilo.hernandez at gmail.com>>
Reply-To: "camilo.hernandez at gmail.com<mailto:camilo.hernandez at gmail.com>" <camilo.hernandez at gmail.com<mailto:camilo.hernandez at gmail.com>>
Date: Monday, May 6, 2013 12:24 PM
To: "wrf-users at ucar.edu<mailto:wrf-users at ucar.edu>" <wrf-users at ucar.edu<mailto:wrf-users at ucar.edu>>
Subject: Re: [Wrf-users] WRFV3 compilation errors

This version of the model does not support NetCDF 4.x, You must install the version 3.6.x.

-----
Juan Camilo Hernández Díaz
Grupo de Oceanografía e Ingeniería Costera - OCEANICOS
Facultad de Minas - Universidad Nacional de Colombia
Oficina M8b - 9911
http://www.jkoyo.net<http://www.jkoyo.net/>


On Fri, Apr 26, 2013 at 4:16 PM, Luis Fernando Montana Roa <lfmontanar at unal.edu.co<mailto:lfmontanar at unal.edu.co>> wrote:
Hi, I want to install WRF-ARW 3.4.1 on a cluster with CentOS 6.4, gfortran compiler 4.4.7, netcdf 4.1.3, mpich2 1.2.1

"uname -a": Linux localhost 2.6.32-358.0.1.el6.x86_64 #1 SMP Wed Feb 27 06:06:45 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux

When I compile em_real, There are some errorrs:

...
make[2]: Entering directory `/state/partition1/wrf/WRFV3/external/io_netcdf'
x=`echo "gfortran -w -ffree-form -ffree-line-length-none -fconvert=big-endian -frecord-marker=4 " | awk '{print $1}'` ; export x ; \
if [ $x = "gfortran" ] ; then \
           echo removing external declaration of iargc for gfortran ; \
  /lib/cpp -C -P -C -P -traditional -I/usr/local/netcdf/include -I../ioapi_share diffwrf.F90 | sed '/integer *, *external.*iargc/d' > diffwrf.f ;\
        else \
  /lib/cpp -C -P -C -P -traditional -I/usr/local/netcdf/include -I../ioapi_share diffwrf.F90 > diffwrf.f ; \
        fi
removing external declaration of iargc for gfortran
gfortran -w -ffree-form -ffree-line-length-none -fconvert=big-endian -frecord-marker=4  -c  -I/usr/local/netcdf/include -I../ioapi_share diffwrf.f
diffwrf io_netcdf is being built now.
wrf_io.o: In function `ext_ncd_get_var_info_':
wrf_io.f:(.text+0x1fe7): undefined reference to `nf_inq_varid_'

...

/usr/local/netcdf/lib/libnetcdff.so: undefined reference to `nf_get_varm_double_'
/usr/local/netcdf/lib/libnetcdff.so: undefined reference to `nf_def_var_endian_'
/usr/local/netcdf/lib/libnetcdff.so: undefined reference to `nf_inq_compound_fieldname_'
/usr/local/netcdf/lib/libnetcdff.so: undefined reference to `nf_inq_typeid_'
/usr/local/netcdf/lib/libnetcdff.so: undefined reference to `nf_put_varm_int1_'
...


Any suggestions?
Thanks in advance

--
Fernando

_______________________________________________
Wrf-users mailing list
Wrf-users at ucar.edu<mailto:Wrf-users at ucar.edu>
http://mailman.ucar.edu/mailman/listinfo/wrf-users


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/wrf-users/attachments/20130506/1eafc62c/attachment.html 


More information about the Wrf-users mailing list