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
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.h
was 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.cpp
fixed the issue.Version: Cray netcdf hdf5 parallel 4.7.4.2