Skip to content

Commit

Permalink
Add new search option, kdtree
Browse files Browse the repository at this point in the history
* stk_kdtree search option is now available

* xfer change
  • Loading branch information
spdomin committed Oct 12, 2016
1 parent 16e309a commit 636a674
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/ActuatorLine.C
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,8 @@ ActuatorLine::load(
searchMethod_ = stk::search::BOOST_RTREE;
else if ( searchMethodName == "stk_octree" )
searchMethod_ = stk::search::OCTREE;
else if ( searchMethodName == "stk_kdtree" )
searchMethod_ = stk::search::KDTREE;
else
NaluEnv::self().naluOutputP0() << "ActuatorLine::search method not declared; will use BOOST_RTREE" << std::endl;

Expand Down
2 changes: 2 additions & 0 deletions src/ContactInfo.C
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,8 @@ ContactInfo::ContactInfo(
searchMethod_ = stk::search::BOOST_RTREE;
else if ( searchMethodName == "stk_octree" )
searchMethod_ = stk::search::OCTREE;
else if ( searchMethodName == "stk_kdtree" )
searchMethod_ = stk::search::KDTREE;
else
NaluEnv::self().naluOutputP0() << "ContactInfo::search method not declared; will use BOOST_RTREE" << std::endl;

Expand Down
2 changes: 2 additions & 0 deletions src/NonConformalInfo.C
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,8 @@ NonConformalInfo::NonConformalInfo(
searchMethod_ = stk::search::BOOST_RTREE;
else if ( searchMethodName == "stk_octree" )
searchMethod_ = stk::search::OCTREE;
else if ( searchMethodName == "stk_kdtree" )
searchMethod_ = stk::search::KDTREE;
else
NaluEnv::self().naluOutputP0() << "NonConformalInfo::search method not declared; will use BOOST_RTREE" << std::endl;

Expand Down
2 changes: 2 additions & 0 deletions src/PeriodicManager.C
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,8 @@ PeriodicManager::add_periodic_pair(
searchMethod = stk::search::BOOST_RTREE;
else if ( searchMethodName == "stk_octree" )
searchMethod = stk::search::OCTREE;
else if ( searchMethodName == "stk_kdtree" )
searchMethod = stk::search::KDTREE;
else
NaluEnv::self().naluOutputP0() << "PeriodicManager::search method not declared; will use BOOST_RTREE" << std::endl;
searchMethodVec_.push_back(searchMethod);
Expand Down
2 changes: 2 additions & 0 deletions src/xfer/Transfer.C
Original file line number Diff line number Diff line change
Expand Up @@ -361,6 +361,8 @@ void Transfer::allocate_stk_transfer() {
searchMethod = stk::search::BOOST_RTREE;
else if ( searchMethodName_ == "stk_octree" )
searchMethod = stk::search::OCTREE;
else if ( searchMethodName_ == "stk_kdtree" )
searchMethod = stk::search::KDTREE;
else
NaluEnv::self().naluOutputP0() << "Transfer::search method not declared; will use BOOST_RTREE" << std::endl;
transfer_.reset(new STKTransfer(from_mesh, to_mesh, name_, searchExpansionFactor_, searchMethod));
Expand Down

0 comments on commit 636a674

Please sign in to comment.