mirror of
https://github.com/Unidata/netcdf-c.git
synced 2024-11-21 03:13:42 +08:00
Merge branch 'master' into ejh_not_read_rename_2
This commit is contained in:
commit
b2bd90373a
@ -750,7 +750,7 @@ IF(USE_HDF5 OR ENABLE_NETCDF_4)
|
||||
SET(H5_USE_16_API 0)
|
||||
ENDIF()
|
||||
|
||||
FIND_PATH(HAVE_HDF5_H hdf5.h)
|
||||
FIND_PATH(HAVE_HDF5_H hdf5.h PATHS ${HDF5_INCLUDE_DIR})
|
||||
IF(NOT HAVE_HDF5_H)
|
||||
MESSAGE(FATAL_ERROR "Compiling a test with hdf5 failed. Either hdf5.h cannot be found, or the log messages should be checked for another reason.")
|
||||
ELSE(NOT HAVE_HDF5_H)
|
||||
|
@ -52,20 +52,17 @@ NC4_inq_type_equal(int ncid1, nc_type typeid1, int ncid2,
|
||||
if ((typeid1 <= NC_STRING && typeid2 > NC_STRING) ||
|
||||
(typeid2 <= NC_STRING && typeid1 > NC_STRING))
|
||||
{
|
||||
if (equalp) *equalp = 0;
|
||||
*equalp = 0;
|
||||
return NC_NOERR;
|
||||
}
|
||||
|
||||
/* If both are atomic types, the answer is easy. */
|
||||
if (typeid1 <= NUM_ATOMIC_TYPES)
|
||||
{
|
||||
if (equalp)
|
||||
{
|
||||
if (typeid1 == typeid2)
|
||||
*equalp = 1;
|
||||
else
|
||||
*equalp = 0;
|
||||
}
|
||||
if (typeid1 == typeid2)
|
||||
*equalp = 1;
|
||||
else
|
||||
*equalp = 0;
|
||||
return NC_NOERR;
|
||||
}
|
||||
|
||||
@ -80,7 +77,6 @@ NC4_inq_type_equal(int ncid1, nc_type typeid1, int ncid2,
|
||||
return NC_EBADTYPE;
|
||||
|
||||
/* Are the two types equal? */
|
||||
if (equalp)
|
||||
{
|
||||
hid_t hid1, hid2;
|
||||
|
||||
|
@ -2358,9 +2358,9 @@ main(int argc, char *argv[])
|
||||
&formatting_specs.nc_extended,
|
||||
&formatting_specs.nc_mode) );
|
||||
if (kind_out) {
|
||||
printf ("%s", kind_string(formatting_specs.nc_kind));
|
||||
printf ("%s\n", kind_string(formatting_specs.nc_kind));
|
||||
} else if (kind_out_extended) {
|
||||
printf ("%s", kind_string_extended(formatting_specs.nc_extended,formatting_specs.nc_mode));
|
||||
printf ("%s\n", kind_string_extended(formatting_specs.nc_extended,formatting_specs.nc_mode));
|
||||
} else {
|
||||
/* Initialize list of types. */
|
||||
init_types(ncid);
|
||||
|
Loading…
Reference in New Issue
Block a user