mirror of
https://github.com/PhasicFlow/phasicFlow.git
synced 2025-06-22 16:28:30 +00:00
AB5 is added and bug is resolved when particles are being inserted
This commit is contained in:
@ -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