Mentions légales du service

Skip to content
Snippets Groups Projects
Commit f5d468f6 authored by Olivier COULAUD's avatar Olivier COULAUD
Browse files

Add a deprecated attribute for the old build list function

Fixed argument problem with omp
parent b060f3c9
No related branches found
No related tags found
No related merge requests found
......@@ -164,7 +164,7 @@ namespace scalfmm::list::omp
{
#pragma omp single nowait
{
build_m2l_interaction_list(source_tree, target_tree, neighbour_separation);
build_m2l_interaction_list(source_tree, target_tree, neighbour_separation, neighbour_separation);
}
#pragma omp single
{
......@@ -186,8 +186,9 @@ namespace scalfmm::list::omp
*/
template<typename SourceTreeType, typename TargetTreeType,
typename FmmOperatorType> //NearFieldType, typename NearFieldType>
inline auto build_interaction_lists(SourceTreeType& source_tree, TargetTreeType& target_tree,
FmmOperatorType const& fmm_operator, bool verbose = false) -> void
[[deprecated("Use build_interaction_lists(tre, tre, ffm_operator, verbose) instead.")]] inline auto
build_interaction_lists(SourceTreeType& source_tree, TargetTreeType& target_tree,
FmmOperatorType const& fmm_operator, bool verbose = false) -> void
{
int leaf_neighbour_separation{fmm_operator.near_field().separation_criterion()};
int neighbour_separation{fmm_operator.near_field().separation_criterion()};
......
......@@ -137,9 +137,9 @@ namespace scalfmm::list::sequential
* @param[in] mutual boolean to specify if the direct pass use a symmetric algorithm (mutual interactions)
*/
template<typename SourceTreeType, typename TargetTreeType>
inline auto build_interaction_lists(SourceTreeType& source_tree, TargetTreeType& target_tree,
const int& neighbour_separation, const bool mutual,
int leaf_neighbour_separation = -1) -> void
[[deprecated("Use build_interaction_lists(tre, tre, ffm_operator, verbose) instead.")]] inline auto
build_interaction_lists(SourceTreeType& source_tree, TargetTreeType& target_tree, const int& neighbour_separation,
const bool mutual, int leaf_neighbour_separation = -1) -> void
{
if(leaf_neighbour_separation == -1)
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment