contact search NBS refactored

This commit is contained in:
hamidrezanorouzi
2022-10-27 14:19:53 +03:30
parent 490577dcd2
commit e6d7fbcda3
12 changed files with 1256 additions and 428 deletions

View File

@ -21,7 +21,7 @@ Licence:
#include "positionRandom.H"
#include "uniformRandomReal.H"
#include "NBS.H"
#include "NBSLevel0.H"
#include "unsortedPairs.H"
#include "box.H"
@ -30,7 +30,7 @@ Licence:
namespace pFlow
{
using SearchType = NBS<DefaultExecutionSpace, int32> ;
using SearchType = NBSLevel0<DefaultExecutionSpace> ;
using ContainerType = unsortedPairs<DefaultExecutionSpace, int32>;
@ -80,7 +80,7 @@ bool pFlow::positionRandom::positionOnePass(int32 pass, int32 startNum)
fillPoints(startNum, positionHD, flagHD);
search.broadSearch(pairs, range(0, startNum), true);
search.broadSearch(pairs, range(0, startNum));
int32 numCollisions = findCollisions(pairs, flagHD);