MOAB: Mesh Oriented datABase
(version 5.5.0)
|
#include <iostream>
#include <cassert>
#include <ctime>
#include <vector>
#include "moab/Core.hpp"
#include "moab/Range.hpp"
#include "moab/MeshTopoUtil.hpp"
#include "moab/HalfFacetRep.hpp"
#include "moab/NestedRefine.hpp"
#include "../TestUtil.hpp"
#include "moab/CpuTimer.hpp"
Go to the source code of this file.
Classes | |
struct | mesh_mem |
Enumerations | |
enum | OUTTYPE { TIME = 0 , MEM , BOTH } |
Functions | |
void | handle_error_code (ErrorCode rv, int &number_failed, int &number_successful) |
ErrorCode | umr_perf_test (Core *mb, int *level_degrees, int num_levels, OUTTYPE output) |
ErrorCode | create_simple_mesh (Core *mb, EntityType type) |
ErrorCode | test_mesh (EntityType type, int *level_degrees, int num_level) |
ErrorCode | test_1D () |
ErrorCode | test_2D () |
ErrorCode | test_3D () |
ErrorCode | perf_inmesh (const char *filename, int *level_degrees, int num_levels, OUTTYPE output) |
int | main (int argc, char *argv[]) |
Variables | |
int | number_tests_successful = 0 |
int | number_tests_failed = 0 |
enum OUTTYPE |
Enumerator | |
---|---|
TIME | |
MEM | |
BOTH |
Definition at line 60 of file umr_perf.cpp.
Definition at line 338 of file umr_perf.cpp.
References moab::Interface::create_element(), moab::Interface::create_vertex(), moab::error(), ErrorCode, mb, MB_SUCCESS, MBEDGE, MBHEX, MBQUAD, MBTET, and MBTRI.
Referenced by test_mesh().
void handle_error_code | ( | ErrorCode | rv, |
int & | number_failed, | ||
int & | number_successful | ||
) |
Definition at line 67 of file umr_perf.cpp.
References MB_SUCCESS, MPI_COMM_WORLD, and rank.
Referenced by main().
int main | ( | int | argc, |
char * | argv[] | ||
) |
Definition at line 661 of file umr_perf.cpp.
References ErrorCode, filename, handle_error_code(), MEM, MPI_COMM_WORLD, number_tests_failed, number_tests_successful, output, perf_inmesh(), rank, test_1D(), test_2D(), test_3D(), and TIME.
ErrorCode perf_inmesh | ( | const char * | filename, |
int * | level_degrees, | ||
int | num_levels, | ||
OUTTYPE | output | ||
) |
Definition at line 631 of file umr_perf.cpp.
References CHECK_ERR, moab::error(), ErrorCode, filename, moab::Interface::load_file(), mb, MB_SUCCESS, MPI_COMM_WORLD, output, read_options, and umr_perf_test().
Referenced by main().
ErrorCode test_1D | ( | ) |
Definition at line 498 of file umr_perf.cpp.
References moab::error(), ErrorCode, MB_SUCCESS, MBEDGE, and test_mesh().
Referenced by main().
ErrorCode test_2D | ( | ) |
Definition at line 529 of file umr_perf.cpp.
References moab::error(), ErrorCode, MB_SUCCESS, MBQUAD, MBTRI, and test_mesh().
Referenced by main().
ErrorCode test_3D | ( | ) |
Definition at line 588 of file umr_perf.cpp.
References moab::error(), ErrorCode, MB_SUCCESS, MBHEX, MBTET, and test_mesh().
Referenced by main().
ErrorCode test_mesh | ( | EntityType | type, |
int * | level_degrees, | ||
int | num_level | ||
) |
Definition at line 483 of file umr_perf.cpp.
References BOTH, create_simple_mesh(), moab::error(), ErrorCode, mb, MB_SUCCESS, output, and umr_perf_test().
Definition at line 87 of file umr_perf.cpp.
References moab::Range::begin(), BOTH, CHECK_ERR, dim, moab::Range::end(), mesh_mem::entity_storage, moab::error(), ErrorCode, moab::Interface::estimated_memory_use(), moab::NestedRefine::generate_mesh_hierarchy(), moab::Interface::get_connectivity(), moab::NestedRefine::get_connectivity(), moab::NestedRefine::get_coordinates(), moab::Interface::get_coords(), moab::Interface::get_entities_by_dimension(), moab::Interface::get_entities_by_type(), mb, MB_SUCCESS, MBVERTEX, MEM, output, moab::Range::size(), TIME, moab::CpuTimer::time_elapsed(), mesh_mem::total_storage, and mesh_mem::vertex_storage.
Referenced by perf_inmesh(), and test_mesh().
int number_tests_failed = 0 |
Definition at line 29 of file umr_perf.cpp.
Referenced by main().
int number_tests_successful = 0 |
Definition at line 28 of file umr_perf.cpp.
Referenced by main().