Skip to content

Commit b38e34e

Browse files
authored
Merge pull request #1995 from jedwards4b/fillvalue_fix.wif
Fillvalue fix.wif
2 parents fcb8529 + 6b60bc8 commit b38e34e

21 files changed

+50
-49
lines changed

.github/actions/buildhdf5/action.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ inputs:
3434
runs:
3535
using: composite
3636
steps:
37-
- uses: actions/checkout@v3
37+
- uses: actions/checkout@v4
3838
with:
3939
repository: HDFGroup/hdf5
4040
path: hdf5-src

.github/actions/buildmpich/action.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ inputs:
1313
runs:
1414
using: composite
1515
steps:
16-
- uses: actions/checkout@v3
16+
- uses: actions/checkout@v4
1717
with:
1818
repository: pmodels/mpich
1919
path: mpich-src

.github/actions/buildnetcdf/action.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ inputs:
4545
runs:
4646
using: composite
4747
steps:
48-
- uses: actions/checkout@v3
48+
- uses: actions/checkout@v4
4949
with:
5050
repository: Unidata/netcdf-c
5151
path: netcdf-c-src

.github/actions/buildnetcdff/action.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ inputs:
1919
runs:
2020
using: composite
2121
steps:
22-
- uses: actions/checkout@v3
22+
- uses: actions/checkout@v4
2323
with:
2424
repository: Unidata/netcdf-fortran
2525
path: netcdf-fortran-src

.github/actions/buildopenmpi/action.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ inputs:
1313
runs:
1414
using: composite
1515
steps:
16-
- uses: actions/checkout@v3
16+
- uses: actions/checkout@v4
1717
with:
1818
repository: open-mpi/ompi
1919
path: openmpi-src

.github/actions/buildpnetcdf/action.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ description: 'Build the pnetcdf library'
22
inputs:
33
pnetcdf_version:
44
description: 'Tag in the pnetcdf repository to use'
5-
default: checkpoint.1.12.3
5+
default: checkpoint.1.14.0
66
required: False
77
type: string
88
install_prefix:
@@ -23,7 +23,7 @@ inputs:
2323
runs:
2424
using: composite
2525
steps:
26-
- uses: actions/checkout@v3
26+
- uses: actions/checkout@v4
2727
with:
2828
repository: Parallel-NetCDF/PnetCDF
2929
path: pnetcdf-src

.github/actions/parallelio_autotools/action.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ description: 'Build the parallelio library using cmake'
22
inputs:
33
parallelio_version:
44
description: 'Tag in the parallelio repository to use'
5-
default: pio2_5_10
5+
default: pio2_6_3
66
required: False
77
type: string
88
shared_libraries:
@@ -101,12 +101,12 @@ runs:
101101
using: composite
102102
steps:
103103
- name: Check if already present
104-
uses: andstor/file-existence-action@v2
104+
uses: andstor/file-existence-action@v3
105105
with:
106106
files: ${{ inputs.src_path }}
107107
- name: get parallelio
108108
if: ${{ steps.check_files.outputs.files_exists != 'true' }}
109-
uses: actions/checkout@v3
109+
uses: actions/checkout@v4
110110
with:
111111
repository: NCAR/ParallelIO
112112
path: ${{ inputs.src_path }}

.github/actions/parallelio_cmake/action.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ description: 'Build the parallelio library using cmake'
22
inputs:
33
parallelio_version:
44
description: 'Tag in the parallelio repository to use'
5-
default: pio2_5_9
5+
default: pio2_6_3
66
required: False
77
type: string
88
shared_libraries:
@@ -110,7 +110,7 @@ inputs:
110110
runs:
111111
using: composite
112112
steps:
113-
- uses: actions/checkout@v3
113+
- uses: actions/checkout@v4
114114
with:
115115
repository: NCAR/ParallelIO
116116
path: parallelio-src

.github/workflows/cmake.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
# LDFLAGS: "-static-libasan"
2020
# ASAN_OPTIONS: "detect_odr_violation=0"
2121
steps:
22-
- uses: actions/checkout@v3
22+
- uses: actions/checkout@v4
2323
- name: Installs
2424
run: |
2525
set -x

.github/workflows/cmake_ubuntu_latest.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
PNETCDF_VERSION: checkpoint.1.12.3
2424
FCFLAGS: "-fallow-argument-mismatch"
2525
steps:
26-
- uses: actions/checkout@v3
26+
- uses: actions/checkout@v4
2727
- name: Installs
2828
run: |
2929
set -x
@@ -36,7 +36,7 @@ jobs:
3636
3737
- name: cache-pnetcdf
3838
id: cache-pnetcdf
39-
uses: actions/cache@v3
39+
uses: actions/cache@v4
4040
with:
4141
path: ~/pnetcdf
4242
key: pnetcdf-${{ runner.os }}-${{ env.PNETCDF_VERSION }}

.github/workflows/netcdf_hdf5_no_pnetcdf_ncint_mpich.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,13 @@ jobs:
1919
FFLAGS: "-fallow-argument-mismatch"
2020
FCFLAGS: "-fallow-argument-mismatch"
2121
steps:
22-
- uses: actions/checkout@v3
22+
- uses: actions/checkout@v4
2323
- name: Installs
2424
run: |
2525
sudo apt-get install doxygen graphviz wget gfortran libjpeg-dev libz-dev libcurl4-gnutls-dev
2626
- name: cache-mpich
2727
id: cache-mpich
28-
uses: actions/cache@v3
28+
uses: actions/cache@v4
2929
with:
3030
path: ~/work/ParallelIO/ParallelIO/mpich
3131
key: mpich-${{ runner.os }}-${{ env.MPICH_VERSION }}
@@ -39,7 +39,7 @@ jobs:
3939

4040
- name: cache-hdf5
4141
id: cache-hdf5
42-
uses: actions/cache@v3
42+
uses: actions/cache@v4
4343
with:
4444
path: ~/work/ParallelIO/ParallelIO/hdf5
4545
key: hdf5-${{ runner.os }}-${{ env.HDF5_VERSION }}-mpich-${{ env.MPICH_VERSION }}
@@ -55,7 +55,7 @@ jobs:
5555

5656
- name: cache-netcdf
5757
id: cache-netcdf
58-
uses: actions/cache@v3
58+
uses: actions/cache@v4
5959
with:
6060
path: ~/work/ParallelIO/ParallelIO/netcdf
6161
key: netcdf-${{ runner.os }}-${{ env.NETCDF_C_VERSION }}-${{ env.NETCDF_FORTRAN_VERSION }}-mpich-${{ env.MPICH_VERSION }}-hdf5-${{ env.HDF5_VERSION }}
@@ -79,7 +79,7 @@ jobs:
7979

8080
- name: cache-netcdf-fortran
8181
id: cache-netcdf-fortran
82-
uses: actions/cache@v3
82+
uses: actions/cache@v4
8383
with:
8484
path: ~/netcdf-fortran
8585
key: netcdf-fortran-${{ runner.os }}-${{ env.NETCDF_FORTRAN_VERSION }}-mpich-${{ env.MPICH_VERSION }}-hdf5-${{ env.HDF5_VERSION }}

.github/workflows/netcdf_hdf5_pnetcdf_ncint_mpich_asan.yml

+6-6
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,13 @@ jobs:
2020
FCFLAGS: "-fallow-argument-mismatch"
2121
FFLAGS: "-fallow-argument-mismatch"
2222
steps:
23-
- uses: actions/checkout@v3
23+
- uses: actions/checkout@v4
2424
- name: Installs
2525
run: |
2626
sudo apt-get install doxygen graphviz wget gfortran libjpeg-dev libz-dev
2727
- name: cache-mpich
2828
id: cache-mpich
29-
uses: actions/cache@v3
29+
uses: actions/cache@v4
3030
with:
3131
path: ~/mpich
3232
key: mpich-${{ runner.os }}-${{ env.MPICH_VERSION }}
@@ -40,7 +40,7 @@ jobs:
4040

4141
- name: cache-hdf5
4242
id: cache-hdf5
43-
uses: actions/cache@v3
43+
uses: actions/cache@v4
4444
with:
4545
path: ~/hdf5
4646
key: hdf5-${{ runner.os }}-${{ env.HDF5_VERSION }}-mpich-${{ env.MPICH_VERSION }}
@@ -55,7 +55,7 @@ jobs:
5555
mpi_path: $HOME/mpich
5656
- name: cache-netcdf-c
5757
id: cache-netcdf-c
58-
uses: actions/cache@v3
58+
uses: actions/cache@v4
5959
with:
6060
path: ~/netcdf-c
6161
key: netcdf-c-${{ runner.os }}-${{ env.NETCDF_C_VERSION }}-mpich-${{ env.MPICH_VERSION }}-hdf5-${{ env.HDF5_VERSION }}
@@ -69,7 +69,7 @@ jobs:
6969

7070
- name: cache-netcdf-fortran
7171
id: cache-netcdf-fortran
72-
uses: actions/cache@v3
72+
uses: actions/cache@v4
7373
with:
7474
path: ~/netcdf-fortran
7575
key: netcdf-fortran-${{ runner.os }}-${{ env.NETCDF_F_VERSION }}-mpich-${{ env.MPICH_VERSION }}-hdf5-${{ env.HDF5_VERSION_MAJOR }}.${{ env.HDF5_VERSION_PATCH }}
@@ -84,7 +84,7 @@ jobs:
8484

8585
- name: cache-pnetcdf
8686
id: cache-pnetcdf
87-
uses: actions/cache@v3
87+
uses: actions/cache@v4
8888
with:
8989
path: ~/pnetcdf
9090
key: pnetcdf-${{ runner.os }}-${{ env.PNETCDF_VERSION }}-mpich-${{ env.MPICH_VERSION }}

.github/workflows/netcdf_pnetcdf_openmpi.yml

+6-6
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,13 @@ jobs:
2222
FCFLAGS: "-fallow-argument-mismatch"
2323
FFLAGS: "-fallow-argument-mismatch"
2424
steps:
25-
- uses: actions/checkout@v3
25+
- uses: actions/checkout@v4
2626
- name: Installs
2727
run: |
2828
sudo apt-get install doxygen graphviz wget gfortran libjpeg-dev libz-dev
2929
- name: cache-openmpi
3030
id: cache-openmpi
31-
uses: actions/cache@v3
31+
uses: actions/cache@v4
3232
with:
3333
path: ~/work/ParallelIO/ParallelIO/openmpi
3434
key: openmpi-${{ runner.os }}-${{ env.OPENMPI_VERSION }}
@@ -42,7 +42,7 @@ jobs:
4242

4343
- name: cache-hdf5
4444
id: cache-hdf5
45-
uses: actions/cache@v3
45+
uses: actions/cache@v4
4646
with:
4747
path: ~/work/ParallelIO/ParallelIO/hdf5
4848
key: hdf5-${{ runner.os }}-${{ env.HDF5_VERSION }}-openmpi-${{ env.OPENMPI_VERSION }}
@@ -58,7 +58,7 @@ jobs:
5858

5959
- name: cache-netcdf
6060
id: cache-netcdf
61-
uses: actions/cache@v3
61+
uses: actions/cache@v4
6262
with:
6363
path: ~/work/ParallelIO/ParallelIO/netcdf
6464
key: netcdf-${{ runner.os }}-${{ env.NETCDF_C_VERSION }}-${{ env.NETCDF_FORTRAN_VERSION }}-openmpi-${{ env.OPENMPI_VERSION }}-hdf5-${{ env.HDF5_VERSION }}
@@ -73,7 +73,7 @@ jobs:
7373

7474
# - name: Setup tmate session
7575
# if: ${{ failure() }}
76-
# uses: mxschmitt/action-tmate@v3
76+
# uses: mxschmitt/action-tmate@v4
7777

7878
- name: Build NetCDF Fortran
7979
if: steps.cache-netcdf.outputs.cache-hit != 'true'
@@ -85,7 +85,7 @@ jobs:
8585

8686
# - name: cache-pnetcdf
8787
# id: cache-pnetcdf
88-
# uses: actions/cache@v3
88+
# uses: actions/cache@v4
8989
# with:
9090
# path: ~/pnetcdf
9191
# key: pnetcdf-${{ runner.os }}-${{ env.PNETCDF_VERSION }}-openmpi-${{ env.OPENMPI_VERSION_MAJOR }}.${{ env.OPENMPI_VERSION_PATCH }}

.github/workflows/strict_autotools_ubuntu_latest.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
FCFLAGS: "-fallow-argument-mismatch -Wall"
2121
PNETCDF_VERSION: checkpoint.1.12.3
2222
steps:
23-
- uses: actions/checkout@v3
23+
- uses: actions/checkout@v4
2424
- name: Installs
2525
run: |
2626
set -x
@@ -29,7 +29,7 @@ jobs:
2929
3030
- name: cache-pnetcdf
3131
id: cache-pnetcdf
32-
uses: actions/cache@v3
32+
uses: actions/cache@v4
3333
with:
3434
path: ~/work/ParallelIO/ParallelIO/pnetcdf
3535
key: pnetcdf-${{ runner.os }}-${{ env.PNETCDF_VERSION }}-openmpi

CMakeLists.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ project (PIO C)
1010
# The project version number.
1111
set(VERSION_MAJOR 2 CACHE STRING "Project major version number.")
1212
set(VERSION_MINOR 6 CACHE STRING "Project minor version number.")
13-
set(VERSION_PATCH 2 CACHE STRING "Project patch version number.")
13+
set(VERSION_PATCH 5 CACHE STRING "Project patch version number.")
1414
mark_as_advanced(VERSION_MAJOR VERSION_MINOR VERSION_PATCH)
1515

1616
# Create version info in autotools parlance for pio_meta.h.
@@ -352,7 +352,7 @@ CHECK_C_SOURCE_COMPILES("
352352
#if !NC_HAS_SZIP_WRITE
353353
choke me
354354
#endif
355-
int main() {return 0;}" HAVE_SZIP_WRITE)
355+
int main() {return 0;}" USE_SZIP)
356356

357357
###
358358
# Check to see if parallel filters are supported by HDF5/netcdf-c.

configure.ac

+3-3
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
## Ed Hartnett 8/16/17
33

44
# Initialize autoconf and automake.
5-
AC_INIT(pio, 2.6.2)
5+
AC_INIT(pio, 2.6.5)
66
AC_CONFIG_SRCDIR(src/clib/pio_darray.c)
77
AM_INIT_AUTOMAKE([foreign serial-tests])
88

@@ -11,15 +11,15 @@ AM_INIT_AUTOMAKE([foreign serial-tests])
1111
# AC_DEFINE_UNQUOTED for config.h.
1212
AC_SUBST([PIO_VERSION_MAJOR]) PIO_VERSION_MAJOR=2
1313
AC_SUBST([PIO_VERSION_MINOR]) PIO_VERSION_MINOR=6
14-
AC_SUBST([PIO_VERSION_PATCH]) PIO_VERSION_PATCH=2
14+
AC_SUBST([PIO_VERSION_PATCH]) PIO_VERSION_PATCH=5
1515
AC_DEFINE_UNQUOTED([PIO_VERSION_MAJOR], [$PIO_VERSION_MAJOR], [PIO major version])
1616
AC_DEFINE_UNQUOTED([PIO_VERSION_MINOR], [$PIO_VERSION_MINOR], [PIO minor version])
1717
AC_DEFINE_UNQUOTED([PIO_VERSION_PATCH], [$PIO_VERSION_PATCH], [PIO patch version])
1818

1919
# Once more for the documentation.
2020
AC_SUBST([VERSION_MAJOR], [2])
2121
AC_SUBST([VERSION_MINOR], [6])
22-
AC_SUBST([VERSION_PATCH], [2])
22+
AC_SUBST([VERSION_PATCH], [5])
2323

2424

2525
# The m4 directory holds macros for autoconf.

src/clib/pio.h

+3
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@
2727
(((NC_VERSION_MAJOR == Maj) && (NC_VERSION_MINOR == Min) && (NC_VERSION_PATCH >= Pat)) || \
2828
((NC_VERSION_MAJOR == Maj) && (NC_VERSION_MINOR > Min)) || (NC_VERSION_MAJOR > Maj))
2929

30+
#ifndef NC_FillValue
31+
#define NC_FillValue _FillValue
32+
#endif
3033

3134
/** PIO_OFFSET is an integer type of size sufficient to represent the
3235
* size (in bytes) of the largest file supported by MPI. This is not

src/clib/pio_nc.c

+4-4
Original file line numberDiff line numberDiff line change
@@ -2322,7 +2322,7 @@ PIOc_def_var(int ncid, const char *name, nc_type xtype, int ndims,
23222322
*
23232323
* When the fill mode for the file is NC_FILL, then fill values are
23242324
* used for missing data. This function sets the fill value to be used
2325-
* for a variable. If no specific fill value is set (as a _FillValue
2325+
* for a variable. If no specific fill value is set (as a NC_FillValue
23262326
* attribute), then the default fill values from netcdf.h are used.
23272327
*
23282328
* NetCDF-4 and pnetcdf files allow setting fill_mode (to NC_FILL or
@@ -2430,7 +2430,7 @@ PIOc_def_var_fill(int ncid, int varid, int fill_mode, const void *fill_valuep)
24302430
{
24312431
ierr = nc_set_fill(file->fh, NC_FILL, NULL);
24322432
if (!ierr)
2433-
ierr = nc_put_att(file->fh, varid, _FillValue, xtype, 1, fill_valuep);
2433+
ierr = nc_put_att(file->fh, varid, NC_FillValue, xtype, 1, fill_valuep);
24342434
}
24352435
}
24362436
else
@@ -2477,7 +2477,7 @@ PIOc_inq_var_fill(int ncid, int varid, int *no_fill, void *fill_valuep)
24772477
{
24782478
iosystem_desc_t *ios; /* Pointer to io system information. */
24792479
file_desc_t *file; /* Pointer to file information. */
2480-
nc_type xtype; /* Type of variable and its _FillValue attribute. */
2480+
nc_type xtype; /* Type of variable and its NC_FillValue attribute. */
24812481
PIO_Offset type_size; /* Size in bytes of this variable's type. */
24822482
int mpierr = MPI_SUCCESS, mpierr2; /* Return code from MPI function codes. */
24832483
int ierr = PIO_NOERR; /* Return code from function calls. */
@@ -2574,7 +2574,7 @@ PIOc_inq_var_fill(int ncid, int varid, int *no_fill, void *fill_valuep)
25742574

25752575
if (!ierr && fill_valuep)
25762576
{
2577-
ierr = nc_get_att(file->fh, varid, _FillValue, fill_valuep);
2577+
ierr = nc_get_att(file->fh, varid, NC_FillValue, fill_valuep);
25782578
if (ierr == NC_ENOTATT)
25792579
{
25802580
char char_fill_value = NC_FILL_CHAR;

0 commit comments

Comments
 (0)