MOAB: Mesh Oriented datABase
(version 5.5.0)
|
#include <sys/resource.h>
#include <cstdlib>
#include <cstdio>
#include <iostream>
#include <cassert>
#include "iMesh.h"
Go to the source code of this file.
Macros | |
#define | VINDEX(i, j, k) ( ( i ) + ( (j)*numv ) + ( (k)*numv_sq ) ) |
#define | VINDEX(i, j, k) ( ( i ) + ( (j)*numv ) + ( (k)*numv_sq ) ) |
Functions | |
void | query_elem_to_vert (iMesh_Instance mesh) |
void | query_vert_to_elem (iMesh_Instance mesh) |
void | print_time (const bool print_em, double &tot_time, double &utime, double &stime, long &imem, long &rmem) |
void | build_connect (const int nelem, const int vstart, int *&connect) |
void | testB (iMesh_Instance mesh, const int nelem, const double *coords, int *connect) |
void | testC (iMesh_Instance mesh, const int nelem, const double *coords) |
void | compute_edge (double *start, const int nelem, const double xint, const int stride) |
void | compute_face (double *a, const int nelem, const double xint, const int stride1, const int stride2) |
void | build_coords (const int nelem, double *&coords) |
int | main (int argc, char *argv[]) |
Variables | |
double | LENGTH = 1.0 |
#define VINDEX | ( | i, | |
j, | |||
k | |||
) | ( ( i ) + ( (j)*numv ) + ( (k)*numv_sq ) ) |
#define VINDEX | ( | i, | |
j, | |||
k | |||
) | ( ( i ) + ( (j)*numv ) + ( (k)*numv_sq ) ) |
void build_connect | ( | const int | nelem, |
const int | vstart, | ||
int *& | connect | ||
) |
void build_coords | ( | const int | nelem, |
double *& | coords | ||
) |
Definition at line 479 of file tstt_perf_binding.cpp.
References compute_edge(), compute_face(), LENGTH, print_time(), and VINDEX.
Referenced by main().
void compute_edge | ( | double * | start, |
const int | nelem, | ||
const double | xint, | ||
const int | stride | ||
) |
void compute_face | ( | double * | a, |
const int | nelem, | ||
const double | xint, | ||
const int | stride1, | ||
const int | stride2 | ||
) |
Definition at line 444 of file tstt_perf_binding.cpp.
Referenced by build_coords().
int main | ( | int | argc, |
char * | argv[] | ||
) |
Definition at line 45 of file tstt_perf_binding.cpp.
References build_connect(), build_coords(), iBase_SUCCESS, iMesh_dtor, iMesh_newMesh, iMesh_setGeometricDimension, mesh, testB(), and testC().
void print_time | ( | const bool | print_em, |
double & | tot_time, | ||
double & | utime, | ||
double & | stime, | ||
long & | imem, | ||
long & | rmem | ||
) |
Definition at line 407 of file tstt_perf_binding.cpp.
Referenced by build_coords(), testB(), and testC().
void query_elem_to_vert | ( | iMesh_Instance | mesh | ) |
Definition at line 281 of file tstt_perf_binding.cpp.
References iBase_BLOCKED, iBase_REGION, iBase_SUCCESS, iBase_VERTEX, iMesh_getDfltStorage, iMesh_getEntAdj, iMesh_getEntities, iMesh_getRootSet, iMesh_getVtxArrCoords, iMesh_HEXAHEDRON, mesh, and root_set.
void query_vert_to_elem | ( | iMesh_Instance | mesh | ) |
Definition at line 360 of file tstt_perf_binding.cpp.
References iBase_REGION, iBase_SUCCESS, iBase_VERTEX, iMesh_getEntAdj, iMesh_getEntities, iMesh_getRootSet, iMesh_POINT, mesh, and root_set.
void testB | ( | iMesh_Instance | mesh, |
const int | nelem, | ||
const double * | coords, | ||
int * | connect | ||
) |
Definition at line 117 of file tstt_perf_binding.cpp.
References iBase_BLOCKED, iBase_SUCCESS, iMesh_createEntArr, iMesh_createVtxArr, iMesh_dtor, iMesh_HEXAHEDRON, mesh, print_time(), query_elem_to_vert(), and query_vert_to_elem().
Referenced by main().
void testC | ( | iMesh_Instance | mesh, |
const int | nelem, | ||
const double * | coords | ||
) |
Definition at line 198 of file tstt_perf_binding.cpp.
References iBase_SUCCESS, iMesh_createEnt, iMesh_createVtx, iMesh_dtor, iMesh_HEXAHEDRON, mesh, print_time(), query_elem_to_vert(), query_vert_to_elem(), and VINDEX.
Referenced by main().
double LENGTH = 1.0 |
Definition at line 31 of file tstt_perf_binding.cpp.
Referenced by build_coords().