Arman Akbarian
UNIVERSITY OF BRITISH COLUMBIA
PHYSICS & ASTRONOMY DEPT.

/*----------------------------
 * libbbhutil/librnpl
 *----------------------------*/


void rdvcpy(double *r,double *s, int len)


void rivcpy(int *r, int *s, int len)


double l2norm(int N, double *vec)


double rdvmin(double *v, int n)

double rdvmax(double *v, int n)

//allcate memory and returns the pointer
double * vec_alloc(int size)

//uses name for error output if can't allocate memory
double * vec_alloc_n(int size, char * name)

int * ivec_alloc_n(int size, char * name)


//READING SDF FILES:

int gft_read_shape(const char *gf_name, const int level, int *shape)

int gft_read_full(const char *gf_name, int level, int *shape, char *cnames,
                    int rank, double *time, double *coords, double *data)

int gft_read_name(const char *file_name, const int n, char *name)

int gft_read_brief(const char *gf_name, int level,  double *data )

int gft_out_full(char *func_name, double time, int *shape,
                 char *cnames, int rank, double *coords, double *data)

int gft_out_bbox(char *func_name, double time, int *shape, int rank,
                 double *coords, double *data)


last update: Wed Aug 19, 2015