8 #define log_msg(F,L,O,...) fprintf( stderr, __VA_ARGS__ )
16 enum Elem_t {
Tetra=0,
Hexa,
Octa,
Pyramid,
Prism,
Quad,
Tri,
Line,
TetP2,
TriP2,
TetraBubble,
HexaBubble,
PrismBubble,
PyramidBubble,
TriBubble,
QuadBubble};
37 #define BLOCK_ALLOC 1000
44 std::vector<singularity>
s;
97 void interpolate_vm(
int numNodes,
float **d,
int M,
float **rd,
float rDist);
void add_singularity(singularity *s, int)
std::vector< singularity > s
int init_filament_IO(const char *meshname, int numT, FILE *fh[])
int write_connections(ElemList *elst, NodeList *nlst, filament *f, FILE *filHdls[], float t)
void interpolate_vm(int numNodes, float **d, int M, float **rd, float rDist)
void interpolateTBuffer(tbuffer *tbf)
void close_filament_IO(FILE *fh[])
int write_elems_martin(ElemList *elst, NodeList *nlst, filament *f, FILE *filHdls[], float t)
void write_filaments(filament *f, FILE *fh[], float t)
bool compute_filament(float *d0, float *d1, float vth, ElemList *elst, NodeList *nlst, filament *f, SingularityDetector_t meth)
union _singularity singularity
Integer NElems
number of elements (owned+ghost in case of LOCAL_ELEM)
Point * Node
list of nodes*
Integer NNodes
number of global nodes*
time slice buffer for post processing
float ** dr
resampled data buffer
int wdth
width of buffer, always 2*h_wdth+1
int h_wdth
half width of sample buffer
IGBheader * igb
IGB file reader.
float dt_in
temporal sampling of input data
int rwdth
width of resampling buffer
int dsize
size of data tokens in bytes
bool filled
is buffer fully loaded?
const char * dname
name of data input file
int numSamps
number of time slices in file
float rdist
rel dist of sample to center
int nodes
number of nodes in time slice
int buffered
number of samples in buffer