mirror of
https://github.com/Unidata/netcdf-c.git
synced 2024-11-21 03:13:42 +08:00
Merge branch 'master' into newhash1.dmh
This commit is contained in:
commit
f6a45b942e
@ -1368,7 +1368,8 @@ ENDIF()
|
||||
|
||||
MACRO(GEN_m4 filename)
|
||||
|
||||
IF(HAVE_M4)
|
||||
IF(HAVE_M4)
|
||||
|
||||
# If m4 is available, remove generated file if it exists.
|
||||
IF(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/${filename}.c)
|
||||
FILE(REMOVE ${CMAKE_CURRENT_SOURCE_DIR}/${filename}.c)
|
||||
|
@ -7,6 +7,7 @@ This file contains a high-level description of this package's evolution. Release
|
||||
|
||||
## 4.6.1 - TBD
|
||||
|
||||
* [Enhancement] Reverted some new behaviors that, while in line with the netCDF specification, broke existing workflows. See [Github #843](https://github.com/Unidata/netcdf-c/issues/843) for more information.
|
||||
* [Bug Fix] Improved support for CRT builds with Visual Studio, improves zlib detection in hdf5 library. See [Github #853](https://github.com/Unidata/netcdf-c/pull/853) for more information.
|
||||
* [Enhancement][Internal] Moved HDF4 into a distinct dispatch layer. See [Github #849](https://github.com/Unidata/netcdf-c/pull/849) for more information.
|
||||
|
||||
|
@ -57,7 +57,8 @@ IF(HAVE_M4)
|
||||
FILE(COPY ${libsrc_MANPAGE} DESTINATION ${CMAKE_CURRENT_BINARY_DIR})
|
||||
|
||||
ADD_CUSTOM_TARGET(manpage ALL
|
||||
COMMAND ${NC_M4} ${ARGS_MANPAGE} ${CMAKE_CURRENT_BINARY_DIR}/netcdf.m4 > ${CMAKE_CURRENT_BINARY_DIR}/netcdf.3
|
||||
|
||||
COMMAND ${NC_M4} ${ARGS_MANPAGE} '${CMAKE_CURRENT_BINARY_DIR}/netcdf.m4' > '${CMAKE_CURRENT_BINARY_DIR}/netcdf.3'
|
||||
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
|
||||
)
|
||||
|
||||
|
@ -836,17 +836,24 @@ NC3_put_att(
|
||||
if(nelems != 0 && value == NULL)
|
||||
return NC_EINVAL; /* Null arg */
|
||||
|
||||
if (varid != NC_GLOBAL && !strcmp(name, _FillValue)) {
|
||||
/* Fill value must be of the same data type */
|
||||
if (type != ncp->vars.value[varid]->type) return NC_EBADTYPE;
|
||||
|
||||
/* Fill value must have exactly one value */
|
||||
if (nelems != 1) return NC_EINVAL;
|
||||
/* Temporarily removed to preserve extant
|
||||
workflows (NCO based and others). See
|
||||
|
||||
/* Only allow for variables defined in initial define mode */
|
||||
if (ncp->old != NULL && varid < ncp->old->vars.nelems)
|
||||
return NC_ELATEFILL; /* try put attribute for an old variable */
|
||||
}
|
||||
https://github.com/Unidata/netcdf-c/issues/843
|
||||
|
||||
for more information. */
|
||||
|
||||
// if (varid != NC_GLOBAL && !strcmp(name, _FillValue)) {
|
||||
// /* Fill value must be of the same data type */
|
||||
// if (type != ncp->vars.value[varid]->type) return NC_EBADTYPE;
|
||||
//
|
||||
// /* Fill value must have exactly one value */
|
||||
// if (nelems != 1) return NC_EINVAL;
|
||||
//
|
||||
// /* Only allow for variables defined in initial define mode */
|
||||
// if (ncp->old != NULL && varid < ncp->old->vars.nelems)
|
||||
// return NC_ELATEFILL; /* try put attribute for an old variable */
|
||||
// }
|
||||
|
||||
attrpp = NC_findattr(ncap, name);
|
||||
|
||||
@ -999,4 +1006,3 @@ NC3_get_att(
|
||||
status = NC_EBADTYPE;
|
||||
return status;
|
||||
}
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
TOPSRCDIR=@abs_top_srcdir@
|
||||
TOPBUILDDIR=@abs_top_builddir@
|
||||
TOPSRCDIR='@abs_top_srcdir@'
|
||||
TOPBUILDDIR='@abs_top_builddir@'
|
||||
|
||||
set -e
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user