restore twoWayOne2One::getNumberOfParticles() method

twoWayOne2One was calling base class method and crashed;
reverts 51d10d7d0f and parts of
4959ffc79f where this method was
mistakenly removed
closes #105
This commit is contained in:
danielque
2020-07-16 20:59:26 +02:00
parent dd5dfb6662
commit f07b8f370f
2 changed files with 6 additions and 0 deletions

View File

@ -966,6 +966,10 @@ void twoWayOne2One::extractCollected(T*& src, T**& dst, int width) const
} }
} }
int twoWayOne2One::getNumberOfParticles() const
{
return particleCloud_.numberOfParticles();
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

View File

@ -208,6 +208,8 @@ public:
template <typename T> template <typename T>
void extractCollected(T*&, T**&, int width=1) const; void extractCollected(T*&, T**&, int width=1) const;
int getNumberOfParticles() const;
scalar getCG() const { return lmp->force->cg(); } scalar getCG() const { return lmp->force->cg(); }
}; };