Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compilation with Parallel NETCDF 4.7.4 #28

Open
akrause2014 opened this issue Aug 5, 2021 · 0 comments
Open

Compilation with Parallel NETCDF 4.7.4 #28

akrause2014 opened this issue Aug 5, 2021 · 0 comments

Comments

@akrause2014
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant