mirror of
https://github.com/PhasicFlow/phasicFlow.git
synced 2025-06-12 16:26:23 +00:00
sphereParticles tested on CPU, iteration, write to file, particle deletion
This commit is contained in:
@ -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;
|
||||
|
@ -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);
|
||||
|
||||
};
|
||||
|
||||
|
@ -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;
|
||||
|
Reference in New Issue
Block a user