Skip to content

Commit

Permalink
Missing
Browse files Browse the repository at this point in the history
  • Loading branch information
loumalouomega committed Dec 15, 2023
1 parent e553573 commit 3e9a095
Showing 1 changed file with 13 additions and 11 deletions.
24 changes: 13 additions & 11 deletions kratos/utilities/search_utilities.h
Original file line number Diff line number Diff line change
Expand Up @@ -280,15 +280,16 @@ class SearchUtilities

/**
* @brief SynchronousPointSynchronization prepares synchronously the coordinates of the points for MPI search.
* @param itPointBegin Iterator to the beginning of the points range
* @param itPointEnd Iterator to the end of the points range
* @param rSearchInfo The class containing the result of the search
* @param rBoundingBox The bounding box considered
* @param ThresholdBoundingBox The threshold for computing is inside bounding box considered
* @param rDataCommunicator The data communicator
* @tparam TPointIteratorType The type of the point iterator
* @tparam TBoundingBoxType The type of the bounding box
* @return The ids of all points
* @param itPointBegin Iterator to the beginning of the points range.
* @param itPointEnd Iterator to the end of the points range.
* @param rSearchInfo The class containing the result of the search.
* @param rBoundingBox The bounding box considered.
* @param ThresholdBoundingBox The threshold for computing is inside bounding box considered.
* @param rDataCommunicator The data communicator.
* @param IndexItIsJustCounter If the index considered it it just a counter.
* @tparam TPointIteratorType The type of the point iterator.
* @tparam TBoundingBoxType The type of the bounding box.
* @return The ids of all points.
*/
template<typename TPointIteratorType, typename TBoundingBoxType>
static std::vector<IndexType> SynchronousPointSynchronizationWithBoundingBox(
Expand All @@ -297,7 +298,8 @@ class SearchUtilities
DistributedSearchInformation& rSearchInfo,
const TBoundingBoxType& rBoundingBox,
const double ThresholdBoundingBox,
const DataCommunicator& rDataCommunicator
const DataCommunicator& rDataCommunicator,
const bool IndexItIsJustCounter = false
)
{
// First check that the points are the same in all processes
Expand All @@ -308,7 +310,7 @@ class SearchUtilities
KRATOS_DEBUG_ERROR_IF(total_number_of_points < 0) << "The total number of points is negative" << std::endl;

// We synchronize the points
return SynchronizePointsWithBoundingBox(itPointBegin, itPointEnd, rSearchInfo, rBoundingBox, ThresholdBoundingBox, rDataCommunicator, number_of_points, total_number_of_points);
return SynchronizePointsWithBoundingBox(itPointBegin, itPointEnd, rSearchInfo, rBoundingBox, ThresholdBoundingBox, rDataCommunicator, number_of_points, total_number_of_points, IndexItIsJustCounter);
}

/**
Expand Down

0 comments on commit 3e9a095

Please sign in to comment.