<div dir="ltr">Hi Tabish,<div><br></div><div>thanks for your quick reply.</div><div><br></div><div>I have a working installation using the tutorial configuration, with mpi but serial output only (io_form_history 2).</div><div><br></div><div>I am interested in building WRF with parallel IO (using parallel NETCDF4 is possible, or using parallel netcdf and PHDF5 otherwise, i.e. io_form_history 4 or 11). I understand from the manual that PHDF5 and PNETCDF are supported, I am not clear about parallel NETCDF4.</div><div><br></div><div>I had a look at the NETCDF4 test performed by configure script. The line</div><div><br></div><div><font face="monospace, monospace">make nc4_test > tools/nc4_test.log 2>&1</font><br></div><div><br></div><div>corresponding to</div><div><br></div><div><font face="monospace, monospace">gcc -o nc4_test.exe nc4_test.c -I/home/gianlu/software/netcdf-4.3.3.1/netcdf/include -L/home/gianlu/software/netcdf-4.3.3.1/netcdf/lib -lnetcdf<br></font></div><div><br></div><div>fails. But if I replace the gcc command including mpi, pnetcdf and hdf5</div><div><br></div><div><font face="monospace, monospace">mpicc -o nc4_test.exe nc4_test.c -L/home/gianlu/software/netcdf-4.3.3.1/netcdf/lib -L/home/gianlu/software/parallel-netcdf-1.6.1/pnetcdf/lib -L/home/gianlu/software/hdf5-1.8.16/phdf5/lib -lnetcdf -lpnetcdf -lhdf5_hl -lhdf5 -ldl -lm -lz<br></font></div><div><br></div><div>the test compiles correctly.</div><div><br></div><div>Is there any specific instruction for compiling with PHDF5 support and NETCDF4?</div><div><br></div><div>I attach the output of the unmodified ./configure</div><div><br></div><div>Thanks for your help</div><div><br></div><div>Gianluca</div><div><br></div><div><br></div><div><div><font face="monospace, monospace">checking for perl5... no</font></div><div><font face="monospace, monospace">checking for perl... found /usr/bin/perl (perl)</font></div><div><font face="monospace, monospace">Will use NETCDF in dir: /home/gianlu/software/netcdf-4.3.3.1/netcdf</font></div><div><font face="monospace, monospace">Will use PNETCDF in dir: /home/gianlu/software/parallel-netcdf-1.6.1/pnetcdf</font></div><div><font face="monospace, monospace">Will use PHDF5 in dir: /home/gianlu/software/hdf5-1.8.16/phdf5</font></div><div><font face="monospace, monospace">Will use 'time' to report timing information</font></div><div><font face="monospace, monospace">$JASPERLIB or $JASPERINC not found in environment, configuring to build without grib2 I/O...</font></div><div><font face="monospace, monospace">------------------------------------------------------------------------</font></div><div><font face="monospace, monospace">Please select from among the following Linux x86_64 options:</font></div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace"> 1. (serial) 2. (smpar) 3. (dmpar) 4. (dm+sm) PGI (pgf90/gcc)</font></div><div><font face="monospace, monospace"> 5. (serial) 6. (smpar) 7. (dmpar) 8. (dm+sm) PGI (pgf90/pgcc): SGI MPT</font></div><div><font face="monospace, monospace"> 9. (serial) 10. (smpar) 11. (dmpar) 12. (dm+sm) PGI (pgf90/gcc): PGI accelerator</font></div><div><font face="monospace, monospace"> 13. (serial) 14. (smpar) 15. (dmpar) 16. (dm+sm) INTEL (ifort/icc)</font></div><div><font face="monospace, monospace"> 17. (dm+sm) INTEL (ifort/icc): Xeon Phi (MIC architecture)</font></div><div><font face="monospace, monospace"> 18. (serial) 19. (smpar) 20. (dmpar) 21. (dm+sm) INTEL (ifort/icc): Xeon (SNB with AVX mods)</font></div><div><font face="monospace, monospace"> 22. (serial) 23. (smpar) 24. (dmpar) 25. (dm+sm) INTEL (ifort/icc): SGI MPT</font></div><div><font face="monospace, monospace"> 26. (serial) 27. (smpar) 28. (dmpar) 29. (dm+sm) INTEL (ifort/icc): IBM POE</font></div><div><font face="monospace, monospace"> 30. (serial) 31. (dmpar) PATHSCALE (pathf90/pathcc)</font></div><div><font face="monospace, monospace"> 32. (serial) 33. (smpar) 34. (dmpar) 35. (dm+sm) GNU (gfortran/gcc)</font></div><div><font face="monospace, monospace"> 36. (serial) 37. (smpar) 38. (dmpar) 39. (dm+sm) IBM (xlf90_r/cc_r)</font></div><div><font face="monospace, monospace"> 40. (serial) 41. (smpar) 42. (dmpar) 43. (dm+sm) PGI (ftn/gcc): Cray XC CLE</font></div><div><font face="monospace, monospace"> 44. (serial) 45. (smpar) 46. (dmpar) 47. (dm+sm) CRAY CCE (ftn/gcc): Cray XE and XC</font></div><div><font face="monospace, monospace"> 48. (serial) 49. (smpar) 50. (dmpar) 51. (dm+sm) INTEL (ftn/icc): Cray XC</font></div><div><font face="monospace, monospace"> 52. (serial) 53. (smpar) 54. (dmpar) 55. (dm+sm) PGI (pgf90/pgcc)</font></div><div><font face="monospace, monospace"> 56. (serial) 57. (smpar) 58. (dmpar) 59. (dm+sm) PGI (pgf90/gcc): -f90=pgf90</font></div><div><font face="monospace, monospace"> 60. (serial) 61. (smpar) 62. (dmpar) 63. (dm+sm) PGI (pgf90/pgcc): -f90=pgf90</font></div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace">Enter selection [1-63] : 34</font></div><div><font face="monospace, monospace">------------------------------------------------------------------------</font></div><div><font face="monospace, monospace">Compile for nesting? (1=basic, 2=preset moves, 3=vortex following) [default 1]: 3</font></div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace">Configuration successful!</font></div><div><font face="monospace, monospace">------------------------------------------------------------------------</font></div><div><font face="monospace, monospace">testing for MPI_Comm_f2c and MPI_Comm_c2f</font></div><div><font face="monospace, monospace"> MPI_Comm_f2c and MPI_Comm_c2f are supported</font></div><div><font face="monospace, monospace">testing for fseeko and fseeko64</font></div><div><font face="monospace, monospace">fseeko64 is supported</font></div><div><font face="monospace, monospace">------------------------------------------------------------------------</font></div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace"># Settings for Linux x86_64 ppc64le, gfortran compiler with gcc (dmpar)</font></div><div><font face="monospace, monospace">#</font></div><div><font face="monospace, monospace">DESCRIPTION = GNU ($SFC/$SCC)</font></div><div><font face="monospace, monospace">DMPARALLEL = 1</font></div><div><font face="monospace, monospace">OMPCPP = # -D_OPENMP</font></div><div><font face="monospace, monospace">OMP = # -fopenmp</font></div><div><font face="monospace, monospace">OMPCC = # -fopenmp</font></div><div><font face="monospace, monospace">SFC = gfortran</font></div><div><font face="monospace, monospace">SCC = gcc</font></div><div><font face="monospace, monospace">CCOMP = gcc</font></div><div><font face="monospace, monospace">DM_FC = mpif90 -f90=$(SFC)</font></div><div><font face="monospace, monospace">DM_CC = mpicc -cc=$(SCC) -DMPI2_SUPPORT</font></div><div><font face="monospace, monospace">FC = time $(DM_FC)</font></div><div><font face="monospace, monospace">CC = $(DM_CC) -DFSEEKO64_OK</font></div><div><font face="monospace, monospace">LD = $(FC)</font></div><div><font face="monospace, monospace">RWORDSIZE = $(NATIVE_RWORDSIZE)</font></div><div><font face="monospace, monospace">PROMOTION = #-fdefault-real-8</font></div><div><font face="monospace, monospace">ARCH_LOCAL = -DNONSTANDARD_SYSTEM_SUBR -DWRF_USE_CLM $(NETCDF4_IO_OPTS)</font></div><div><font face="monospace, monospace">CFLAGS_LOCAL = -w -O3 -c</font></div><div><font face="monospace, monospace">LDFLAGS_LOCAL =</font></div><div><font face="monospace, monospace">CPLUSPLUSLIB =</font></div><div><font face="monospace, monospace">ESMF_LDFLAG = $(CPLUSPLUSLIB)</font></div><div><font face="monospace, monospace">FCOPTIM = -O2 -ftree-vectorize -funroll-loops</font></div><div><font face="monospace, monospace">FCREDUCEDOPT<span class="" style="white-space:pre">        </span>= $(FCOPTIM)</font></div><div><font face="monospace, monospace">FCNOOPT<span class="" style="white-space:pre">                </span>= -O0</font></div><div><font face="monospace, monospace">FCDEBUG = # -g $(FCNOOPT) # -ggdb -fbacktrace -fbounds-check -ffpe-trap=invalid,zero,overflow</font></div><div><font face="monospace, monospace">FORMAT_FIXED = -ffixed-form</font></div><div><font face="monospace, monospace">FORMAT_FREE = -ffree-form -ffree-line-length-none</font></div><div><font face="monospace, monospace">FCSUFFIX =</font></div><div><font face="monospace, monospace">BYTESWAPIO = -fconvert=big-endian -frecord-marker=4</font></div><div><font face="monospace, monospace">FCBASEOPTS_NO_G = -w $(FORMAT_FREE) $(BYTESWAPIO)</font></div><div><font face="monospace, monospace">FCBASEOPTS = $(FCBASEOPTS_NO_G) $(FCDEBUG)</font></div><div><font face="monospace, monospace">MODULE_SRCH_FLAG =</font></div><div><font face="monospace, monospace">TRADFLAG = -traditional $(NETCDF4_IO_OPTS)</font></div><div><font face="monospace, monospace">CPP = /lib/cpp -P</font></div><div><font face="monospace, monospace">AR = ar</font></div><div><font face="monospace, monospace">ARFLAGS = ru</font></div><div><font face="monospace, monospace">M4 = m4 -G</font></div><div><font face="monospace, monospace">RANLIB = ranlib</font></div><div><font face="monospace, monospace">CC_TOOLS = $(SCC)</font></div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace">###########################################################</font></div><div><font face="monospace, monospace">######################</font></div><div><font face="monospace, monospace"># POSTAMBLE</font></div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace">FGREP = fgrep -iq</font></div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace">ARCHFLAGS = $(COREDEFS) -DIWORDSIZE=$(IWORDSIZE) -DDWORDSIZE=$(DWORDSIZE) -DRWORDSIZE=$(RWORDSIZE) -DLWORDSIZE=$(LWORDSIZE) \</font></div><div><font face="monospace, monospace"> $(ARCH_LOCAL) \</font></div><div><font face="monospace, monospace"> $(DA_ARCHFLAGS) \</font></div><div><font face="monospace, monospace"> -DDM_PARALLEL \</font></div><div><font face="monospace, monospace"> \</font></div><div><font face="monospace, monospace"> -DNETCDF \</font></div><div><font face="monospace, monospace"> -DPNETCDF \</font></div><div><font face="monospace, monospace"> \</font></div><div><font face="monospace, monospace"> \</font></div><div><font face="monospace, monospace"> \</font></div><div><font face="monospace, monospace"> \</font></div><div><font face="monospace, monospace"> \</font></div><div><font face="monospace, monospace"> \</font></div><div><font face="monospace, monospace"> \</font></div><div><font face="monospace, monospace"> -DMOVE_NESTS -DVORTEX_CENTER \</font></div><div><font face="monospace, monospace"> -DUSE_ALLOCATABLES \</font></div><div><font face="monospace, monospace"> -DGRIB1 \</font></div><div><font face="monospace, monospace"> -DINTIO \</font></div><div><font face="monospace, monospace"> -DLIMIT_ARGS \</font></div><div><font face="monospace, monospace"> -DCONFIG_BUF_LEN=$(CONFIG_BUF_LEN) \</font></div><div><font face="monospace, monospace"> -DMAX_DOMAINS_F=$(MAX_DOMAINS) \</font></div><div><font face="monospace, monospace"> -DMAX_HISTORY=$(MAX_HISTORY) \</font></div><div><font face="monospace, monospace"><span class="" style="white-space:pre">                </span> -DNMM_NEST=$(WRF_NMM_NEST)</font></div><div><font face="monospace, monospace">CFLAGS = $(CFLAGS_LOCAL) -DDM_PARALLEL \</font></div><div><font face="monospace, monospace"> -DMAX_HISTORY=$(MAX_HISTORY) -DNMM_CORE=$(WRF_NMM_CORE)</font></div><div><font face="monospace, monospace">FCFLAGS = $(FCOPTIM) $(FCBASEOPTS)</font></div><div><font face="monospace, monospace">ESMF_LIB_FLAGS =</font></div><div><font face="monospace, monospace"># ESMF 5 -- these are defined in <a href="http://esmf.mk">esmf.mk</a>, included above</font></div><div><font face="monospace, monospace"> ESMF_IO_LIB = -L$(WRF_SRC_ROOT_DIR)/external/esmf_time_f90 -lesmf_time</font></div><div><font face="monospace, monospace">ESMF_IO_LIB_EXT = -L$(WRF_SRC_ROOT_DIR)/external/esmf_time_f90 -lesmf_time</font></div><div><font face="monospace, monospace">INCLUDE_MODULES = $(MODULE_SRCH_FLAG) \</font></div><div><font face="monospace, monospace"> $(ESMF_MOD_INC) $(ESMF_LIB_FLAGS) \</font></div><div><font face="monospace, monospace"> -I$(WRF_SRC_ROOT_DIR)/main \</font></div><div><font face="monospace, monospace"> -I$(WRF_SRC_ROOT_DIR)/external/io_netcdf \</font></div><div><font face="monospace, monospace"> -I$(WRF_SRC_ROOT_DIR)/external/io_int \</font></div><div><font face="monospace, monospace"> -I$(WRF_SRC_ROOT_DIR)/frame \</font></div><div><font face="monospace, monospace"> -I$(WRF_SRC_ROOT_DIR)/share \</font></div><div><font face="monospace, monospace"> -I$(WRF_SRC_ROOT_DIR)/phys \</font></div><div><font face="monospace, monospace"> -I$(WRF_SRC_ROOT_DIR)/chem -I$(WRF_SRC_ROOT_DIR)/inc \</font></div><div><font face="monospace, monospace"> -I$(NETCDFPATH)/include \</font></div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace">REGISTRY = Registry</font></div><div><font face="monospace, monospace">CC_TOOLS_CFLAGS = -DNMM_CORE=$(WRF_NMM_CORE)</font></div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace"> LIB_BUNDLED = \</font></div><div><font face="monospace, monospace"> $(WRF_SRC_ROOT_DIR)/external/fftpack/fftpack5/libfftpack.a \</font></div><div><font face="monospace, monospace"> $(WRF_SRC_ROOT_DIR)/external/io_grib1/libio_grib1.a \</font></div><div><font face="monospace, monospace"> $(WRF_SRC_ROOT_DIR)/external/io_grib_share/libio_grib_share.a \</font></div><div><font face="monospace, monospace"> $(WRF_SRC_ROOT_DIR)/external/io_int/libwrfio_int.a \</font></div><div><font face="monospace, monospace"> $(ESMF_IO_LIB) \</font></div><div><font face="monospace, monospace"> $(WRF_SRC_ROOT_DIR)/external/RSL_LITE/librsl_lite.a \</font></div><div><font face="monospace, monospace"> $(WRF_SRC_ROOT_DIR)/frame/module_internal_header_util.o \</font></div><div><font face="monospace, monospace"> $(WRF_SRC_ROOT_DIR)/frame/pack_utils.o</font></div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace"> LIB_EXTERNAL = \</font></div><div><font face="monospace, monospace"> -L$(WRF_SRC_ROOT_DIR)/external/io_netcdf -lwrfio_nf -L/home/gianlu/software/netcdf-4.3.3.1/netcdf/lib -lnetcdff -lnetcdf -L$(WRF_SRC_ROOT_DIR)/external/io_pnetcdf -lwrfio_pnf -L/home/gianlu/software/parallel-netcdf-1.6.1/pnetcdf/lib -lpnetcdf</font></div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace">LIB = $(LIB_BUNDLED) $(LIB_EXTERNAL) $(LIB_LOCAL) $(LIB_WRF_HYDRO) $(NETCDF4_DEP_LIB)</font></div><div><font face="monospace, monospace">LDFLAGS = $(OMP) $(FCFLAGS) $(LDFLAGS_LOCAL)</font></div><div><font face="monospace, monospace">ENVCOMPDEFS =</font></div><div><font face="monospace, monospace">WRF_CHEM<span class="" style="white-space:pre">        </span>=<span class="" style="white-space:pre">        </span>0</font></div><div><font face="monospace, monospace">CPPFLAGS = $(ARCHFLAGS) $(ENVCOMPDEFS) -I$(LIBINCLUDE) $(TRADFLAG)</font></div><div><font face="monospace, monospace">NETCDFPATH = /home/gianlu/software/netcdf-4.3.3.1/netcdf</font></div><div><font face="monospace, monospace">PNETCDFPATH = /home/gianlu/software/parallel-netcdf-1.6.1/pnetcdf</font></div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace">bundled: io_only</font></div><div><font face="monospace, monospace">external: io_only $(WRF_SRC_ROOT_DIR)/external/RSL_LITE/librsl_lite.a gen_comms_rsllite module_dm_rsllite $(ESMF_TARGET)</font></div><div><font face="monospace, monospace">io_only: esmf_time wrfio_nf wrfio_pnf \</font></div><div><font face="monospace, monospace"><span class="" style="white-space:pre">        </span> wrf_ioapi_includes wrfio_grib_share wrfio_grib1 wrfio_int fftpack</font></div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace">######################</font></div><div><font face="monospace, monospace">------------------------------------------------------------------------</font></div><div><font face="monospace, monospace">Settings listed above are written to configure.wrf.</font></div><div><font face="monospace, monospace">If you wish to change settings, please edit that file.</font></div><div><font face="monospace, monospace">If you wish to change the default options, edit the file:</font></div><div><font face="monospace, monospace"> arch/configure_new.defaults</font></div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace">Testing for NetCDF, C and Fortran compiler</font></div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace">This installation of NetCDF is 64-bit</font></div><div><font face="monospace, monospace"> C compiler is 64-bit</font></div><div><font face="monospace, monospace"> Fortran compiler is 64-bit</font></div><div><font face="monospace, monospace"> It will build in 64-bit</font></div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace">************************** W A R N I N G ************************************</font></div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace">There are some Fortran 2003 features in WRF that your compiler does not recognize</font></div><div><font face="monospace, monospace">The IEEE signaling call has been removed. That may not be enough.</font></div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace">*****************************************************************************</font></div><div><font face="monospace, monospace">/home/gianlu/software/netcdf-4.3.3.1/netcdf</font></div><div><font face="monospace, monospace">************************** W A R N I N G ************************************</font></div><div><font face="monospace, monospace">NETCDF4 IO features are enabled, but this installation of NetCDF</font></div><div><font face="monospace, monospace"> /home/gianlu/software/netcdf-4.3.3.1/netcdf</font></div><div><font face="monospace, monospace">sounds like DO NOT support these IO features.</font></div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace">Please make sure NETCDF version is 4.1.3 or later and was built with</font></div><div><font face="monospace, monospace">--enable-netcdf4</font></div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace">OR unset NETCDF4 variable</font></div><div><font face="monospace, monospace"> bash/ksh : unset NETCDF4</font></div><div><font face="monospace, monospace"> csh : unsetenv NETCDF4</font></div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace">Then re-run this configure script</font></div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace">!!! configure.wrf WAS REMOVED !!!</font></div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace">*****************************************************************************</font></div></div><div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Nov 30, 2015 at 12:00 PM, Tabish Ansari <span dir="ltr"><<a href="mailto:tabishumaransari@gmail.com" target="_blank">tabishumaransari@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_default" style="font-family:trebuchet ms,sans-serif">Hi<br><br></div><div class="gmail_default" style="font-family:trebuchet ms,sans-serif">Could you do EXACTLY as mentioned in the tutorial below and then see if you have more success:<br><a href="http://www2.mmm.ucar.edu/wrf/OnLineTutorial/compilation_tutorial.php#STEP1" target="_blank">http://www2.mmm.ucar.edu/wrf/OnLineTutorial/compilation_tutorial.php#STEP1</a><br><br></div><div class="gmail_default" style="font-family:trebuchet ms,sans-serif">bests,<br><br></div><div class="gmail_default" style="font-family:trebuchet ms,sans-serif">Tabish<br></div></div><div class="gmail_extra"><br clear="all"><div><div><div dir="ltr"><div><div><font size="1"><span style="font-family:tahoma,sans-serif">Tabish U Ansari<br></span></font></div><font size="1"><span style="font-family:tahoma,sans-serif">PhD student, Lancaster Environment Center<br></span></font></div><font size="1"><span style="font-family:tahoma,sans-serif">Lancaster Univeristy<br> <span>Bailrigg</span>, <span>Lancaster</span>, <br><span>LA1 4YW</span>, <span>United Kingdom</span></span></font><br></div></div></div>
<br><div class="gmail_quote"><div><div class="h5">On 30 November 2015 at 17:32, Gianluca Meneghello <span dir="ltr"><<a href="mailto:gianmail@gmail.com" target="_blank">gianmail@gmail.com</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><div dir="ltr">Hi,<div><br></div><div>I am having some difficulties in compiling WRF using NETCDF, PNETCDF as well as PHDF5 (and using PHDF5 for NETCDF). I am using MVAPICH2 as the MPI implementation.</div><div><br></div><div>I copy in the following the configures commands for all libraries, as well as the configure for WRF. The WRF configure fails by saying that the NETCDF installation does not support NETCDF4 features, despite the fact that I am using the <font face="monospace, monospace">--enable-netcdf-4</font> flag when compiling netcdf. All libraries are working correctly according to their <font face="monospace, monospace">make check</font> command</div><div><br></div><div>Please do not hesitate to ask if you need more information. Thanks in advance for any suggestion,</div><div><br></div><div>Gianluca</div><div><br></div><div>-------</div><div><br></div><div>The configure step for the libraries are (executed in order, each one followed by make, make check, make install)</div><div><br></div><div><font face="monospace, monospace">-- HDF5</font></div><div><font face="monospace, monospace">CC=mpicc FC=mpif90 ./configure --enable-parallel --prefix=${H5DIR}<br></font></div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace">-- PNETCDF</font></div><div><font face="monospace, monospace">MPICC=mpicc MPICXX=mpic++ MPIF77=mpif77 MPIF90=mpif90 ./configure --prefix=${PNDIR}<br></font></div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace">-- NETCDF-C</font></div><div><font face="monospace, monospace">CC=mpicc CPPFLAGS="-I${H5DIR}/include -I${PNDIR}/include" LDFLAGS="-L${H5DIR}/lib -L${PNDIR}/lib" ./configure --disable-shared --enable-pnetcdf --enable-parallel-tests --prefix=${NCDIR} <b>--enable-netcdf-4</b><br></font></div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace">-- NETCDF-FORTRAN</font></div><div><font face="monospace, monospace">CC=mpicc FC=mpif90 CPPFLAGS="-I${NCDIR}/include -I${H5DIR}/include" LD_LIBRARY_PATH=${H5DIR}/lib:${NCDIR}/lib:${LD_LIBRARY_PATH} LDFLAGS="-L${H5DIR}/lib -L${NCDIR}/lib -lnetcdf" ./configure --disable-shared --prefix=$NFDIR<br></font></div><div><br></div><div>The configure step for WRF is</div><div><font face="monospace, monospace">export NETCDF4=1<br></font></div><div><font face="monospace, monospace">export NETCDF=${NCDIR}<br></font></div><div><font face="monospace, monospace">export PNETCDF=${PNDIR}<br></font></div><div><font face="monospace, monospace">export PHDF5=${H5DIR}<br></font></div><div><font face="monospace, monospace">export WRFIO_NCD_LARGE_FILE_SUPPORT=1<br></font></div><div><font face="monospace, monospace">./configure</font></div><div><br></div><div><font face="arial, helvetica, sans-serif">but the configure step fails saying that the NETCDF installation does not support netcdf4, despite the </font><font face="monospace, monospace"><b>--enable--netcdf-4</b></font><font face="arial, helvetica, sans-serif"> flag in the compilation of NETCDF-C</font></div><div><div><font face="monospace, monospace">************************** W A R N I N G ****************************</font></div><div><font face="monospace, monospace">NETCDF4 IO features are enabled, but this installation of NetCDF</font></div><div><font face="monospace, monospace"> /home/gianlu/software/netcdf-4.3.3.1/netcdf</font></div><div><font face="monospace, monospace">sounds like DO NOT support these IO features.</font></div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace">Please make sure NETCDF version is 4.1.3 or later and was built with</font></div><div><font face="monospace, monospace">--enable-netcdf4</font></div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace">OR unset NETCDF4 variable</font></div><div><font face="monospace, monospace"> bash/ksh : unset NETCDF4</font></div><div><font face="monospace, monospace"> csh : unsetenv NETCDF4</font></div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace">Then re-run this configure script</font></div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace">!!! configure.wrf WAS REMOVED !!!</font></div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace">*********************************************************************</font></div></div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace"><br></font></div></div>
<br></div></div>_______________________________________________<br>
Wrf-users mailing list<br>
<a href="mailto:Wrf-users@ucar.edu" target="_blank">Wrf-users@ucar.edu</a><br>
<a href="http://mailman.ucar.edu/mailman/listinfo/wrf-users" rel="noreferrer" target="_blank">http://mailman.ucar.edu/mailman/listinfo/wrf-users</a><br>
<br></blockquote></div><br></div>
</blockquote></div><br></div>