When compiling channelflow on ARCHER2 (https://www.archer2.ac.uk) with parallel NETCDF enabled, i.e. -DWITH_NETCDF=Parallel, the following error occurred, although netcdf_par.h was present:
-- Looking for include file netcdf_par.h - not found
FATALERRORcould not include netcdf_par.h [Required by WITH_NETCDF=Parallel]
This is caused by netcdf_par.h not including a macro definition. Changing CMakeLists.txt (line 141) to
CHECK_INCLUDE_FILES("netcdf.h;netcdf_par.h" HAVE_NETCDF_PAR_H)
and including <netcdf.h> before line 30 in channelflow/flowfield.cpp fixed the issue.
Version:
Cray netcdf hdf5 parallel 4.7.4.2
When compiling channelflow on ARCHER2 (https://www.archer2.ac.uk) with parallel NETCDF enabled, i.e.
-DWITH_NETCDF=Parallel, the following error occurred, althoughnetcdf_par.hwas present:This is caused by netcdf_par.h not including a macro definition. Changing
CMakeLists.txt(line 141) toand including
<netcdf.h>before line 30 inchannelflow/flowfield.cppfixed the issue.Version:
Cray netcdf hdf5 parallel 4.7.4.2