file: include/gen_utils.h

/* * Utilities for PRISM * * RCS Information * ------------------------------------ * $Author: ron $ * $Date: 93/07/30 08:22:35 $ * $RCSfile: sem_utils.h,v $ * $Revision: 1.3 $ * ---------------------------------------------------------------------- */ #ifndef SEM_UTILS_H #define SEM_UTILS_H #include <stdio.h> #include <math.h> #include <veclib.h> #define MAXARGS 16 /* maximum # of other arguments */ #define UNSET 0xffffff /* flag for an unset parameter */ extern char *prog; extern char *usage, *help, /* defined by the application */ *rcsid, *author; typedef struct { /* structure for storing fp/names */ FILE *fp; char *name; } aFile; typedef struct { /* ....... File structure ........ */ aFile in ; /* primary input file */ aFile out ; /* primary output file */ aFile mesh ; /* mesh coordinates file [optional] */ aFile rea ; /* session file [optional] */ aFile mor ; /* connectivity file [optional] */ } FileList; /* ................................ */ typedef struct { /* ....... Mesh structure ....... */ int nr, ns, nz, nel ; double *x, *y, *z ; } Mesh; /* Prototypes, listed by source file */ /* Functions from sem_utils.c */ #ifndef error_msg #define error_msg(a) {fprintf(stderr,#a"\n"); exit(-1);} #endif int generic_args (int argc, char *argv[], FileList *f); void Setup (FileList *f, Element **U, int nfields); #ifdef MAP // CE107 void mapField (Element_List **E, Map *mapx, Map *mapy, int dir); //OVERLOAD CALL: Map: nektar.h(?), nektar.h(?); Map: nektar.h(?), nektar.h(?) void mapfield (Element_List **E, Map *mapx, Map *mapy, int dir); //OVERLOAD CALL: Map: nektar.h(?), nektar.h(?); Map: nektar.h(?), nektar.h(?) #endif #endif


Back to Source File Index


C++ to HTML Conversion by ctoohtml