|
MOAB: Mesh Oriented datABase
(version 5.4.1)
|
#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/AdaptiveKDTree.hpp"#include "moab/BVHTree.hpp"#include "moab/ElemEvaluator.hpp"#include "moab/ProgOptions.hpp"#include "moab/CpuTimer.hpp"#include "TestUtil.hpp"#include <cstdlib>#include <sstream>
Include dependency graph for spatial_locator_test.cpp: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) |
| int | main (int argc, char **argv) |
Variables | |
| int | max_depth = 30 |
| int | npoints = 1000 |
| int | leaf = 6 |
| bool | print_tree = false |
| int | ints = 10 |
| ErrorCode create_hex_mesh | ( | Interface & | mb, |
| Range & | elems, | ||
| int | n, | ||
| int | dim | ||
| ) |
| int main | ( | int | argc, |
| char ** | argv | ||
| ) |
Definition at line 36 of file spatial_locator_test.cpp.
References ProgOptions::addOpt(), moab::fail(), ints, leaf, max_depth, npoints, ProgOptions::parseCommandLine(), print_tree, RUN_TEST, test_bvh_tree(), and test_kd_tree().
{
#ifdef MOAB_HAVE_MPI
int fail = MPI_Init( &argc, &argv );
if( fail ) return fail;
#else
// silence the warning of parameters not used, in serial; there should be a smarter way :(
argv[0] = argv[argc - argc];
#endif
ProgOptions po( "spatial_locator_test options" );
po.addOpt< int >( "ints,i", "Number of intervals on each side of scd mesh", &ints );
po.addOpt< int >( "leaf,l", "Maximum number of elements per leaf", &leaf );
po.addOpt< int >( "max_depth,m", "Maximum depth of tree", &max_depth );
po.addOpt< int >( "npoints,n", "Number of query points", &npoints );
po.addOpt< void >( "print,p", "Print tree details", &print_tree );
po.parseCommandLine( argc, argv );
RUN_TEST( test_kd_tree );
RUN_TEST( test_bvh_tree );
#ifdef MOAB_HAVE_MPI
fail = MPI_Finalize();
if( fail ) return fail;
#endif
return 0;
}
| void test_bvh_tree | ( | ) |
| void test_kd_tree | ( | ) |
| void test_locator | ( | SpatialLocator * | sl | ) |
| int ints = 10 |
Definition at line 34 of file spatial_locator_test.cpp.
| int leaf = 6 |
Definition at line 32 of file spatial_locator_test.cpp.
| int max_depth = 30 |
Definition at line 30 of file spatial_locator_test.cpp.
| int npoints = 1000 |
Definition at line 31 of file spatial_locator_test.cpp.
| bool print_tree = false |
Definition at line 33 of file spatial_locator_test.cpp.