Changeset 296 for IO_handling
- Timestamp:
- 18/11/04 11:57:15 (16 years ago)
- Location:
- IO_handling/trunk/ppio/cu2netcdf
- Files:
-
- 4 added
- 3 deleted
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
IO_handling/trunk/ppio/cu2netcdf/Makefile
r295 r296 5 5 6 6 # Configuration for Stephen on Hurricane 7 #CDAT_SRC = /research/home/spascoe/src/cpdn/cdunifpp/cdat-4.0b38 #NETCDF_INC = /usr/local/include9 #NETCDF_LIB = /usr/local/lib7 CDAT_SRC = /research/home/spascoe/src/cpdn/cdunifpp/cdat-4.0b3 8 NETCDF_INC = /usr/local/include 9 NETCDF_LIB = /usr/local/lib 10 10 11 11 # Configuration for Stephen's laptop 12 CDAT_SRC = /home/spascoe/cvs/IO_handling/ppio/cdat-4.0b3 13 NETCDF_INC = /usr/include 14 NETCDF_LIB = /usr/lib 12 #CDAT_SRC = /home/spascoe/cvs/IO_handling/ppio/cdat-4.0b3 13 #NETCDF_INC = /usr/include 14 #NETCDF_LIB = /usr/lib 15 16 17 ## Set flags according to taste: 18 # DEBUG = error messages with file context 19 # NC3 = use netcdf3 API rather than netcdf2 20 # DMALLOC_INC = include dmalloc.h 21 #CPP_FLAGS = -DDEBUG -DNC3 -DDMALLOC_INC 22 CPP_FLAGS = -DDEBUG 23 24 ############################################################################# 15 25 16 26 LIBCDMS= $(CDAT_SRC)/libcdms/lib 17 27 #LIBCDMS = /usr/local/cdat-4.0b/lib 28 18 29 19 30 INCLUDES = -I$(CDAT_SRC)/libcdms/include -I$(NETCDF_INC) -I$(HOME)/include … … 26 37 27 38 cu2netcdf.o: cu2netcdf.c 28 gcc -c -g $(INCLUDES) -o cu2netcdf.o cu2netcdf.c39 gcc -c -g $(INCLUDES) $(CPP_FLAGS) -o cu2netcdf.o cu2netcdf.c 29 40 30 41 -
IO_handling/trunk/ppio/cu2netcdf/cu2netcdf.c
r295 r296 11 11 #include "cdunif.h" 12 12 13 #define DEBUG14 #define NC315 13 /* Maximum array size copied between variables at one time. */ 16 14 #define VARCHUNK_MAX 0xffffff … … 22 20 #define ERROR(msg) \ 23 21 (fprintf(stderr, __FILE__ ":%d:%s\n", __LINE__, msg), abort()) 24 //#include "dmalloc.h"25 22 #else 26 23 #define ERROR(msg) (fprintf(stderr, "Error: %s\n", msg), exit(1)) 24 #endif 25 26 #ifdef DMALLOC_INC 27 #include "dmalloc.h" 27 28 #endif 28 29 … … 225 226 } 226 227 #else 227 if ((nc_status=ncattput(c->outfileid, outvarid, attname, atttype, attlen,228 if ((nc_status=ncattput(c->outfileid, outvarid, attname, cutype2nctype(atttype), attlen, 228 229 (void *)attval)) == -1) 229 230 ERROR("ncattput failed");
Note: See TracChangeset
for help on using the changeset viewer.