Scheduled Downtime
On Friday 21 April 2023 @ 5pm MT, this website will be down for maintenance and expected to return online the morning of 24 April 2023 at the latest

netCDF 4.9.2 not compatible with WRF, v4.9.0 worked fine. (SOLVED)

  • Thread starter Deleted member 3607
  • Start date
D

Deleted member 3607

Guest

I am trying to install the Weather Research and Forecasting Model (WRF) using Netcdf 4.9.2

I use these commands to install netcdf
##############################Install NETCDF C Library############################
cd $WRF_FOLDER/Downloads
tar -xzvf v4.9.2.tar.gz
cd netcdf-c-4.9.2/
export CPPFLAGS=-I$DIR/grib2/include
export LDFLAGS=-L$DIR/grib2/lib
export LIBS="-lhdf5_hl -lhdf5 -lz -lcurl -lgfortran -lgcc -lm -ldl -lpnetcdf"
CC=$MPICC FC=$MPIFC CXX=$MPICXX F90=$MPIF90 F77=$MPIF77 ./configure --prefix=$DIR/NETCDF --disable-dap --enable-netcdf-4 --enable-netcdf4 --enable-shared --enable-pnetcdf --enable-cdf5 --enable-parallel-tests
make -j $CPU_HALF_EVEN
make -j $CPU_HALF_EVEN install 2>&1 | tee make.install.log
#make check

export PATH=$DIR/NETCDF/bin:$PATH
export NETCDF=$DIR/NETCDF
echo " "
It passes all the checks for WRF. But gives this error.


Settings listed above are written to configure.wrf.
If you wish to change settings, please edit that file.
If you wish to change the default options, edit the file:
arch/configure.defaults
NetCDF users note:
This installation of NetCDF supports large file support. To DISABLE large file
support in NetCDF, set the environment variable WRFIO_NCD_NO_LARGE_FILE_SUPPORT
to 1 and run configure again. Set to any other value to avoid this message.

Testing for NetCDF, C and Fortran compiler

This installation of NetCDF is 64-bit
C compiler is 64-bit
Fortran compiler is 64-bit
It will build in 64-bit

NetCDF version: 4.9.2
Enabled NetCDF-4/HDF-5: yes
NetCDF built with PnetCDF: yes

************************** W A R N I N G ************************************
NETCDF4 IO features are requested, but this installation of NetCDF
/home/workhorse/WRF/Libs/NETCDF
DOES NOT support these IO features.

Please make sure NETCDF version is 4.1.3 or later and was built with
--enable-netcdf4

OR set NETCDF_classic variable
bash/ksh : export NETCDF_classic=1
csh : setenv NETCDF_classic 1

Then re-run this configure script

!!! configure.wrf has been REMOVED !!!

Is there a new feature in 4.9.2 that needs to be enabled?

For reference 4.9.0 worked without a problem.

Make Check reveals all tests passed.
 
Last edited by a moderator:
Issue was fixed with removing Anaconda from the .bashrc file.

Somehow conda was leaking into the environment even though it wasn't active.

Can close issue.
 
Top