mirror of
https://github.com/PhasicFlow/phasicFlow.git
synced 2025-06-22 16:28:30 +00:00
develop branch update for changes in MPI branch for data transfer stage
mortong indexing is added (messaging is not complete)
This commit is contained in:
@ -74,7 +74,8 @@ pFlow::particles::particles(systemControl& control)
|
||||
dynPointStruct_,
|
||||
zero3
|
||||
),
|
||||
idHandler_(particleIdHandler::create(dynPointStruct_))
|
||||
idHandler_(particleIdHandler::create(dynPointStruct_)),
|
||||
baseFieldBoundaryUpdateTimer_("baseFieldBoundaryUpdate",&timers())
|
||||
{
|
||||
this->addToSubscriber(dynPointStruct_);
|
||||
|
||||
@ -84,18 +85,18 @@ pFlow::particles::particles(systemControl& control)
|
||||
bool
|
||||
pFlow::particles::beforeIteration()
|
||||
{
|
||||
zeroForce();
|
||||
zeroTorque();
|
||||
|
||||
if( !dynPointStruct_.beforeIteration())
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
zeroForce();
|
||||
zeroTorque();
|
||||
baseFieldBoundaryUpdateTimer_.start();
|
||||
shapeIndex_.updateBoundariesSlaveToMasterIfRequested();
|
||||
accelertion_.updateBoundariesSlaveToMasterIfRequested();
|
||||
idHandler_().updateBoundariesSlaveToMasterIfRequested();
|
||||
|
||||
baseFieldBoundaryUpdateTimer_.end();
|
||||
return true;
|
||||
}
|
||||
|
||||
|
@ -54,6 +54,8 @@ private:
|
||||
/// handling new ids for new particles
|
||||
uniquePtr<particleIdHandler> idHandler_ = nullptr;
|
||||
|
||||
Timer baseFieldBoundaryUpdateTimer_;
|
||||
|
||||
/// messages for this objects
|
||||
static inline const message defaultMessage_{ message::DEFAULT };
|
||||
|
||||
|
Reference in New Issue
Block a user