sphereParticles tested on CPU, iteration, write to file, particle deletion

This commit is contained in:
Hamidreza Norouzi
2024-01-29 07:57:19 -08:00
parent c0ee29e39c
commit 182e156786
48 changed files with 424 additions and 371 deletions

View File

@ -174,8 +174,8 @@ int main( int argc, char* argv[] )
REPORT(0)<< "Converting shapeName field to shapeIndex field"<<END_REPORT;
auto shapeName_D = shapeName.fieldDevice();
auto shapeIndex_D = shapeIndex.fieldDevice();
auto shapeName_D = shapeName.deviceView();
auto shapeIndex_D = shapeIndex.deviceView();
REPORT(1)<<"List of shape names in "<<shapes.globalName()<<
" is: "<<Green_Text(shapes.shapeNameList())<<END_REPORT;

View File

@ -151,7 +151,8 @@ public:
virtual realx3Vector getFinalPosition();
static
uniquePtr<positionParticles> create(systemControl& control, const dictionary & dict);
uniquePtr<positionParticles>
create(systemControl& control, const dictionary & dict);
};

View File

@ -69,8 +69,8 @@ bool pFlow::positionRandom::positionOnePass(int32 pass, int32 startNum)
SearchType search(
box(minP, maxP),
diameter_,
positionHD.deviceVectorAll(),
diameter.deviceVectorAll());
positionHD.deviceViewAll(),
diameter.deviceViewAll());
ContainerType pairs(3*startNum);
@ -250,7 +250,7 @@ pFlow::int32 pFlow::findCollisions(
{
auto allPairs = pairs.getPairs();
auto num = pairs.capacity();
auto dFlags = flags.deviceVector();
auto dFlags = flags.deviceView();
int32 numCollisions = 0;