Skip to content

Commit

Permalink
fix for compiling with netcdf-c 4.7.4 (issue #1363)
Browse files Browse the repository at this point in the history
  • Loading branch information
jswhit committed Sep 22, 2024
1 parent 4c4acc5 commit 324dacc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/build_old.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ jobs:
runs-on: ubuntu-latest
env:
PNETCDF_VERSION: 1.12.1
NETCDF_VERSION: 4.8.1
NETCDF_VERSION: 4.7.4
NETCDF_DIR: ${{ github.workspace }}/..
NETCDF_EXTRA_CONFIG: --enable-pnetcdf
CC: mpicc.mpich
Expand Down
5 changes: 5 additions & 0 deletions external/nc_complex/src/nc_complex.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@

#include "nc_complex_version.h"

// to enable compilation with older versions of netcdf-c
#ifndef NC_FORMATX_NCZARR
#define NC_FORMATX_NCZARR (10)
#endif

// NOLINTBEGIN(bugprone-assignment-in-if-condition)
#define CHECK(func) \
do { \
Expand Down

0 comments on commit 324dacc

Please sign in to comment.