diff --git a/src/impl/particles_impl_src_dry_distros_matching.ipp b/src/impl/particles_impl_src_dry_distros_matching.ipp index 61faa20b..dba77f7c 100644 --- a/src/impl/particles_impl_src_dry_distros_matching.ipp +++ b/src/impl/particles_impl_src_dry_distros_matching.ipp @@ -20,8 +20,8 @@ namespace libcloudphxx BOOST_GPU_ENABLED bool operator()(const thrust::tuple &a, const thrust::tuple &b) { - if(a.head < b.head) return true; - if(a.head == b.head) return a.tail < b.tail; + if(thrust::get<0>(a) < thrust::get<0>(b)) return true; + if(thrust::get<0>(a) == thrust::get<0>(b)) return thrust::get<1>(a) < thrust::get<1>(b); return false; } };