mirror of
https://github.com/PhasicFlow/phasicFlow.git
synced 2025-08-17 03:47:04 +00:00
Interaction folder is finalized with adjustable box and tested for rotating drum
This commit is contained in:
@ -72,7 +72,7 @@ protected:
|
||||
using rpFillPairs = Kokkos::RangePolicy<
|
||||
ExecutionSpace,
|
||||
Kokkos::Schedule<Kokkos::Static>,
|
||||
Kokkos::IndexType<int32>,
|
||||
Kokkos::IndexType<uint32>,
|
||||
TagReFillPairs>;
|
||||
|
||||
|
||||
@ -80,7 +80,7 @@ public:
|
||||
|
||||
TypeInfoNV("unsortedContactList");
|
||||
|
||||
unsortedContactList(int32 capacity=1)
|
||||
explicit unsortedContactList(uint32 capacity=1)
|
||||
:
|
||||
UnsortedPairs(capacity),
|
||||
values_("values", UnsortedPairs::capacity()),
|
||||
@ -122,7 +122,7 @@ public:
|
||||
INLINE_FUNCTION_HD
|
||||
bool getValue(const PairType& p, ValueType& val)const
|
||||
{
|
||||
if(auto idx = this->find(p); idx>=0)
|
||||
if(auto idx = this->find(p); idx!=-1)
|
||||
{
|
||||
val = getValue(idx);
|
||||
return true;
|
||||
@ -131,7 +131,7 @@ public:
|
||||
}
|
||||
|
||||
INLINE_FUNCTION_HD
|
||||
void setValue(int32 idx, const ValueType& val)const
|
||||
void setValue(uint32 idx, const ValueType& val)const
|
||||
{
|
||||
values_[idx] = val;
|
||||
}
|
||||
@ -139,7 +139,7 @@ public:
|
||||
INLINE_FUNCTION_HD
|
||||
bool setValue(const PairType& p, const ValueType& val)const
|
||||
{
|
||||
if(auto idx = this->find(p); idx>=0)
|
||||
if(uint32 idx = this->find(p); idx!=-1)
|
||||
{
|
||||
setValue(idx, val);
|
||||
return true;;
|
||||
@ -148,13 +148,13 @@ public:
|
||||
}
|
||||
|
||||
INLINE_FUNCTION_HD
|
||||
void operator()(TagReFillPairs, int32 idx)const
|
||||
void operator()(TagReFillPairs, uint32 idx)const
|
||||
{
|
||||
if( this->isValid(idx) )
|
||||
{
|
||||
if( int32 idx0 =
|
||||
if( uint32 idx0 =
|
||||
container0_.find(this->getPair(idx));
|
||||
idx0>=0 )
|
||||
idx0!=-1 )
|
||||
{
|
||||
values_[idx] = values0_[idx0];
|
||||
}
|
||||
|
Reference in New Issue
Block a user