Changeset 296


Ignore:
Timestamp:
18/11/04 11:57:15 (15 years ago)
Author:
spascoe
Message:

Added a description of crashes and more test cases in the test directory.

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  
    55 
    66# Configuration for Stephen on Hurricane 
    7 #CDAT_SRC = /research/home/spascoe/src/cpdn/cdunifpp/cdat-4.0b3 
    8 #NETCDF_INC = /usr/local/include 
    9 #NETCDF_LIB = /usr/local/lib 
     7CDAT_SRC = /research/home/spascoe/src/cpdn/cdunifpp/cdat-4.0b3 
     8NETCDF_INC = /usr/local/include 
     9NETCDF_LIB = /usr/local/lib 
    1010 
    1111# 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 
     22CPP_FLAGS = -DDEBUG 
     23 
     24############################################################################# 
    1525 
    1626LIBCDMS= $(CDAT_SRC)/libcdms/lib 
    1727#LIBCDMS = /usr/local/cdat-4.0b/lib 
     28 
    1829 
    1930INCLUDES = -I$(CDAT_SRC)/libcdms/include -I$(NETCDF_INC) -I$(HOME)/include 
     
    2637 
    2738cu2netcdf.o: cu2netcdf.c 
    28         gcc -c -g $(INCLUDES) -o cu2netcdf.o cu2netcdf.c 
     39        gcc -c -g $(INCLUDES) $(CPP_FLAGS) -o cu2netcdf.o cu2netcdf.c 
    2940 
    3041 
  • IO_handling/trunk/ppio/cu2netcdf/cu2netcdf.c

    r295 r296  
    1111#include "cdunif.h" 
    1212 
    13 #define DEBUG 
    14 #define NC3 
    1513/* Maximum array size copied between variables at one time. */ 
    1614#define VARCHUNK_MAX 0xffffff 
     
    2220#define ERROR(msg) \ 
    2321  (fprintf(stderr, __FILE__ ":%d:%s\n", __LINE__, msg), abort())  
    24 //#include "dmalloc.h" 
    2522#else 
    2623#define ERROR(msg) (fprintf(stderr, "Error: %s\n", msg), exit(1)) 
     24#endif 
     25 
     26#ifdef DMALLOC_INC 
     27#include "dmalloc.h" 
    2728#endif 
    2829 
     
    225226  } 
    226227#else 
    227   if ((nc_status=ncattput(c->outfileid, outvarid, attname, atttype, attlen, 
     228  if ((nc_status=ncattput(c->outfileid, outvarid, attname, cutype2nctype(atttype), attlen, 
    228229                          (void *)attval)) == -1) 
    229230    ERROR("ncattput failed"); 
Note: See TracChangeset for help on using the changeset viewer.