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

WPS compile on Casper

smeech84

New member
Hello,
I've been trying to compile WPS on Casper but ran into some problems.

1) Is there a precompiled version on Casper? I see the Derecho precompiled code but not Casper

2) My errors seem to be only with ungrib installing. geogrid and metgrid executables are created.

I use configure option 19: Linux x86_64, Intel compiler (dmpar)
I've also tried the other Intel options but they seemed to fail even faster.

Currently Loaded Modules:
1) ncarenv/24.12 (S) 2) intel/2024.2.1 3) ncarcompilers/1.0.0 4) cuda/12.3.2 5) ucx/1.17.0 6) openmpi/5.0.6 7) hdf5/1.12.3 8) netcdf/4.9.2

The first error is:
cio.c:52:1: error: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int]
and a bunch of similar errors follow that one.

I'm not 100% sure what to look for after this point. Am I choosing the correct compiler option at least?

Thanks
 
Hi,
There isn't a pre-compiled version of WPS on Casper, unfortunately. A couple of notes:

1) The compiler should be the same one you used to compile WRF - but since metgrid and geogrid were built, it seems that you must be using the correct one because those executables rely on the WRF build to compile successfully.

2) Can you try to build ungrib, using the internal grib2 lib building option? See this section of the WRF Users Guide and scroll down to #4, under 'Configure WPS.'
 
Hi,

I tried running it that way but again geogrid and metgrid builds but not ungrib. The first error I get in the compile log is:

checking whether the C compiler works... no
configure: error: in `/glade/work/smeech/wrf_components/casper1/WPS/external/libpng-1.6.37':
configure: error: C compiler cannot create executables

I'm also working with CISL help and they suggested to build everything clean using this recipe:

module reset
module list

In the above, my compiler is Intel compiler. intel/2023.2.1



git clone GitHub - wrf-model/WRF: The official repository for the Weather Research and Forecasting (WRF) model
cd WRF
./configure
(option 15)



./compile em_real | tee compile.log 2>&1

Now for WPS:

git clone GitHub - wrf-model/WPS: The official repository for the WRF Preprocessing System (WPS)
cd WPS
./configure
(option 23 – Linux x86_64, Intel Classic compilers (dmpar))

./compile

but I still run into errors like this during just the WRF configure stage:

*****************************************************************************
************************** W A R N I N G ************************************
NETCDF4 IO features are requested, but this installation of NetCDF
/glade/u/apps/casper/24.12/spack/opt/spack/netcdf/4.9.2/oneapi/2024.2.1/hkzu
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 !!!

*****************************************************************************
 
Top