mirror of
https://github.com/Unidata/netcdf-c.git
synced 2025-01-18 15:55:12 +08:00
This commit is contained in:
parent
b995d52b73
commit
1578ddac0c
4
cf
4
cf
@ -1,8 +1,8 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
#X="-x"
|
#X="-x"
|
||||||
|
|
||||||
HDF5=1
|
#HDF5=1
|
||||||
DAP=1
|
#DAP=1
|
||||||
#CDMR=1
|
#CDMR=1
|
||||||
#RPC=1
|
#RPC=1
|
||||||
|
|
||||||
|
@ -129,15 +129,6 @@ extern int NCDISPATCH_initialize(void);
|
|||||||
extern NC_Dispatch* NC3_dispatch_table;
|
extern NC_Dispatch* NC3_dispatch_table;
|
||||||
extern int NC3_initialize(void);
|
extern int NC3_initialize(void);
|
||||||
|
|
||||||
/* Diskless */
|
|
||||||
extern NC_Dispatch* NCD_dispatch_table;
|
|
||||||
extern int NCD_initialize(void);
|
|
||||||
|
|
||||||
#ifdef USE_NETCDF4
|
|
||||||
extern NC_Dispatch* NC4_dispatch_table;
|
|
||||||
extern int NC4_initialize(void);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef USE_DAP
|
#ifdef USE_DAP
|
||||||
extern NC_Dispatch* NCD3_dispatch_table;
|
extern NC_Dispatch* NCD3_dispatch_table;
|
||||||
extern int NCD3_initialize(void);
|
extern int NCD3_initialize(void);
|
||||||
@ -145,6 +136,13 @@ extern int NCD3_initialize(void);
|
|||||||
|
|
||||||
#ifdef USE_NETCDF4
|
#ifdef USE_NETCDF4
|
||||||
|
|
||||||
|
extern NC_Dispatch* NC4_dispatch_table;
|
||||||
|
extern int NC4_initialize(void);
|
||||||
|
|
||||||
|
/* Diskless */
|
||||||
|
extern NC_Dispatch* NCD_dispatch_table;
|
||||||
|
extern int NCD_initialize(void);
|
||||||
|
|
||||||
#ifdef USE_DAP
|
#ifdef USE_DAP
|
||||||
extern NC_Dispatch* NCD4_dispatch_table;
|
extern NC_Dispatch* NCD4_dispatch_table;
|
||||||
extern int NCD4_initialize(void);
|
extern int NCD4_initialize(void);
|
||||||
@ -155,6 +153,11 @@ extern NC_Dispatch* NCCR_dispatch_table;
|
|||||||
extern int NCCR_initialize(void);
|
extern int NCCR_initialize(void);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef BUILD_RPC
|
||||||
|
extern NC_Dispatch* NCRPC_dispatch_table;
|
||||||
|
extern int NCRPC_initialize(void);
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif /*USE_NETCDF4*/
|
#endif /*USE_NETCDF4*/
|
||||||
|
|
||||||
/* Vectors of ones and zeros */
|
/* Vectors of ones and zeros */
|
||||||
|
@ -58,6 +58,7 @@ NC_Dispatch NCD_dispatcher =
|
|||||||
|
|
||||||
NCD_inq_var_all,
|
NCD_inq_var_all,
|
||||||
|
|
||||||
|
#ifdef USE_NETCDF4
|
||||||
NCD_show_metadata,
|
NCD_show_metadata,
|
||||||
NCD_inq_unlimdims,
|
NCD_inq_unlimdims,
|
||||||
|
|
||||||
@ -97,7 +98,7 @@ NC_Dispatch NCD_dispatcher =
|
|||||||
NCD_def_var_endian,
|
NCD_def_var_endian,
|
||||||
NCD_set_var_chunk_cache,
|
NCD_set_var_chunk_cache,
|
||||||
NCD_get_var_chunk_cache,
|
NCD_get_var_chunk_cache,
|
||||||
|
#endif /* USE_NETCDF4 */
|
||||||
};
|
};
|
||||||
|
|
||||||
NC_Dispatch* NCD_dispatch_table = NULL; /* Moved here from ddispatch.c */
|
NC_Dispatch* NCD_dispatch_table = NULL; /* Moved here from ddispatch.c */
|
||||||
|
@ -1356,6 +1356,8 @@ NC_create(const char *path, int cmode, size_t initialsz,
|
|||||||
#endif
|
#endif
|
||||||
if(model == (NC_DISPATCH_NC4))
|
if(model == (NC_DISPATCH_NC4))
|
||||||
dispatcher = NC4_dispatch_table;
|
dispatcher = NC4_dispatch_table;
|
||||||
|
else if(model == (NC_DISPATCH_DISKLESS))
|
||||||
|
dispatcher = NCD_dispatch_table;
|
||||||
else
|
else
|
||||||
#endif /*USE_NETCDF4*/
|
#endif /*USE_NETCDF4*/
|
||||||
#ifdef USE_DAP
|
#ifdef USE_DAP
|
||||||
@ -1365,8 +1367,6 @@ NC_create(const char *path, int cmode, size_t initialsz,
|
|||||||
#endif
|
#endif
|
||||||
if(model == (NC_DISPATCH_NC3))
|
if(model == (NC_DISPATCH_NC3))
|
||||||
dispatcher = NC3_dispatch_table;
|
dispatcher = NC3_dispatch_table;
|
||||||
else if(model == (NC_DISPATCH_DISKLESS))
|
|
||||||
dispatcher = NCD_dispatch_table;
|
|
||||||
else
|
else
|
||||||
return NC_ENOTNC;
|
return NC_ENOTNC;
|
||||||
}
|
}
|
||||||
|
@ -29,7 +29,7 @@ libnetcdf_la_LIBADD += ${top_builddir}/libdispatch/libnetcdf2.la
|
|||||||
endif # BUILD_V2
|
endif # BUILD_V2
|
||||||
|
|
||||||
# The output library will always include netcdf3 and dispatch
|
# The output library will always include netcdf3 and dispatch
|
||||||
# libraries.
|
# libraries
|
||||||
libnetcdf_la_LIBADD += ${top_builddir}/libdispatch/libdispatch.la \
|
libnetcdf_la_LIBADD += ${top_builddir}/libdispatch/libdispatch.la \
|
||||||
${top_builddir}/libsrc/libnetcdf3.la
|
${top_builddir}/libsrc/libnetcdf3.la
|
||||||
|
|
||||||
@ -44,8 +44,10 @@ endif # USE_DAP
|
|||||||
if USE_NETCDF4
|
if USE_NETCDF4
|
||||||
|
|
||||||
AM_CPPFLAGS += -I${top_srcdir}/libsrc4
|
AM_CPPFLAGS += -I${top_srcdir}/libsrc4
|
||||||
libnetcdf_la_LIBADD += ${top_builddir}/libdiskless/libdiskless.la \
|
|
||||||
${top_builddir}/libsrc4/libnetcdf4.la
|
libnetcdf_la_LIBADD += ${top_builddir}/libsrc4/libnetcdf4.la
|
||||||
|
|
||||||
|
libnetcdf_la_LIBADD += ${top_builddir}/libdiskless/libdiskless.la
|
||||||
|
|
||||||
# netcdf4+cdmremote
|
# netcdf4+cdmremote
|
||||||
if BUILD_CDMREMOTE
|
if BUILD_CDMREMOTE
|
||||||
|
@ -7,6 +7,7 @@
|
|||||||
#include "ncdispatch.h"
|
#include "ncdispatch.h"
|
||||||
|
|
||||||
extern int NC3_initialize(void);
|
extern int NC3_initialize(void);
|
||||||
|
|
||||||
#ifdef USE_NETCDF4
|
#ifdef USE_NETCDF4
|
||||||
extern int NC4_initialize(void);
|
extern int NC4_initialize(void);
|
||||||
#endif
|
#endif
|
||||||
@ -22,6 +23,10 @@ extern int NCD4_initialize(void);
|
|||||||
extern int NCCR_initialize(void);
|
extern int NCCR_initialize(void);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef BUILD_RPC
|
||||||
|
extern int NCRPC_initialize(void);
|
||||||
|
#endif
|
||||||
|
|
||||||
int
|
int
|
||||||
NC_initialize(void)
|
NC_initialize(void)
|
||||||
{
|
{
|
||||||
@ -34,24 +39,30 @@ NC_initialize(void)
|
|||||||
|
|
||||||
if((stat = NC3_initialize())) return stat;
|
if((stat = NC3_initialize())) return stat;
|
||||||
|
|
||||||
#ifdef USE_NETCDF4
|
|
||||||
if((stat = NCD_initialize())) return stat;
|
|
||||||
if((stat = NC4_initialize())) return stat;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef USE_DAP
|
#ifdef USE_DAP
|
||||||
if((stat = NCD3_initialize())) return stat;
|
if((stat = NCD3_initialize())) return stat;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(USE_DAP) && defined(USE_NETCDF4)
|
#ifdef USE_NETCDF4
|
||||||
|
if((stat = NC4_initialize())) return stat;
|
||||||
|
|
||||||
|
if((stat = NCD_initialize())) return stat;
|
||||||
|
|
||||||
|
#ifdef USE_DAP
|
||||||
if((stat = NCD4_initialize())) return stat;
|
if((stat = NCD4_initialize())) return stat;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* cdmremote => netcdf4 */
|
|
||||||
#ifdef USE_CDMREMOTE
|
#ifdef USE_CDMREMOTE
|
||||||
if((stat = NCCR_initialize())) return stat;
|
if((stat = NCCR_initialize())) return stat;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef USE_RPC
|
||||||
|
if((stat = NCRPC_initialize())) return stat;
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#endif /* USE_NETCDF4 */
|
||||||
|
|
||||||
|
|
||||||
return NC_NOERR;
|
return NC_NOERR;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -15,7 +15,7 @@ endif # BUILD_DLL
|
|||||||
|
|
||||||
# These files comprise the netCDF-3 classic library code.
|
# These files comprise the netCDF-3 classic library code.
|
||||||
libnetcdf3_la_SOURCES = v1hpg.c onstack.h \
|
libnetcdf3_la_SOURCES = v1hpg.c onstack.h \
|
||||||
nclistmgr.c putget.m4 attr.m4 nc3dispatch.c nc.c var.c dim.c ncx.m4 \
|
nclistmgr.c putget.c attr.c nc3dispatch.c nc.c var.c dim.c ncx.c \
|
||||||
ncx.h lookup3.c pstdint.h
|
ncx.h lookup3.c pstdint.h
|
||||||
|
|
||||||
# Does the user want to use ffio, a replacement for posixio for Cray
|
# Does the user want to use ffio, a replacement for posixio for Cray
|
||||||
@ -31,7 +31,7 @@ noinst_LTLIBRARIES = libnetcdf3.la
|
|||||||
# with m4), but they are included in the distribution so that the user
|
# with m4), but they are included in the distribution so that the user
|
||||||
# does not have to have m4.
|
# does not have to have m4.
|
||||||
MAINTAINERCLEANFILES = attr.c ncx.c putget.c $(man_MANS) attrx.c putgetx.c
|
MAINTAINERCLEANFILES = attr.c ncx.c putget.c $(man_MANS) attrx.c putgetx.c
|
||||||
EXTRA_DIST = attr.c ncx.c putget.c $(man_MANS)
|
EXTRA_DIST = attr.m4 ncx.m4 putget.m4 $(man_MANS)
|
||||||
|
|
||||||
# This tells make how to turn .m4 files into .c files.
|
# This tells make how to turn .m4 files into .c files.
|
||||||
.m4.c:
|
.m4.c:
|
||||||
|
@ -21,7 +21,7 @@ endif
|
|||||||
|
|
||||||
# These are the source files for the main workhorse test program,
|
# These are the source files for the main workhorse test program,
|
||||||
# nc_test. If you pass nc_test, you are doing well.
|
# nc_test. If you pass nc_test, you are doing well.
|
||||||
nc_test_SOURCES = nc_test.c error.c test_get.m4 test_put.m4 \
|
nc_test_SOURCES = nc_test.c error.c test_get.c test_put.c \
|
||||||
test_read.c test_write.c util.c error.h tests.h
|
test_read.c test_write.c util.c error.h tests.h
|
||||||
|
|
||||||
LDADD = ${top_builddir}/liblib/libnetcdf.la
|
LDADD = ${top_builddir}/liblib/libnetcdf.la
|
||||||
@ -50,7 +50,7 @@ endif # USE_VALGRIND_TESTS
|
|||||||
|
|
||||||
# Distribute the .c files so that m4 isn't required on the users
|
# Distribute the .c files so that m4 isn't required on the users
|
||||||
# machine.
|
# machine.
|
||||||
EXTRA_DIST = test_get.c test_put.c run_valgrind_tests.sh
|
EXTRA_DIST = test_get.m4 test_put.m4 run_valgrind_tests.sh
|
||||||
|
|
||||||
# Only clean these on mainatiner-clean, because they require m4 to
|
# Only clean these on mainatiner-clean, because they require m4 to
|
||||||
# regenerate.
|
# regenerate.
|
||||||
|
Loading…
Reference in New Issue
Block a user