Page MenuHomec4science

reader_C_wrapper.h
No OneTemporary

File Metadata

Created
Mon, Nov 11, 22:25

reader_C_wrapper.h

#ifndef READER_C_WRAPPER
#define READER_C_WRAPPER
#define C_MODE 0
#define FORTRAN_MODE 1
#define DIM 3
#define TRIANGLE1 0
#define TRIANGLE2 1
#define TETRA1 2
#define TETRA2 3
#define POINT_SET 4
#define COMPRESSED 2
#define BASE64 1
#define TEXT 0
#define RESTART 1
typedef struct ReadHelper_{
void * object_ptr;
}ReadHelper;
extern ReadHelper * getNewReaderHandle(int reader_style);
//! read to file
extern void Read(ReadHelper * pH);
//! initialisation of the reader
extern void ReaderInit(ReadHelper * pH);
//! give vector with coordinates
extern void ReaderSetPoints(ReadHelper * pH,const char * name);
//! give vector to connectivity
extern void ReaderSetConnectivity(ReadHelper * pH,int element_type);
//! give vector to per node data
extern void ReaderAddNodeDataField(ReadHelper * pH,const char * name);
//! give vector to per element data
extern void ReaderAddElemDataField(ReadHelper * pH,const char * name);
//! set prefix directory
extern void ReaderSetPrefix(ReadHelper * ph,const char * dir);
//! set rank and world size params for parallel treatment
extern void ReaderSetParallelContext(ReadHelper * pH,const int me,const int wld_size);
//! free memory
extern void ReaderFreeHandle(ReadHelper * pH);
//! give vector with coordinates
extern double * ReaderGetPoints(ReadHelper* pH);
//! give vector to connectivity
extern int * ReaderGetConnectivity(ReadHelper * pH);
//! give vector to per node data
extern double * ReaderGetNodeDataField(ReadHelper * pH, const char *name);
//! give vector to per element data
extern double * ReaderGetElemDataField(ReadHelper * pH,const char *name);
//! give number of nodes
extern int ReaderGetNumberNodes(ReadHelper * pH);
//! give number of elements
extern int ReaderGetNumberElements(ReadHelper * pH);
#endif //READERPARAVIEW_C_WRAPPER

Event Timeline