netcdf-c/libsrc
Wei-keng Liao 0ee68a3263 This commit fixes the logical problem of using the default file formats.
The fix includes the following changes.
1. Checking and using the default file format at file create time is now
   done only when the create mode (argument cmode) does not include any
   format related flags, i.e. NC_64BIT_OFFSET, NC_64BIT_DATA,
   NC_CLASSIC_MODEL, and NC_NETCDF4.
2. Adjustment of cmode based on the default format is now done in
   NC_create() only. The idea is to adjust cmode before entering the
   dispatcher's file create subroutine.
3. Any adjustment of cmode is removed from all I/O dispatchers, i.e.
   NC4_create(), NC3_create(), and NCP_create().
4. Checking for illegal cmode has been done in check_create_mode() called
   in NC_create(). This commit removes the redundant checking from
   NCP_create().
5. Remove PnetCDF tests in nc_test/tst_names.c, so it can focus on testing
   all classic formats and netCDF4 formats.

Two new test programs are added. They can be used to test netCDF with and
without this commit.
1. nc_test/tst_default_format.c
2. nc_test/tst_default_format_pnetcdf.c (use when PnetCDF is enabled).
2018-07-28 11:18:28 -05:00
..
attr.m4 This completes (for now) the refactoring of libsrc4. 2018-03-16 11:46:18 -06:00
CMakeLists.txt Merge branch 'master' into inmem2.dmh 2018-05-16 14:24:19 -06:00
depend
dim.c This completes (for now) the refactoring of libsrc4. 2018-03-16 11:46:18 -06:00
ffio.c Merged master, DAP4 support into branch. 2017-04-19 09:29:35 -06:00
lookup3.c Follow-up trivial typos 2018-04-26 23:04:01 -04:00
Makefile.am Fix https://github.com/Unidata/netcdf-c/issues/963 2018-05-11 15:30:19 -06:00
memio.c Master merge and conflict resolution 2018-04-12 21:51:17 -06:00
mmapio.c This completes (for now) the refactoring of libsrc4. 2018-03-16 11:46:18 -06:00
nc3dispatch.c a clean commit for #383 2017-12-20 20:53:30 -06:00
nc3internal.c This commit fixes the logical problem of using the default file formats. 2018-07-28 11:18:28 -05:00
ncFile.c
ncio.c Fix https://github.com/Unidata/netcdf-c/issues/963 2018-05-11 15:30:19 -06:00
ncio.h
ncstdio.c
ncstdio.h Fix https://github.com/Unidata/netcdf-c/issues/963 2018-05-11 15:30:19 -06:00
ncx_cray.c include config.h the way suggested by autoconf 2017-03-11 13:03:17 -06:00
ncx.h Fix build on pre-C99 compilers 2017-11-26 01:47:54 +05:30
ncx.m4 ncx: use __inline with MSVC 2018-02-19 10:14:29 -05:00
posixio.c Follow-up trivial typos 2018-04-26 23:04:01 -04:00
pstdint.h
putget.m4 Promote NC_var member len from size_t to long long to fix some problems of large-variable tests on 320bit platforms. 2018-06-15 15:08:05 -05:00
t_ncio.c Merged master, DAP4 support into branch. 2017-04-19 09:29:35 -06:00
t_ncio.in
t_ncxx.m4 include config.h the way suggested by autoconf 2017-03-11 13:03:17 -06:00
test_nc.sav
v1hpg.c Promote NC_var member len from size_t to long long to fix some problems of large-variable tests on 320bit platforms. 2018-06-15 15:08:05 -05:00
var.c another typecast missed 2018-06-17 13:16:09 -05:00
winceio.c Merged master, DAP4 support into branch. 2017-04-19 09:29:35 -06:00
XGetopt.c