In seeking to test with a newly built pnetcdf and associated netcdf, I am getting a compilation error, and hoping its just that I need to tell CESM to use Pnetcdf not netcdf4.
My environment includes:
$NETCDF_PREFIX, $NETCDF_C_PREFIX, $NETCDF_F_PREFIX and $PNETCDF_PREFIX all set to the same directory:
/exports/applications/apps/community/geos/intel2017u4/pnetcdf/1.12.1
$ ls /exports/applications/apps/community/geos/intel2017u4/pnetcdf/1.12.1/lib
libnetcdf.a libnetcdff.a libnetcdff.la libnetcdff.settings libnetcdf.la libnetcdf.settings libpnetcdf.a libpnetcdf.la pkgconfig
$ ls /exports/applications/apps/community/geos/intel2017u4/pnetcdf/1.12.1/include
netcdf_aux.h netcdf_fortv2_c_interfaces.mod netcdf_meta.h netcdf_nf_data.mod pnetcdf.h
netcdf_dispatch.h netcdf.h netcdf.mod netcdf_nf_interfaces.mod pnetcdf.inc
netcdf_f03.mod netcdf.inc netcdf_nc_data.mod netcdf_par.h pnetcdf.mod
netcdf_filter.h netcdf_mem.h netcdf_nc_interfaces.mod pnetcdf
When I tested with J_TestCreateNewcase:
OUTPUT: Building case in directory /exports/eddie/scratch/mjm/P8_TCN/TestCreateNewcase/testcreatenewcase_with_user_compset
sharedlib_only is False
...
Calling /exports/csce/eddie/geos/groups/cesd/CESM/my_cesm_sandbox/cime/src/build_scripts/buildlib.pio
ERRPUT: ERROR: /exports/csce/eddie/geos/groups/cesd/CESM/my_cesm_sandbox/cime/src/build_scripts/buildlib.pio FAILED, cat /exports/eddie/scratch/mjm/P8_TCN/TestCreateNewcase/testcreatenewcase_with_user_compset/bld/pio.bldlog.200727-170319
And the bldlog includes:
-- The C compiler identification is Intel 17.0.0.20170411
-- The Fortran compiler identification is Intel
...
-- Found NetCDF_C: /exports/applications/apps/community/geos/intel2017u4/pnetcdf/1.12.1/lib/libnetcdf.a
-- Checking NetCDF version
-- Checking NetCDF version - 4.7.4./*!<
-- Checking whether NetCDF has parallel support
-- Checking whether NetCDF has parallel support - yes
-- Looking for nc_set_log_level
-- Looking for nc_set_log_level - not found
-- Checking whether NetCDF has PnetCDF support
-- Checking whether NetCDF has PnetCDF support - yes
-- Found PnetCDF_C: /exports/applications/apps/community/geos/intel2017u4/pnetcdf/1.12.1/lib/libpnetcdf.a
-- Checking PnetCDF version
-- Checking PnetCDF version - 1.12.1
-- Checking whether NetCDF has DAP support
-- Checking whether NetCDF has DAP support - no
-- Found HDF5_HL: /usr/lib64/libhdf5_hl.so
-- Found HDF5_C: /usr/lib64/libhdf5.so
-- Found NetCDF_Fortran: /exports/applications/apps/community/geos/intel2017u4/pnetcdf/1.12.1/lib/libnetcdff.a
-- Found PnetCDF_Fortran: /exports/applications/apps/community/geos/intel2017u4/pnetcdf/1.12.1/lib/libpnetcdf.a
-- PIO using gpfs filesystem hints
-- MPIIO detected and enabled.
-- MPI Fortran module detected and enabled.
...
/exports/csce/eddie/geos/groups/cesd/CESM/my_cesm_sandbox/cime/src/externals/pio1/pio/nf_mod.F90(1761): error #6404: This name does not have a type, and must have an explicit type. [NF90_DEF_VAR_DEFLATE]
ierr = nf90_def_var_deflate(File%fh,vardesc%varid,0,1,1)
--------------------------^
compilation aborted for /exports/csce/eddie/geos/groups/cesd/CESM/my_cesm_sandbox/cime/src/externals/pio1/pio/nf_mod.F90 (code 1)
--
The call to nf90.... is in a branch after ifdefs for NETCFD4 which I'd not expect to be compiling.
Do I need FLAGS including -D _PNETCDF ?
I attach the xml files from ~cime, and xml from the test case, and the full bldlog file, and hoping you dont need them, the config files from the pnetcdf and netcdf libraries.
Thank you,.