mirror of
https://github.com/Unidata/netcdf-c.git
synced 2025-03-19 17:30:27 +08:00
fixed type bug in tst_createfiles.c: int[]->size_t[]
This commit is contained in:
parent
c417a58747
commit
a169a8383c
8
Make0
8
Make0
@ -3,10 +3,12 @@ T=t
|
||||
#VG=valgrind --leak-check=full
|
||||
|
||||
CFLAGS=-g -O0 -I. -I./include
|
||||
LDFLAGS=./liblib/.libs/libnetcdf.a -L/share/ed/local/spock/lib -lhdf5_hl -lhdf5 -lz -lm
|
||||
LDFLAGS=/tmp/install/spock/lib/libnetcdf.a -L/share/ed/local/spock/lib -lhdf5_hl -lhdf5 -lz -lm -lcurl
|
||||
LD_RUN_PATH=/tmp/install/spock/lib:/share/ed/local/spock/lib
|
||||
|
||||
all::
|
||||
${MAKE} all
|
||||
gcc -o t ${CFLAGS} ${T}.c ${LDFLAGS} -lm
|
||||
export LD_RUN_PATH; export CFLAGS; export LDFLAGS; \
|
||||
${MAKE} all ; \
|
||||
gcc -o t ${CFLAGS} ${T}.c ${LDFLAGS} -lm ; \
|
||||
${VG} ./t
|
||||
|
||||
|
4
cf
4
cf
@ -5,8 +5,8 @@ if test $# != 0 ; then
|
||||
cmds=$@
|
||||
fi
|
||||
|
||||
#HDF5=1
|
||||
#DAP=1
|
||||
HDF5=1
|
||||
DAP=1
|
||||
#CDMR=1
|
||||
#RPC=1
|
||||
#PGI=1
|
||||
|
@ -38,7 +38,7 @@ main(int argc, char **argv)
|
||||
int ncid, dimids[NDIMS3], varid;
|
||||
size_t start[NDIMS3], count[NDIMS3];
|
||||
size_t dim_len[NDIMS3] = {D0, D1, D2};
|
||||
int chunk_sizes[NDIMS3] = {1, D1, D2};
|
||||
size_t chunk_sizes[NDIMS3] = {1, D1, D2};
|
||||
float *data;
|
||||
char file_name[NC_MAX_NAME * 2 + 1];
|
||||
int d, i;
|
||||
|
Loading…
x
Reference in New Issue
Block a user