mirror of
https://github.com/PhasicFlow/phasicFlow.git
synced 2025-07-28 03:27:05 +00:00
AB5 is added and bug is resolved when particles are being inserted
This commit is contained in:
@ -60,9 +60,9 @@ private:
|
||||
bool force = false) override
|
||||
{
|
||||
|
||||
const auto& position = Particles().pointPosition().deviceViewAll();
|
||||
const auto& flags = Particles().dynPointStruct().activePointsMaskDevice();
|
||||
const auto& diam = Particles().boundingSphere().deviceViewAll();
|
||||
auto position = Particles().pointPosition().deviceViewAll();
|
||||
auto flags = Particles().dynPointStruct().activePointsMaskDevice();
|
||||
auto diam = Particles().boundingSphere().deviceViewAll();
|
||||
|
||||
return ppwContactSearch_().broadSearch(
|
||||
ti.iter(),
|
||||
|
@ -22,7 +22,6 @@ Licence:
|
||||
|
||||
#include "mapperNBSKernels.hpp"
|
||||
|
||||
|
||||
void pFlow::mapperNBSKernels::findPointExtends
|
||||
(
|
||||
const deviceViewType1D<realx3>& points,
|
||||
@ -154,15 +153,16 @@ bool pFlow::mapperNBSKernels::buildLists
|
||||
)
|
||||
{
|
||||
auto aRange = flags.activeRange();
|
||||
auto pp = points;
|
||||
if(flags.isAllActive() )
|
||||
{
|
||||
{
|
||||
Kokkos::parallel_for
|
||||
(
|
||||
"pFlow::mapperNBSKernels::buildLists",
|
||||
deviceRPolicyStatic(aRange.start(), aRange.end()),
|
||||
LAMBDA_HD(uint32 i)
|
||||
{
|
||||
auto ind = searchCell.pointIndex(points[i]);
|
||||
{
|
||||
auto ind = searchCell.pointIndex(pp[i]);
|
||||
uint32 old = Kokkos::atomic_exchange(&head(ind.x(), ind.y(), ind.z()), i);
|
||||
next[i] = old;
|
||||
}
|
||||
|
Reference in New Issue
Block a user