mirror of
https://github.com/ParticulateFlow/CFDEMcoupling-PFM.git
synced 2025-12-08 06:37:44 +00:00
restore twoWayOne2One::getNumberOfParticles() method
twoWayOne2One was calling base class method and crashed; reverts51d10d7d0fand parts of4959ffc79fwhere this method was mistakenly removed closes #105
This commit is contained in:
@ -966,6 +966,10 @@ void twoWayOne2One::extractCollected(T*& src, T**& dst, int width) const
|
||||
}
|
||||
}
|
||||
|
||||
int twoWayOne2One::getNumberOfParticles() const
|
||||
{
|
||||
return particleCloud_.numberOfParticles();
|
||||
}
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
|
||||
@ -208,6 +208,8 @@ public:
|
||||
template <typename T>
|
||||
void extractCollected(T*&, T**&, int width=1) const;
|
||||
|
||||
int getNumberOfParticles() const;
|
||||
|
||||
scalar getCG() const { return lmp->force->cg(); }
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user