mirror of
https://github.com/Unidata/netcdf-c.git
synced 2025-01-30 16:10:44 +08:00
25f062528b
The file docs/indexing.dox tries to provide design information for the refactoring. The primary change is to replace all walking of linked lists with the use of the NCindex data structure. Ncindex is a combination of a hash table (for name-based lookup) and a vector (for walking the elements in the index). Additionally, global vectors are added to NC_HDF5_FILE_INFO_T to support direct mapping of an e.g. dimid to the NC_DIM_INFO_T object. These global vectors exist for dimensions, types, and groups because they have globally unique id numbers. WARNING: 1. since libsrc4 and libsrchdf4 share code, there are also changes in libsrchdf4. 2. Any outstanding pull requests that change libsrc4 or libhdf4 are likely to cause conflicts with this code. 3. The original reason for doing this was for performance improvements, but as noted elsewhere, this may not be significant because the meta-data read performance apparently is being dominated by the hdf5 library because we do bulk meta-data reading rather than lazy reading. |
||
---|---|---|
.. | ||
add.c | ||
add.h | ||
atttests.c | ||
cdftests.c | ||
CMakeLists.txt | ||
compare_test_files.sh | ||
depend | ||
dimtests.c | ||
driver.c | ||
emalloc.c | ||
emalloc.h | ||
error.c | ||
error.h | ||
Makefile.am | ||
misctest.c | ||
README | ||
rec.c | ||
ref_nctest_64bit_offset.nc | ||
ref_nctest_classic.nc | ||
slabs.c | ||
testcdf.h | ||
tests.h | ||
timesum.awk | ||
tst_rename.c | ||
val.c | ||
val.h | ||
vardef.c | ||
varget.c | ||
vargetg.c | ||
varput.c | ||
varputg.c | ||
vartests.c | ||
vputget.c | ||
vputgetg.c |
This directory contains source code for nctest, an extensive test program for the entire netCDF library. Before compiling the sources in this directory, you must have already made the netCDF library from the ../src directory. For UNIX, just type "make". Then, when "nctest" is successfully made, invoke it with "nctest". For VMS, type "@make". The make.com, make.opt, and *-vms files are for VMS only. When nctest.exe is successfully made, invoke it with "run nctest". Output from the test program should look like the following: --- Testing nccreate ... --- Testing ncopen ... --- Testing ncredef ... --- Testing ncendef ... --- Testing ncclose ... --- Testing ncinquire ... --- Testing ncsync ... --- Testing ncabort ... --- Testing ncdimdef ... --- Testing ncdimid ... --- Testing ncdiminq ... --- Testing ncdimrename ... --- Testing ncvardef ... --- Testing ncvarid ... --- Testing ncvarinq ... --- Testing ncvarput1 ... --- Testing ncvarget1 ... --- Testing ncvarput ... --- Testing ncvarget ... --- Testing ncvarrename ... --- Testing ncattput ... --- Testing ncattinq ... --- Testing ncattget ... --- Testing ncattcopy ... --- Testing ncattname ... --- Testing ncattrename ... --- Testing ncattdel ... --- Testing nctypelen ... except that on VMS systems, the line "Doesn't support shared access on vms" will appear a couple of times after the "ncopen" and "ncsync" tests.