@@ -24,7 +24,7 @@ Real calculateDistance(const Real* p1, const Real* p2, const int dim)
2424 return dx * dx + dy * dy + dz * dz;
2525}
2626
27- void checkTargetPoints (
27+ inline void checkTargetPoints (
2828 const Kokkos::View<pcms::GridPointSearch::Result*>& results)
2929{
3030 Kokkos::fence ();
@@ -43,7 +43,7 @@ void checkTargetPoints(
4343 printf (" \n " );
4444}
4545
46- void printSupportsForTarget (const LO target_id, const Write<LO>& supports_ptr,
46+ inline void printSupportsForTarget (const LO target_id, const Write<LO>& supports_ptr,
4747 const Write<LO>& nSupports,
4848 const Write<LO>& support_idx)
4949{
@@ -84,7 +84,7 @@ class FindSupports
8484 Write<Real>& radii2, bool is_build_csr_call);
8585};
8686
87- void FindSupports::adjBasedSearch (Write<LO>& supports_ptr, Write<LO>& nSupports,
87+ inline void FindSupports::adjBasedSearch (Write<LO>& supports_ptr, Write<LO>& nSupports,
8888 Write<LO>& support_idx, Write<Real>& radii2,
8989 bool is_build_csr_call)
9090{
@@ -226,7 +226,7 @@ void FindSupports::adjBasedSearch(Write<LO>& supports_ptr, Write<LO>& nSupports,
226226 }
227227}
228228
229- void FindSupports::adjBasedSearchCentroidNodes (Write<LO>& supports_ptr,
229+ inline void FindSupports::adjBasedSearchCentroidNodes (Write<LO>& supports_ptr,
230230 Write<LO>& nSupports,
231231 Write<LO>& support_idx,
232232 Write<Real>& radii2,
@@ -357,7 +357,7 @@ struct SupportResults
357357 Write<Real> radii2; // squared radii of the supports
358358};
359359
360- SupportResults searchNeighbors (Mesh& source_mesh, Mesh& target_mesh,
360+ inline SupportResults searchNeighbors (Mesh& source_mesh, Mesh& target_mesh,
361361 Real& cutoffDistance, LO min_req_support = 12 ,
362362 bool adapt_radius = true )
363363{
@@ -459,7 +459,7 @@ SupportResults searchNeighbors(Mesh& source_mesh, Mesh& target_mesh,
459459 return support;
460460}
461461
462- SupportResults searchNeighbors (Mesh& mesh, Real cutoffDistance,
462+ inline SupportResults searchNeighbors (Mesh& mesh, Real cutoffDistance,
463463 LO min_support = 12 , bool adapt_radius = true )
464464{
465465 SupportResults support;
0 commit comments