Commit Graph

3262 Commits

Author SHA1 Message Date
Greg Sjaardema
e13d976e27 Replace NC_MAX_DIMS with correct NC_MAX_VAR_DIMS
The constant NC_MAX_DIMS is used to dimension the `dimids` arrays which are use to retrieve the dimension ids corresponding to the variables dimensions.  By definition, the maximum number of dimension ids is `NC_MAX_VAR_DIMS` as is documented in the `nc_inq_var` documentation:
http://www.unidata.ucar.edu/software/netcdf/netcdf-4/newdocs/netcdf-c/nc_005finq_005fvar.html

dimids   Returned vector of *ndimsp dimension IDs corresponding to the variable dimensions. The caller must allocate enough space for a vector of at least *ndimsp integers to be returned. The maximum possible number of dimensions for a variable is given by the predefined constant NC_MAX_VAR_DIMS. 

Although the default or standard values of NC_MAX_DIMS and NC_MAX_VAR_DIMS are the same, the correct value to be used here is NC_MAX_VAR_DIMS and not NC_MAX_DIMS.  Even though this currently works, it could fail if either NC_MAX_VAR_DIMS or NC_MAX_DIMS is changed and it can also provide an incorrect function usage example that may mislead developers trying to determine the correct usage of the function.
2016-01-22 20:54:52 -07:00
Ward Fisher
0ee9a4f59e Further cleanup of generated files. 2016-01-22 12:04:43 -07:00
Ward Fisher
79c021712a Removed generated tests from source control. Ensuring generated files are regenerated if m4 is present. 2016-01-22 12:03:28 -07:00
Ward Fisher
a3ec3a5d94 Merge pull request #193 from Unidata/doc-update
Doc update
2016-01-21 13:43:06 -07:00
Ward Fisher
8d162e9097 Merge branch 'master' into doc-update 2016-01-21 12:39:57 -07:00
ddirks
c8e922dc92 Tweaks to css
Fix placement of version selection dropdown and search box.
2016-01-21 11:19:23 -07:00
Ward Fisher
1805ef0668 Tweaks to style sheet with assistance from @ddirks 2016-01-21 10:11:17 -07:00
Ward Fisher
548e279fbe Merge branch 'doc-update' of https://github.com/Unidata/netcdf-c into doc-update 2016-01-19 16:24:59 -07:00
Ward Fisher
97883f81d5 Adding an obsolete fan_utils file. 2016-01-19 16:22:57 -07:00
Ward Fisher
94451d18d8 Adding fan_utils.html. 2016-01-19 16:15:51 -07:00
Ward Fisher
af626cee5f Delete old Travis configure file. 2016-01-19 11:20:41 -07:00
Ward Fisher
b86367c354 Working on netcdf document reorganization, wiring in the first of several stand-alone pages. 2016-01-15 14:59:40 -07:00
Ward Fisher
026f21a2cd Additional dead link modification. 2016-01-15 14:39:32 -07:00
Ward Fisher
75b5eeee20 Fixing links for document reorganization. 2016-01-15 14:25:24 -07:00
Ward Fisher
530ff30ae1 More doxygen tweaks. 2016-01-15 12:23:56 -07:00
Ward Fisher
21069d4684 Converted esg documentation to markdown, make it part of the generated documentation. 2016-01-15 12:17:12 -07:00
Ward Fisher
aed597784a Added esg documentation to generated documentation. 2016-01-15 11:07:18 -07:00
Ward Fisher
977be0f1c6 Merge pull request #190 from sebastic/attributes-typo
Fix 'atttributes' typo, replace with 'attributes'.
2016-01-15 10:28:11 -07:00
Greg Sjaardema
12e384c83e Merge remote-tracking branch 'upstream/master' 2016-01-14 20:21:36 -07:00
Bas Couwenberg
eb2561aaab Fix 'atttributes' typo, replace with 'attributes'. 2016-01-15 02:17:29 +01:00
Ward Fisher
60886ec7cd More work removing dead links. 2016-01-14 17:02:26 -07:00
Ward Fisher
8f4fdf1cc5 Cleaning up dead links 2016-01-14 16:53:53 -07:00
Ward Fisher
8263c76746 Doxygen refactoring. 2016-01-14 16:35:34 -07:00
Ward Fisher
374a8f4193 More cleaning up of documentation (there will probably be a lot of this) and tweaking files so that documentation renders as expected. 2016-01-14 16:02:00 -07:00
Ward Fisher
30e1cca0d0 Reorganized file/datastream IO functions in documentation. 2016-01-14 15:50:50 -07:00
Ward Fisher
3f27ec6db4 Tightening the Doxygen documentation. 2016-01-14 15:33:50 -07:00
Ward Fisher
04db4cd4a7 Removed stray style sheet option. 2016-01-14 14:29:43 -07:00
Ward Fisher
75b0bcf07e Trying to sort out why netcdf parallel documentation isn't being generated. 2016-01-14 11:02:23 -07:00
Ward Fisher
10aed48aac Updated release document header. 2016-01-13 12:20:28 -07:00
Ward Fisher
bb332ac08a Added a missing file to EXTRA_DIST. 2016-01-13 10:25:18 -07:00
Ward Fisher
c6b5aa47d1 Bumped version in Developer doxygen file. 2016-01-13 10:05:11 -07:00
Ward Fisher
60644f3c4c Bumped next development version. 2016-01-13 10:01:34 -07:00
Ward Fisher
120f1fc3fe Bumped revision in release notes. 2016-01-13 09:56:46 -07:00
Ward Fisher
d938fc6991 Updated release notes re: bump in SO version. 2016-01-11 15:29:24 -07:00
Ward Fisher
d11ed3c478 Bumped SO version in CMakeLists.txt 2016-01-11 15:27:57 -07:00
Ward Fisher
eada3d5a55 Incrementing so version. 2016-01-11 15:20:55 -07:00
Ward Fisher
a6efcb2486 Merge branch 'example-update' 2016-01-08 15:36:27 -07:00
Ward Fisher
a4d826e4fe Merge pull request #187 from Unidata/issue185
The max dimension sizes do not take CDF-5 format into account.
2016-01-08 15:35:38 -07:00
Ward Fisher
5ef5ffc2bc Corrected an inconsistency between the documentation and the example. 2016-01-08 15:29:32 -07:00
Ward Fisher
29f1885488 Merge branch 'master' into issue185 2016-01-08 14:58:49 -07:00
Ward Fisher
592860ff93 Updated release notes. 2016-01-08 13:09:00 -07:00
Ward Fisher
6867960a0c Removed debugging information. 2016-01-08 12:59:56 -07:00
Ward Fisher
65aaac62d8 Tweaked CMakeLists a bit more. 2016-01-08 12:59:37 -07:00
Dennis Heimbigner
39e9cd0ffe Fix issues with Github pull request 187
(https://github.com/Unidata/netcdf-c/pull/187)
Primary problem was cmake build errors.
2016-01-08 12:55:11 -07:00
Ward Fisher
60ef454a7f Refactoring CMakeLists.txt to make the HDF5-related logic a little more clear. Or at least, better documented. 2016-01-08 10:56:25 -07:00
Ward Fisher
d75a3ad38f Typo correction. 2016-01-07 15:50:04 -07:00
Ward Fisher
6d400c8e43 Making an allowance for Linux. 2016-01-07 15:48:31 -07:00
Ward Fisher
c822d4c6df Work progresses on a CMake system that will work with hdf5 1.8.15 and 1.8.16, as well as that will work with Windows and Linux. 2016-01-07 15:43:17 -07:00
Ward Fisher
0b373d8cf1 Work progresses, we need to handle shared and static hdf5 separately it turns out. See examples provided by hdf5 group. 2016-01-07 15:22:11 -07:00
Ward Fisher
2aa17ffb2e Additional tweaks. 2016-01-07 14:53:39 -07:00