Ward Fisher
6689d7a63f
Adjusted behavior when casting from a signed char pointer to an unsigned type.
2017-02-03 12:21:54 -07:00
Ward Fisher
fe17747261
Corrected missing endif stanza.
2017-02-03 11:29:59 -07:00
Ward Fisher
7edb08977a
Added platform checks for ARM.
2017-02-03 11:19:39 -07:00
Ward Fisher
3e5124996e
Merged https://github.com/Unidata/netcdf-c/pull/319 to resolve some recently arisen conflicts, in preparation for larger merge.
2017-02-01 13:27:29 -07:00
Ward Fisher
a099c974dc
Deleted extraneous header file, removed extraneous .
2017-01-09 13:26:23 -07:00
Ward Fisher
5502767d98
Added code to accomodate Visual Studio 2012 in support of https://github.com/Unidata/netcdf-c/issues/304
2017-01-09 13:02:08 -07:00
Ward Fisher
029cbd7aeb
Another tweak for a rushed fix.
2017-01-09 12:01:17 -07:00
Ward Fisher
7d75fd3731
Updated code, location of variable declarations in support of https://github.com/Unidata/netcdf-c/issues/304
2017-01-09 11:37:35 -07:00
Ward Fisher
2f3b894bec
Reverted to different code in support of https://github.com/Unidata/netcdf-c/issues/344
2017-01-04 15:40:19 -07:00
Ward Fisher
59618c481b
Removed stray comment.
2017-01-03 13:57:30 -07:00
Ward Fisher
c13c917835
Addressing an issue in https://github.com/Unidata/netcdf-c/issues/344 not sure if this is a fix, but why were the casts to float being used?
2017-01-03 12:21:54 -07:00
Ward Fisher
ad58e5232a
Small tweak to cmakelists.txt
2017-01-03 12:10:05 -07:00
Wei-keng Liao
fe9685deb4
implement an error code precedence
2016-12-01 12:31:20 -06:00
Wei-keng Liao
340f0d2a91
Classic Format Specification says: Header padding uses null (\x00) bytes
2016-11-28 11:54:16 -06:00
Wei-keng Liao
3889617a2a
bug fix: record size alignment for NC_USHORT is missing
2016-11-28 11:50:31 -06:00
Wei-keng Liao
2081ae7099
add configure option --enable-relax-coord-bound for issue #243
2016-11-12 23:58:09 -06:00
Wei-keng Liao
5137be27d1
add configure/cmake option to disable erange_fill
2016-11-03 15:14:14 -05:00
Wei-keng Liao
06c1f744e8
silence gcc compile warnings when using -Wconversion
2016-10-30 00:44:28 -05:00
Wei-keng Liao
7572e1cbbf
add sizeof checks for unsigned data types
2016-10-28 18:16:49 -05:00
Wei-keng Liao
309303e34e
remove argument fillv for get APIs as we use default fill values for fillv
2016-10-28 10:34:51 -05:00
Wei-keng Liao
39ea0963e1
make ERANGE_FILL default
2016-10-25 15:10:25 -05:00
Wei-keng Liao
7fbde1b5bc
add a new option ERANGE_FILL to use fill values when NC_ERANGE occurs; sync ncx.m4 with PnetCDF
2016-10-25 15:09:52 -05:00
Wei-keng Liao
c282d18080
add two fill value inquiry subroutines
2016-10-25 13:14:03 -05:00
Wei-keng Liao
0d24dccbd3
copy ncx.m4 from PnetCDF
2016-10-13 02:15:45 -05:00
Wei-keng Liao
df91c19f3c
add NULL name check
2016-10-12 13:45:41 -05:00
Wei-keng Liao
125ca43cfb
add NULL name check
2016-10-12 13:33:44 -05:00
Wei-keng Liao
8bf99abe77
silence compile warning from -Wsign-conversion
2016-10-10 00:07:24 -05:00
Wei-keng Liao
dbb9be59d2
temporally disable __arm__ for testing
2016-10-09 22:21:32 -05:00
Wei-keng Liao
f336af5474
now ncx.m4 is the same as PnetCDF's except PNETCDF is not defined
2016-10-09 21:58:43 -05:00
Wei-keng Liao
1f32277afb
use ncx_get_uint32 instead of ncx_get_int_int
2016-10-06 00:43:40 -05:00
Wei-keng Liao
f6804fc5c0
handle special case when calling _uchar APIs to access NC_BYTE variables in CDF-2 file format
2016-10-06 00:42:55 -05:00
Wei-keng Liao
688ad6d218
handle special case when calling _uchar APIs to access NC_BYTE attributes in CDF-2 file format
2016-10-06 00:41:53 -05:00
Wei-keng Liao
c277853af3
use ncx_get_uint64 instead of ncx_get_int64
2016-10-06 00:39:16 -05:00
Wei-keng Liao
4b7d9fec19
add 4 new subroutines defined in ncx.m4
2016-10-06 00:37:58 -05:00
Wei-keng Liao
39b47f6d78
borrow ncx.m4 from PnetCDF
2016-10-06 00:36:54 -05:00
Ward Fisher
cdf7717666
Updated OFF_T_MAX computation to avoid an undefined behavior warning reported by clang/gcc.
2016-09-26 10:14:38 -06:00
Greg Sjaardema
586e832f64
Fix variable and dimension renaming for nc3 with hashmap
...
The problem is that the name was being updated prior to the old
variable being removed from the hashmap. It checks whether the key and
the name of the variable being removed match, but since the name had
already been updated, the names did not match so the variable was not
removed. This patch removes the variable from the hashmap first,
then updates the name, and then adds the variable with the new name to
the hashmap.
Similar change for renaming dimensions.
2016-07-11 15:44:40 -04:00
Ward Fisher
3e24dcd575
Removed some dead assignments reported by clang.
2016-06-20 15:28:46 -06:00
Dennis Heimbigner
b4dc1dca19
More cmake fixes
2016-05-07 14:32:07 -06:00
Ward Fisher
00eaa53e0b
Corrected an issue preventing gcc-4.4 from compiling netcdf.
2016-04-26 21:09:41 +00:00
Ward Fisher
3c820589b7
Fixed a divide by zero error.
2016-04-12 11:04:41 -06:00
Ward Fisher
9d91a9684a
Merge branch 'gh252'
2016-04-12 10:03:40 -06:00
Ward Fisher
baec7157a3
Clean up lingering 'make distcheck' errors.
2016-04-12 09:48:21 -06:00
Ward Fisher
3f773258bd
Corrected an issue with hashmap and missing random() function on Windows using Visual Studio 2013
2016-04-11 16:07:27 -06:00
Ward Fisher
cc803f5c00
Merge branch 'nc3-hashmap-fix' of https://github.com/gsjaardema/netcdf-c into merge-gh246
2016-04-05 15:31:06 -06:00
Ward Fisher
33e43e15f1
Merge branch 'master' into gh240 in preparation for final merge.
2016-04-05 20:28:03 +00:00
Ward Fisher
6409b11640
Modified nc_inq_type so that it will return valid information for valid data types even if the associated ncid doesn't have access to those data types. See https://github.com/Unidata/netcdf-c/issues/240 for more information.
2016-04-05 20:13:42 +00:00
Greg Sjaardema
09454cba09
Fix accessing deleted memory
2016-04-05 09:47:12 -06:00
Greg Sjaardema
1f9eb8093c
Fix duplicate key issues in nc_hashmap
...
The addition of the nc_hashmap to facilitate quick
retrieval of var and dim by name did not take into
account key collisions -- two or more names hashed
to the same value. If the keys matched, it assumed
that the names matched also.
This change fixes this incorrect assumption and
checks both the key (which is the hash of the name)
and if the keys match, it also checks that the names
match.
While there have been no instances of duplicate keys,
they are certain to occur and cause difficult to
debug issues. This fix eliminates that defect.
2016-04-05 09:07:40 -06:00
Greg Sjaardema
43ef27a407
Revert array geometric growth option
2016-03-24 06:44:41 -06:00