MOAB: Mesh Oriented datABase
(version 5.5.0)
|
#include "moab/Core.hpp"
#include "moab/SpatialLocator.hpp"
#include "moab/Tree.hpp"
#include "moab/HomXform.hpp"
#include "moab/ScdInterface.hpp"
#include "moab/CartVect.hpp"
#include "moab/BVHTree.hpp"
#include "moab/ProgOptions.hpp"
#include "moab/CpuTimer.hpp"
#include "moab/ParallelComm.hpp"
#include "moab_mpi.h"
#include "TestUtil.hpp"
#include <cstdlib>
#include <sstream>
#include <string>
Go to the source code of this file.
Functions | |
void | test_kd_tree () |
void | test_bvh_tree () |
void | test_locator (SpatialLocator *sl) |
ErrorCode | create_hex_mesh (Interface &mb, Range &elems, int n, int dim) |
ErrorCode | load_file (Interface &mb, std::string &fn, Range &elems) |
int | main (int argc, char **argv) |
bool | is_neg (int is_neg) |
Variables | |
int | max_depth = 30 |
int | npoints = 1000 |
int | leaf = 6 |
int | tree = -1 |
bool | print_tree = false |
int | ints = 10 |
std::string | fname |
Definition at line 158 of file par_spatial_locator_test.cpp.
References CHECK_ERR, moab::ScdInterface::construct_box(), dim, ErrorCode, moab::ScdParData::gDims, moab::Core::get_entities_by_dimension(), mb, moab::ScdParData::partMethod, moab::Interface::query_interface(), and moab::ScdParData::SQIJK.
Referenced by test_bvh_tree(), and test_kd_tree().
bool is_neg | ( | int | is_neg | ) |
Definition at line 114 of file par_spatial_locator_test.cpp.
Referenced by test_locator().
Definition at line 176 of file par_spatial_locator_test.cpp.
References moab::Range::empty(), ErrorCode, moab::Core::get_entities_by_dimension(), moab::Core::load_file(), mb, and MB_SUCCESS.
Referenced by moab::Core::load_mesh(), test_bvh_tree(), and test_kd_tree().
int main | ( | int | argc, |
char ** | argv | ||
) |
Definition at line 36 of file par_spatial_locator_test.cpp.
References ProgOptions::addOpt(), moab::fail(), fname, ints, leaf, max_depth, npoints, ProgOptions::parseCommandLine(), print_tree, RUN_TEST, test_bvh_tree(), test_kd_tree(), and tree.
void test_bvh_tree | ( | ) |
Definition at line 85 of file par_spatial_locator_test.cpp.
References CHECK_ERR, create_hex_mesh(), ErrorCode, fname, ints, leaf, load_file(), max_depth, mb, moab::BVHTree::parse_options(), and test_locator().
Referenced by main().
void test_kd_tree | ( | ) |
Definition at line 60 of file par_spatial_locator_test.cpp.
References CHECK_ERR, create_hex_mesh(), ErrorCode, fname, ints, load_file(), mb, and test_locator().
Referenced by main().
void test_locator | ( | SpatialLocator * | sl | ) |
Definition at line 119 of file par_spatial_locator_test.cpp.
References box(), CHECK, CHECK_ERR, ErrorCode, moab::ParallelComm::get_pcomm(), moab::SpatialLocator::get_tree(), is_neg(), moab::SpatialLocator::local_box(), moab::SpatialLocator::moab(), npoints, moab::TreeStats::output_trav_stats(), moab::SpatialLocator::par_loc_table(), moab::Tree::print(), print_tree, moab::ParallelComm::rank(), moab::Tree::tree_stats(), and moab::TupleList::vi_rd.
Referenced by test_bvh_tree(), and test_kd_tree().
std::string fname |
Definition at line 34 of file par_spatial_locator_test.cpp.
Referenced by chkerr(), create_shared_grid_3d(), moab::ReadIDEAS::load_file(), moab::ReadMCNP5::load_one_file(), main(), DeformMeshRemap::read_file(), read_file(), McnpData::set_filename(), test_bvh_tree(), test_kd_tree(), and write_and_read().
int ints = 10 |
Definition at line 33 of file par_spatial_locator_test.cpp.
Referenced by main(), test_bvh_tree(), test_clear_variable_length(), test_get_set_variable_length_dense(), test_get_set_variable_length_sparse(), and test_kd_tree().
int leaf = 6 |
Definition at line 30 of file par_spatial_locator_test.cpp.
Referenced by build_tree(), moab::OrientedBoxTreeTool::build_tree(), moab::Element_tree< _Entity_handles, _Box, _Moab, _Parametrizer >::build_tree(), moab::TempestRemapper::ConstructCoveringSet(), create_tree(), do_kdtree_test(), main(), moab::AdaptiveKDTree::split_leaf(), moab::BSPTree::split_leaf(), test_bvh_tree(), test_iterator_back(), test_leaf_merge(), test_point_search(), and validate_tree().
int max_depth = 30 |
Definition at line 28 of file par_spatial_locator_test.cpp.
Referenced by moab::OrientedBoxTreeTool::closest_to_location(), moab::AdaptiveKDTree::compute_depth(), main(), moab::OrientedBoxTreeTool::preorder_traverse(), recursive_build_tree(), recursive_check_tree(), moab::OrientedBoxTreeTool::sphere_intersect_triangles(), test_bvh_tree(), test_small_tree(), test_tree(), and moab::OrientedBoxTreeTool::Settings::valid().
int npoints = 1000 |
Definition at line 29 of file par_spatial_locator_test.cpp.
Referenced by moab::ReadSms::load_file_impl(), main(), and test_locator().
bool print_tree = false |
Definition at line 32 of file par_spatial_locator_test.cpp.
Referenced by main(), and test_locator().
int tree = -1 |
Definition at line 31 of file par_spatial_locator_test.cpp.
Referenced by moab::TempestRemapper::ConstructCoveringSet(), moab::MergeMesh::find_merged_to(), initialize_tree(), main(), merge_duplicate_vertices(), moab::BSPTree::~BSPTree(), and moab::OrientedBoxTreeTool::~OrientedBoxTreeTool().