Commit Graph

286 Commits

Author SHA1 Message Date
Dennis Heimbigner
7dce1d00f3 add ref to tst_h_scalar 2013-07-10 21:17:36 +00:00
Russ Rew
e4f9350c23 Quincey's fixes for NCF-56, "netcdf-4 can't read HDF5 scalar atts".
Also added ability capability for netCDF-4 to write and read NIL
values for string type attributes and variables, so these can be read
if used in HDF5 files.

Include are additions to CMakeLists files to reflect new tests.
2013-07-10 20:09:31 +00:00
Russ Rew
6cd8fca60d Quincey's fixes for NCF-250, netCDF-4 parallel independent access with
unlimited dimension hanging.  Extending the size of an unlimited
dimension in HDF5 must be a collective operation, so now an error is
returned if trying to extend in independent access mode.

Quincey's bug fixes for parallel build portability, particularly
OpenMPI on MacOS-X.
2013-07-08 21:31:13 +00:00
Ward Fisher
33d3d06971 Added initial 'make dist', 'make distcheck' support to
CMake-based builds.
2013-06-03 16:42:04 +00:00
Dennis Heimbigner
c583f91992 merge with trunk and fix conflicts 2013-05-10 17:04:28 +00:00
Russ Rew
6ebc98d254 Fix NCF-247 bug, and add test for bug fix. 2013-04-22 22:34:21 +00:00
Ward Fisher
9f187a1484 Merged the fix for NCF-29 from Quincy into the trunk. 2013-03-26 18:57:26 +00:00
Dennis Heimbigner
c659633d2e merge from trunk 2013-03-26 16:45:02 +00:00
Russ Rew
b36dc5b5fb Fix NCF-244 bug for case where using different order for defining
coordinate variables and their associated dimensions occurs in any
subgroup, rather than just the root group.  If this occurs, the
variable attribute "_Netcdf4Dimid" is created for every dimension
scale.

Also add a test for this bug fix in tst_dims3.nc, based on Pedro
Vicente's demo.
2013-03-26 15:14:19 +00:00
Dennis Heimbigner
dea3c726c8 merge trunk into this branch 2013-03-15 20:31:07 +00:00
Dennis Heimbigner
9eaac2a595 Apply Wei-Keng's fix
for JIRA issue NCF-241.
This is only temporary
until I can make pnetcdf
operate as a separate dispatch table.

Also, fix nc_test4/tst_pnetcdf
to open with nc_open_par;
this is necessary because a pnetcdf
created file cannot be opened
as a netcdf classic file.
2013-03-13 17:34:47 +00:00
Ward Fisher
03fb6a2ac2 Merging latest changes from netcdf-cmake branch. 2013-03-11 21:13:51 +00:00
Russ Rew
bf038bceb8 Add test for bug NCF-234 fix 2013-03-10 23:57:06 +00:00
Koziol
0f29dd60c0 Description:
Fix Jira issue NCF-29 (https://bugtracking.unidata.ucar.edu/browse/NCF-29):
making the netCDF-4 library ignore HDF5 datasets and attributes which have
datatypes (such as references) that it doesn't understand.

Tested on:
    Mac OSX/64 10.8.2 (amazon) w/--enable-netcdf-4 --enable-extra-tests --enable-extra-example-tests
        --disable-shared --enable-logging
2013-03-01 08:10:28 +00:00
Ward Fisher
0444a6c711 Fixed a couple of tests on Windows,
Fixed some compile errors on Windows.
2013-02-21 23:56:15 +00:00
Ward Fisher
ddf3c31bb0 Corrected a handful of syntax issues in CMake config files,
probably introduced more.  

Added CMake-related files to Makefile.am files for inclusion
when creating a distribution package.
2013-02-20 23:28:28 +00:00
Dennis Heimbigner
b0b6c77a3e 1. corrected the nc_get_varm/put_varm documentation
to indicate that they only work for atomic types,
   not user defined types.

2. modified NCDEFAULT_{get/put}_vars to no longer use
   nc_get/put_varm. They now directly use nc_get/put_vara
   directly. This means that nc_get/put_vars now work
   properly for user defined types as well as atomic types.

3. Added test cases for get_vars/put_vars with a
   user defined type. Tests placed into
   nc_test/tst_compounds.c
2013-02-17 23:42:15 +00:00
Ward Fisher
51848614c3 Corrected parallel support in CMake, including
library checks and parallel IO tests.  Updated 
CMake-related documentation.
2013-02-12 22:22:54 +00:00
Russ Rew
ba1a494579 Fix bug NCF-226 2013-02-11 18:04:03 +00:00
Ward Fisher
8d6bfcd534 Added new tests to CMake test system. 2013-02-06 23:09:19 +00:00
Russ Rew
5c9368a7fa Fix bug NCF-222, scalar non-coordinate variables with same name as dimensions 2013-02-04 15:48:47 +00:00
Russ Rew
fab1c8675c Fix NCF-217, a bug depending on order of calls to netCDF-4 functions 2013-02-01 17:38:26 +00:00
Russ Rew
3ef3b35a94 Refactor to share functions between ncdump and nccopy. Merge nccopy
enhancements, based on contributed code from Martin van Driel, to
support -v, -g, -V, and -G options for selecting groups and variables
in output.  Fix all clang warnings from nccopy and ncdump sources, as
well as a few other cleanup changes to testing code.
2013-01-23 17:45:29 +00:00
Dennis Heimbigner
39bed98c0b fix pnetcdf problems reported by russ 2013-01-17 18:43:34 +00:00
Ward Fisher
91188cea7a Merging CMake branch into trunk. Changes include:
CMake related changes in CMakeLists.txt files,
cmake_config.h.in. Other changes relate to 
Windows-specific issues, and changes made
when regenerating generated source files.
2013-01-15 22:43:09 +00:00
Russ Rew
592a120a55 Fixed bug NCF-206 (Fix strided access for NC_STRING type). Verified
fix with new test for strided access for NC_STRING type.
2012-11-19 17:20:53 +00:00
Ward Fisher
6504c2b093 2012-09-14 21:53:08 +00:00
Ward Fisher
c271c81ac4 2012-09-14 21:35:25 +00:00
Ward Fisher
e55d002dbc Merged Dennis' changes from trunk. 2012-09-06 21:15:37 +00:00
Dennis Heimbigner
5ca78309cc The effect of this change is to make the struct NC structure
contain as little file-type specific info as possible.  It
modifies especially libsrc so that all of the netcdf-3 data
that used to be in struct NC is now kept in a separate chunk
of data pointed to by the struct NC. This makes all of
current protocols consistent: netcdf-3, netcdf-4, and dap.
2012-09-06 19:44:03 +00:00
Ward Fisher
e8453be1e5 Merged from trunk into branch 2012-08-20 18:30:04 +00:00
Russ Rew
8d53da4826 Fixed bug "adding a bad _FillValue" bug (NCF-190). Fixed minor bugs
reported by static analysis, including memory leak in ncdump, missing
size_t cast for chunk cache.  Fixed various doc problems, including
byte vs. char issues, missing NC_UBYTE in type list, needed link to
"Building with Windows" page.
2012-08-16 18:31:48 +00:00
Ward Fisher
14619ec4c4 2012-08-09 18:40:41 +00:00
Ward Fisher
0607b62375 Added coverage test flags to CMakeLists.txt files. 2012-08-09 17:07:41 +00:00
Ward Fisher
0ee2fba307 Expanded ctest functionality. 2012-08-07 20:21:44 +00:00
Ward Fisher
02828e917a Integrated more tests, added additional CMake functionality 2012-08-06 23:07:40 +00:00
Dennis Heimbigner
b083b9e758 fix == in shell scripts 2012-07-17 20:13:17 +00:00
Dennis Heimbigner
22981c31cf remove dap tests from anywhere but ncdap_test 2012-06-21 22:00:49 +00:00
Russ Rew
79cde861ac Delete obsolete libdiskless directory, replaced by new diskless
implementation.  Deleted obsolete win32, soon to be replaced by Ward's
Windows 32- and 64-bit fixes for building with MSYS/MinGW.  Made
cosmetic cleanup to output of "make check" to make it easier for users
to interpret.  Fixed bug NCF-175: ncdump -t incorrectly interpreting
units attribute (such as "days") without a base time (such as "since
2007-01-01") as a time unit.

Changed name to 4.2.1-beta.
2012-06-12 21:50:02 +00:00
Russ Rew
dbaf62f5e6 Updated some links in Doxygen version of user guide. Fixed some
range_error checks in netCDF-4 type conversion code.  Made netCDF
attribute tests with type conversion more comprehensive and stringent,
fixing bugs identified with better tests.  Changed a test in
nc_test/tst_atts.c to use netCDF-3 file instead of netCDF-4 file,
because that directory is supposed to be for tests that work with
--disable-netcdf-4.  Added test demonstrating NCF-171 bug on 32-bit
platforms, only run when configured with --enable-extra-tests.
2012-05-24 16:29:22 +00:00
Dennis Heimbigner
4f68d6c5f8 win32/mingw fixes 2012-05-15 03:13:08 +00:00
Russ Rew
4f6b3a04c4 Fix ncdump bug (NCF-169), not escaping characters special to CDL in enumeration labels. 2012-05-07 12:58:22 +00:00
Dennis Heimbigner
e42d7d7f61 fix bug in opaque parsing 2012-05-05 22:31:24 +00:00
Russ Rew
c6f399c731 Fix non-portable test that depends on nonstandardized floating-point format using e+08, not e+008. Fixes for some problems reported in scan-build static analysis. 2012-04-23 23:59:24 +00:00
Dennis Heimbigner
00e50f5a44 1. changed from using port 8080 to 8081 for motherlode
2. Fixed Ward's IGNORE problem with oc
3. Mmap support now works.
4. Fix an uninitialized variable pointed out by Russ in dnclog.c
2012-04-22 20:34:21 +00:00
Russ Rew
fa3fbbcc92 Fixes for NCF-150, bugs in libsrc4 with handling strings in non-netCDF-4 HDF5 files. Added new test in nc_test4 to verify fixes. 2012-04-20 15:42:55 +00:00
Dennis Heimbigner
353b7ebf53 fix bug in memio.c realloc code 2012-04-12 02:06:28 +00:00
Dennis Heimbigner
a169a8383c fixed type bug in tst_createfiles.c: int[]->size_t[] 2012-03-31 19:11:33 +00:00
Dennis Heimbigner
c417a58747 add some debugging help to fix snapshot error 2012-03-30 21:51:31 +00:00
Dennis Heimbigner
28bd09236b move single use macro to using program 2012-03-28 16:19:16 +00:00
Dennis Heimbigner
7e27052f87 - Implemented diskless files for both netcdf classic and extended.
The in-memory files can be made persistent if nc_create is called with
  NC_DISKLESS|NC_WRITE flags set. Initial test case also included.
- Modified ncio mechanism to support
  multiple ncio packages; this is so we
  can have posixio and memio operating
  at the same time.
- cleanup up a bunch of lint issues (unused variables, etc).
2012-03-26 01:34:32 +00:00
Dennis Heimbigner
99eef24bc2 - Fix NCF-158 to modify ncgen flag defaults.
- Fix NCF-157 to modify DAP code to support
  partial variable retrieval.
- Fix of NCF-154 to solve problem of ncgen
  improperly processing data lists for variables
  of size greater than 2**18 bytes.
- Fix ncgen processing of char variables that have
  multiple unlimited dimensions.
- Partly fix Jira issue: NCF-145 (vlen issues).
- Benchmark program nc_test4/tst_ar4_*) requires arguments
  and should only be invoked inside a shell
  script; fixed so that they terminate cleanly
  if invoked with no arguments.
- Fix the Doxygen processing so it will work
  with make distcheck.
- Begin switchover to using an alternative to ncio.
- Begin support for in-memory (diskless) files.
2012-03-14 23:26:48 +00:00
Russ Rew
118ebceeef remove temporary test 2012-02-21 12:53:53 +00:00
Dennis Heimbigner
7e63849e03 added some notes about attributes 2012-02-15 22:33:28 +00:00
Russ Rew
091d46081f remove verbose output from chunk tests 2012-02-05 21:34:14 +00:00
Russ Rew
e39dc1ed39 Revert libtool version to 7.1.1. Disable libdiskless. 2012-01-12 23:27:30 +00:00
Dennis Heimbigner
a4817c7888 make knmi tests run properly 2011-12-15 20:24:54 +00:00
Dennis Heimbigner
efd9808b0a completely rewritten constraint system 2011-11-14 04:20:19 +00:00
Dennis Heimbigner
d10a2605ce moved librpc/ from major branch to trunk 2011-10-23 20:17:56 +00:00
Ed Hartnett
31d81f85ab enhanced knmi performance testing 2011-10-05 13:43:20 +00:00
Ed Hartnett
7b47adf3a1 removed executable permissions from all code files 2011-10-04 16:05:11 +00:00
Ed Hartnett
8945e92708 fixed some missing config.h problems 2011-09-26 10:14:55 +00:00
Dennis Heimbigner
16dee702b7 fix NCF-120 2011-09-15 16:57:16 +00:00
Ed Hartnett
b395c3f03f scalar varaibles working for diskless files 2011-08-26 11:17:55 +00:00
Ed Hartnett
fd324b3b88 fixed test that caused valgrind to complain 2011-08-25 13:46:34 +00:00
Ed Hartnett
fde5e75730 removed diskless files for non-netcdf-4 builds 2011-08-23 15:07:24 +00:00
Ed Hartnett
d58c18c623 added diskless files API, subsetting not working, classic model only 2011-08-16 21:04:33 +00:00
Ed Hartnett
cd9841c6ae added test for netCDF-4 performance 2011-08-15 13:27:10 +00:00
Ed Hartnett
7a2774c8d1 took out repeated definitions of timeval_subtract function 2011-08-15 11:37:45 +00:00
Ed Hartnett
6a97ad3f08 fixed some other def_var_chunking calls 2011-08-12 14:34:37 +00:00
Ed Hartnett
f81628eeb1 fixed def_var_chunking call bug 2011-08-12 14:24:03 +00:00
Ed Hartnett
5ce7dd290a added forgotten file 2011-07-20 21:32:41 +00:00
Ed Hartnett
728177f25d added beginning of test contributed by KNMI 2011-07-20 19:44:27 +00:00
Ed Hartnett
069574d842 make new parallel I/O flag requirement work with pnetcdf library 2011-06-03 13:58:34 +00:00
Ed Hartnett
c199d81417 fixed fortran parallel I/O flag bug 2011-06-02 22:46:15 +00:00
Ed Hartnett
414b6fefb2 added F77 parallel test and clean up a little 2011-05-23 15:34:42 +00:00
Ed Hartnett
d469f39e3c workaround for HDF5 dimscale issue 2011-05-19 19:22:43 +00:00
Ed Hartnett
d1a6aa38d8 found HDF5 dimscale bug 2011-05-19 17:36:47 +00:00
Ed Hartnett
25ec2b9a54 found HDF5 dimscale bug 2011-05-19 17:36:25 +00:00
Ed Hartnett
e2685a1475 changes to remove EXTERN_LDFLAG from build, also to fix netCDF-4 sync bug 2011-05-17 19:14:35 +00:00
Ed Hartnett
2f4cf5382e took out ldflags in Makefile.am files 2011-05-11 17:09:12 +00:00
Ed Hartnett
841c9c35b0 reduce load of parallel testing 2011-05-02 14:12:32 +00:00
Ed Hartnett
74c1e894b3 fixed use of szip library 2011-04-29 18:19:12 +00:00
Ed Hartnett
687beb0261 added forgotten test file 2011-03-21 16:00:55 +00:00
Ed Hartnett
0259975e26 changes in response to user feedback to rc1, plus cleaned up H5 test dependancy 2011-03-21 15:45:17 +00:00
Ed Hartnett
e5c8e924e2 more tests for Jeff W. 2011-03-21 09:47:37 +00:00
Ed Hartnett
965a3aac70 minor refactor of the build system to work better for cross-compiling 2011-03-15 10:19:08 +00:00
Ed Hartnett
7d97bbadf9 fixed missing benchmarking shell script in distribution 2011-02-24 10:59:22 +00:00
Ed Hartnett
1d810b5034 fixed some hdf4 configure settings, added more hdf4 tests 2011-01-28 18:01:37 +00:00
Ed Hartnett
2ebb1cbafc fixed problems with parallel I/O of classic files with pnetcdf library 2011-01-28 12:45:52 +00:00
Dennis Heimbigner
209742ebec Fixed dap memory leaks 2010-12-17 23:54:09 +00:00
Russ Rew
7fb25a2a5a Jeff Whitaker's nc-config change. Cosmetic change to benchmark output. 2010-11-16 23:08:42 +00:00
Russ Rew
5e1967e466 Put gettimeofday(&start_time, ...) call in the right place for meaningful timings. 2010-11-12 21:18:11 +00:00
Ed Hartnett
e22ff1d34a added timing test of HDF5 many attributes creation 2010-11-12 20:12:32 +00:00
Ed Hartnett
35b0c5422d got benchmark build working agian 2010-11-12 18:09:12 +00:00
Russ Rew
2ba3602188 remove writing attributes, since already tested in bm_many_atts benchmark 2010-11-12 05:36:24 +00:00
Russ Rew
171f42da85 Documentation fixes for udunits, cxx4. New benchmark programs for a large number of objects (groups, variables, attributes). 2010-11-12 03:56:26 +00:00
Ed Hartnett
c2b967be53 changes to make parallel tests script output 2010-10-20 17:20:28 +00:00
Ed Hartnett
211225da2b fixed parallel test by removing BAIL macro 2010-10-15 13:21:43 +00:00
Ed Hartnett
a658960034 added more valgrind testing 2010-10-13 22:53:25 +00:00
Ed Hartnett
5923f92119 adding missing include in parallel I/O test program 2010-10-13 15:05:00 +00:00
Ed Hartnett
75d38d4308 fixed for missing header file 2010-10-08 20:14:19 +00:00
Ed Hartnett
64d614fd87 added missing file, fixed includes, removed unneeded header file 2010-10-08 20:08:24 +00:00
Ed Hartnett
65c54d88f5 fixed some AIX portability issues, added tests, especially valgrind tests 2010-10-08 18:54:53 +00:00
Dennis Heimbigner
80e693a444 enforce --disable-dap-remote-tests 2010-09-02 19:34:46 +00:00
Ed Hartnett
a943d702dd whoops, forgot to add this file 2010-08-23 13:21:12 +00:00
Ed Hartnett
cd6468ae14 cleaned up some memory problems, added nc_inq_path for classic and netcdf-4 files 2010-08-20 19:50:59 +00:00
Ed Hartnett
a27fd4390c added opendap memory test 2010-08-20 17:20:32 +00:00
Ed Hartnett
469731fd88 inq path works for netcdf-4 2010-08-19 18:15:48 +00:00
Ed Hartnett
1aedb82327 fixed some memory problems, more progress towards nc_inq_path 2010-08-19 17:37:29 +00:00
Ed Hartnett
cdf3d497fd turned off failed test 2010-08-18 15:43:37 +00:00
Ed Hartnett
38383a8b4c forgotten file added 2010-08-18 15:32:21 +00:00
Ed Hartnett
a0e1b037e5 added nc_inq_path in dispatch tables 2010-08-18 15:11:17 +00:00
Ed Hartnett
96970bba9e fixed HDF4 problem with allocated metadata storage 2010-07-06 14:56:28 +00:00
Ed Hartnett
0e855e0dc5 more changes to make netcdf-4 use less memory per variable 2010-07-01 11:39:34 +00:00
Ed Hartnett
6de0e1698e fixed parallel make problem in oc directory, fixed extra-test problem 2010-06-30 14:55:57 +00:00
Ed Hartnett
e8218ab23b moved header files to include dir, refactored libdispatch, cleaned up Makefile.am files 2010-06-29 14:11:48 +00:00
Ed Hartnett
f0a72cbefb fixed broken classic-only build 2010-06-28 17:17:43 +00:00
Russ Rew
ef66f0cc06 Merged latest trunk changes to my branch. 2010-06-24 22:07:01 +00:00
Ed Hartnett
2ddea973a3 fixed valgrind tests some more 2010-06-24 08:52:03 +00:00
Russ Rew
07967fba22 Merged latest trunk changes to my branch. 2010-06-24 05:23:23 +00:00
Ed Hartnett
f6447ee94c fixed extra-test libsrc4/tst_h_vl2 problem and valgrind test problems 2010-06-23 13:57:33 +00:00
Ed Hartnett
204685b257 got valgrind tests to pass 2010-06-23 13:20:39 +00:00
Russ Rew
8a013d4f51 Changed calls in tests from deprecated _ubyte functions to equivalent
_uchar functions.
2010-06-22 22:41:04 +00:00
Ed Hartnett
ad5bb5a1b4 fixed tst_v2 in nc_test4/Makefile.am 2010-06-22 15:04:06 +00:00
Ed Hartnett
fc4a4ea189 finished breaking up netcdf.m4 into c files. 2010-06-22 13:25:14 +00:00
Ed Hartnett
e5512f4e56 removed v2 test in nc_test4 when --enable-c-only is used 2010-06-22 10:18:15 +00:00
Ed Hartnett
bb57cf2e4b moved functions out of m4 into c files in libdispatch/netcdf.m4 2010-06-18 14:01:51 +00:00
Ed Hartnett
7a31e82ec3 cleaned up test files better 2010-06-15 16:05:30 +00:00
Ed Hartnett
0b54b49991 moved some tests which used v2 API from libsrc4 to nc_test4, to allow the library to be built before the tests 2010-06-15 15:24:28 +00:00
Ed Hartnett
45538c2613 got extra-tests working 2010-06-11 17:07:34 +00:00
Ed Hartnett
4496123ff7 moved tests t_nc and t_type from libsrc to nc_test and nc_test4 to simplify build 2010-06-10 21:10:50 +00:00
Ed Hartnett
57d743dddb fixed build problems for libcf/gridspec, pnetcdf, and hdf4 2010-06-10 17:18:48 +00:00
Ed Hartnett
bb0035c95d fixed Makefile.am includes to find new netcdf.h location 2010-06-07 15:40:31 +00:00
Ed Hartnett
92ccf1c5fa moved headers to include directory 2010-06-03 20:22:55 +00:00
Ed Hartnett
18f4bca367 moving to trunk subdir 2010-06-03 13:24:43 +00:00