MOAB: Mesh Oriented datABase
(version 5.5.0)
|
#include <sys/resource.h>
#include <cstdlib>
#include <cstdio>
#include <iostream>
#include "TSTT_MOAB.hh"
#include "TSTT.hh"
#include "TSTTM.hh"
Go to the source code of this file.
Macros | |
#define | IMPLEMENTATION_CLASS TSTT_MOAB::MoabMesh |
#define | CAST_INTERFACE(var_in, var_out, iface) |
#define | CAST_MINTERFACE(var_in, var_out, iface) |
#define | ARRAY_PTR(array, type) ( reinterpret_cast< ( type )* >( ( array )._get_ior()->d_firstElement ) ) |
#define | HANDLE_ARRAY_PTR(array) ( reinterpret_cast< Entity_Handle* >( ( array )._get_ior()->d_firstElement ) ) |
#define | ARRAY_SIZE(array) ( ( array )._is_nil() ? 0 : ( array ).upper( 0 ) - ( array ).lower( 0 ) + 1 ) |
#define | CHECK_SIZE(array, size) |
#define | VINDEX(i, j, k) ( ( i ) + ( (j)*numv ) + ( (k)*numv_sq ) ) |
#define | VINDEX(i, j, k) ( ( i ) + ( (j)*numv ) + ( (k)*numv_sq ) ) |
Typedefs | |
typedef void * | Entity_Handle |
Functions | |
void | query_vert_to_elem (TSTTM::Mesh &mesh) |
void | query_elem_to_vert (TSTTM::Mesh &mesh) |
void | print_time (const bool print_em, double &tot_time, double &utime, double &stime) |
void | build_connect (const int nelem, const int vstart, int *&connect) |
void | testB (TSTTM::Mesh &mesh, const int nelem, sidl::array< double > &coords, const int *connect) |
void | testC (TSTTM::Mesh &mesh, const int nelem, sidl::array< 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, sidl::array< double > &coords) |
int | main (int argc, char *argv[]) |
Variables | |
double | LENGTH = 1.0 |
#define ARRAY_PTR | ( | array, | |
type | |||
) | ( reinterpret_cast< ( type )* >( ( array )._get_ior()->d_firstElement ) ) |
Definition at line 82 of file tstt_perf.cpp.
#define ARRAY_SIZE | ( | array | ) | ( ( array )._is_nil() ? 0 : ( array ).upper( 0 ) - ( array ).lower( 0 ) + 1 ) |
Definition at line 84 of file tstt_perf.cpp.
#define CAST_INTERFACE | ( | var_in, | |
var_out, | |||
iface | |||
) |
Definition at line 49 of file tstt_perf.cpp.
#define CAST_MINTERFACE | ( | var_in, | |
var_out, | |||
iface | |||
) |
Definition at line 61 of file tstt_perf.cpp.
#define CHECK_SIZE | ( | array, | |
size | |||
) |
Definition at line 85 of file tstt_perf.cpp.
#define HANDLE_ARRAY_PTR | ( | array | ) | ( reinterpret_cast< Entity_Handle* >( ( array )._get_ior()->d_firstElement ) ) |
Definition at line 83 of file tstt_perf.cpp.
#define IMPLEMENTATION_CLASS TSTT_MOAB::MoabMesh |
MOAB, a Mesh-Oriented datABase, is a software component for creating, storing and accessing finite element mesh data.
Copyright 2004 Sandia Corporation. Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation, the U.S. Government retains certain rights in this software.
This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. TSTT Mesh Interface brick mesh performance test
This program tests TSTT mesh interface functions used to create a square structured mesh. Boilerplate taken from tstt mesh interface test in MOAB and performance test in MOAB
Definition at line 46 of file tstt_perf.cpp.
#define VINDEX | ( | i, | |
j, | |||
k | |||
) | ( ( i ) + ( (j)*numv ) + ( (k)*numv_sq ) ) |
#define VINDEX | ( | i, | |
j, | |||
k | |||
) | ( ( i ) + ( (j)*numv ) + ( (k)*numv_sq ) ) |
typedef void* Entity_Handle |
Definition at line 78 of file tstt_perf.cpp.
void build_connect | ( | const int | nelem, |
const int | vstart, | ||
int *& | connect | ||
) |
void build_coords | ( | const int | nelem, |
sidl::array< double > & | coords | ||
) |
Definition at line 517 of file tstt_perf.cpp.
References ARRAY_PTR, CHECK_SIZE, 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 482 of file tstt_perf.cpp.
Referenced by build_coords().
int main | ( | int | argc, |
char * | argv[] | ||
) |
Definition at line 108 of file tstt_perf.cpp.
References build_connect(), build_coords(), mesh, testB(), and testC().
void print_time | ( | const bool | print_em, |
double & | tot_time, | ||
double & | utime, | ||
double & | stime | ||
) |
Definition at line 454 of file tstt_perf.cpp.
Referenced by build_coords(), testB(), and testC().
void query_elem_to_vert | ( | TSTTM::Mesh & | mesh | ) |
Definition at line 342 of file tstt_perf.cpp.
References ARRAY_PTR, ARRAY_SIZE, CAST_MINTERFACE, HANDLE_ARRAY_PTR, and mesh.
void query_vert_to_elem | ( | TSTTM::Mesh & | mesh | ) |
Definition at line 414 of file tstt_perf.cpp.
References CAST_MINTERFACE, HANDLE_ARRAY_PTR, and mesh.
void testB | ( | TSTTM::Mesh & | mesh, |
const int | nelem, | ||
sidl::array< double > & | coords, | ||
const int * | connect | ||
) |
Definition at line 157 of file tstt_perf.cpp.
References CAST_MINTERFACE, CHECK_SIZE, HANDLE_ARRAY_PTR, mesh, print_time(), query_elem_to_vert(), and query_vert_to_elem().
Referenced by main().
void testC | ( | TSTTM::Mesh & | mesh, |
const int | nelem, | ||
sidl::array< double > & | coords | ||
) |
Definition at line 229 of file tstt_perf.cpp.
References ARRAY_PTR, CAST_MINTERFACE, CHECK_SIZE, HANDLE_ARRAY_PTR, mesh, print_time(), query_elem_to_vert(), query_vert_to_elem(), and VINDEX.
Referenced by main().
double LENGTH = 1.0 |
Definition at line 94 of file tstt_perf.cpp.
Referenced by build_coords().