From 2ebf263f5c3d23084e09cff02eac138a1fd8619f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastia=CC=81n=20Barschkis?= Date: Sun, 26 Jul 2020 21:43:18 +0200 Subject: Fluid: Updated Mantaflow source files New files contain updated sampling function (support for maximum number of particles cap). --- .../mantaflow/preprocessed/fileio/ioparticles.cpp | 1 + extern/mantaflow/preprocessed/gitinfo.h | 2 +- extern/mantaflow/preprocessed/particle.cpp | 2 +- extern/mantaflow/preprocessed/particle.h | 108 ++++++++-- extern/mantaflow/preprocessed/particle.h.reg.cpp | 227 +++++++++++---------- 5 files changed, 205 insertions(+), 135 deletions(-) (limited to 'extern/mantaflow') diff --git a/extern/mantaflow/preprocessed/fileio/ioparticles.cpp b/extern/mantaflow/preprocessed/fileio/ioparticles.cpp index 84283a25b07..36e10aa1644 100644 --- a/extern/mantaflow/preprocessed/fileio/ioparticles.cpp +++ b/extern/mantaflow/preprocessed/fileio/ioparticles.cpp @@ -322,6 +322,7 @@ template int readPdataUni(const std::string &name, ParticleDataImpl UniPartHeader head; assertMsg(gzread(gzf, &head, sizeof(UniPartHeader)) == sizeof(UniPartHeader), "can't read file, no header present"); + pdata->getParticleSys()->resize(head.dim); // ensure that parent particle system has same size pdata->resize(head.dim); assertMsg(head.dim == pdata->size(), "pdata size doesn't match"); diff --git a/extern/mantaflow/preprocessed/gitinfo.h b/extern/mantaflow/preprocessed/gitinfo.h index 3271a858911..ce088d6c400 100644 --- a/extern/mantaflow/preprocessed/gitinfo.h +++ b/extern/mantaflow/preprocessed/gitinfo.h @@ -1,3 +1,3 @@ -#define MANTA_GIT_VERSION "commit 3370c2014ad7192041cb4fbed19ed74ae9725fb5" +#define MANTA_GIT_VERSION "commit 841bfd09c068dfb95637c0ec14fa78305286a433" diff --git a/extern/mantaflow/preprocessed/particle.cpp b/extern/mantaflow/preprocessed/particle.cpp index 6e1ef2fa5d8..9561365af3d 100644 --- a/extern/mantaflow/preprocessed/particle.cpp +++ b/extern/mantaflow/preprocessed/particle.cpp @@ -29,7 +29,7 @@ using namespace std; namespace Manta { ParticleBase::ParticleBase(FluidSolver *parent) - : PbClass(parent), mAllowCompress(true), mFreePdata(false) + : PbClass(parent), mAllowCompress(true), mFreePdata(false), mMaxParticles(0) { } diff --git a/extern/mantaflow/preprocessed/particle.h b/extern/mantaflow/preprocessed/particle.h index 0be141ed26f..da6733b6845 100644 --- a/extern/mantaflow/preprocessed/particle.h +++ b/extern/mantaflow/preprocessed/particle.h @@ -100,6 +100,17 @@ class ParticleBase : public PbClass { //! threads) inline void addBuffered(const Vec3 &pos, int flag = 0); + virtual void resize(IndexInt size) + { + assertMsg(false, "Dont use, override..."); + return; + } + virtual void resizeAll(IndexInt size) + { + assertMsg(false, "Dont use, override..."); + return; + } + //! particle data functions //! create a particle data object @@ -152,6 +163,20 @@ class ParticleBase : public PbClass { return mPartData[i]; } + //! expose maximum number of particles to python + int mMaxParticles; + static PyObject *_GET_mMaxParticles(PyObject *self, void *cl) + { + ParticleBase *pbo = dynamic_cast(Pb::objFromPy(self)); + return toPy(pbo->mMaxParticles); + } + static int _SET_mMaxParticles(PyObject *self, PyObject *val, void *cl) + { + ParticleBase *pbo = dynamic_cast(Pb::objFromPy(self)); + pbo->mMaxParticles = fromPy(val); + return 0; + } + protected: //! new particle candidates std::vector mNewBufferPos; @@ -431,8 +456,14 @@ template class ParticleSystem : public ParticleBase { } //! insert buffered positions as new particles, update additional particle data void insertBufferedParticles(); + //! resize only the data vector, only use if you know what you're doing, otherwise use + //! resizeAll() + virtual void resize(IndexInt size) + { + mData.resize(size); + } //! resize data vector, and all pdata fields - void resizeAll(IndexInt newsize); + virtual void resizeAll(IndexInt size); //! adding and deleting inline void kill(IndexInt idx); @@ -877,11 +908,6 @@ class ParticleIndexSystem : public ParticleSystem { return -1; } }; - //! we only need a resize function... - void resize(IndexInt size) - { - mData.resize(size); - } public: PbArgs _args; } @@ -2479,28 +2505,66 @@ template void ParticleSystem::insertBufferedParticles() for (IndexInt i = 0; i < (IndexInt)mData.size(); ++i) mData[i].flag &= ~PNEW; - if (mNewBufferPos.size() == 0) + if (mNewBufferPos.empty()) return; - IndexInt newCnt = mData.size(); - resizeAll(newCnt + mNewBufferPos.size()); - - for (IndexInt i = 0; i < (IndexInt)mNewBufferPos.size(); ++i) { - int flag = (mNewBufferFlag.size() > 0) ? mNewBufferFlag[i] : 0; - // note, other fields are not initialized here... - mData[newCnt].pos = mNewBufferPos[i]; - mData[newCnt].flag = PNEW | flag; + IndexInt bufferSize = mNewBufferPos.size(); + IndexInt partsSize = mData.size(); + + if (mMaxParticles > 0) + assertMsg(mMaxParticles >= partsSize, + "Particle system cannot contain more particles that the maximum allowed number"); + + // max number of new particles that can be inserted, adjusted buffer size when using maxParticles + // field + IndexInt numNewParts = (mMaxParticles > 0) ? mMaxParticles - mData.size() : bufferSize; + if (numNewParts > bufferSize) + numNewParts = bufferSize; // upper clamp + + assertMsg(numNewParts >= 0, "Must not have negative number of new particles"); + + // new size of particle system + IndexInt newSize = mData.size() + numNewParts; + if (mMaxParticles > 0) + assertMsg(newSize <= mMaxParticles, + "Particle system cannot contain more particles that the maximum allowed number"); + resizeAll(newSize); + + int insertFlag; + Vec3 insertPos; + static RandomStream mRand(9832); + for (IndexInt i = 0; i < numNewParts; ++i) { + + // get random index in newBuffer vector + // we are inserting particles randomly so that they are sampled uniformly in the fluid region + // otherwise, regions of fluid can remain completely empty once mData.size() == maxParticles is + // reached. + int randIndex = floor(mRand.getReal() * mNewBufferPos.size()); + + // get elements from new buffers with random index + std::swap(mNewBufferPos[randIndex], mNewBufferPos.back()); + insertPos = mNewBufferPos.back(); + mNewBufferPos.pop_back(); + + insertFlag = 0; + if (!mNewBufferFlag.empty()) { + std::swap(mNewBufferFlag[randIndex], mNewBufferFlag.back()); + insertFlag = mNewBufferFlag.back(); + mNewBufferFlag.pop_back(); + } + + mData[partsSize].pos = insertPos; + mData[partsSize].flag = PNEW | insertFlag; + // now init pdata fields from associated grids... for (IndexInt pd = 0; pd < (IndexInt)mPdataReal.size(); ++pd) - mPdataReal[pd]->initNewValue(newCnt, mNewBufferPos[i]); + mPdataReal[pd]->initNewValue(partsSize, insertPos); for (IndexInt pd = 0; pd < (IndexInt)mPdataVec3.size(); ++pd) - mPdataVec3[pd]->initNewValue(newCnt, mNewBufferPos[i]); + mPdataVec3[pd]->initNewValue(partsSize, insertPos); for (IndexInt pd = 0; pd < (IndexInt)mPdataInt.size(); ++pd) - mPdataInt[pd]->initNewValue(newCnt, mNewBufferPos[i]); - newCnt++; + mPdataInt[pd]->initNewValue(partsSize, insertPos); + partsSize++; } - if (mNewBufferPos.size() > 0) - debMsg("Added & initialized " << (IndexInt)mNewBufferPos.size() << " particles", - 2); // debug info + debMsg("Added & initialized " << numNewParts << " particles", 2); // debug info mNewBufferPos.clear(); mNewBufferFlag.clear(); } diff --git a/extern/mantaflow/preprocessed/particle.h.reg.cpp b/extern/mantaflow/preprocessed/particle.h.reg.cpp index 6e0466d0203..e9e538ad097 100644 --- a/extern/mantaflow/preprocessed/particle.h.reg.cpp +++ b/extern/mantaflow/preprocessed/particle.h.reg.cpp @@ -29,279 +29,283 @@ static const Pb::Register _R_21("ParticleBase", "ParticleBase", "PbClass"); template<> const char *Namify::S = "ParticleBase"; static const Pb::Register _R_22("ParticleBase", "ParticleBase", ParticleBase::_W_0); static const Pb::Register _R_23("ParticleBase", "create", ParticleBase::_W_1); +static const Pb::Register _R_24("ParticleBase", + "maxParticles", + ParticleBase::_GET_mMaxParticles, + ParticleBase::_SET_mMaxParticles); #endif #ifdef _C_ParticleDataBase -static const Pb::Register _R_24("ParticleDataBase", "ParticleDataBase", "PbClass"); +static const Pb::Register _R_25("ParticleDataBase", "ParticleDataBase", "PbClass"); template<> const char *Namify::S = "ParticleDataBase"; -static const Pb::Register _R_25("ParticleDataBase", "ParticleDataBase", ParticleDataBase::_W_21); +static const Pb::Register _R_26("ParticleDataBase", "ParticleDataBase", ParticleDataBase::_W_21); #endif #ifdef _C_ParticleDataImpl -static const Pb::Register _R_26("ParticleDataImpl", +static const Pb::Register _R_27("ParticleDataImpl", "ParticleDataImpl", "ParticleDataBase"); template<> const char *Namify>::S = "ParticleDataImpl"; -static const Pb::Register _R_27("ParticleDataImpl", +static const Pb::Register _R_28("ParticleDataImpl", "ParticleDataImpl", ParticleDataImpl::_W_22); -static const Pb::Register _R_28("ParticleDataImpl", "clear", ParticleDataImpl::_W_23); -static const Pb::Register _R_29("ParticleDataImpl", +static const Pb::Register _R_29("ParticleDataImpl", "clear", ParticleDataImpl::_W_23); +static const Pb::Register _R_30("ParticleDataImpl", "setSource", ParticleDataImpl::_W_24); -static const Pb::Register _R_30("ParticleDataImpl", "copyFrom", ParticleDataImpl::_W_25); -static const Pb::Register _R_31("ParticleDataImpl", "setConst", ParticleDataImpl::_W_26); -static const Pb::Register _R_32("ParticleDataImpl", +static const Pb::Register _R_31("ParticleDataImpl", "copyFrom", ParticleDataImpl::_W_25); +static const Pb::Register _R_32("ParticleDataImpl", "setConst", ParticleDataImpl::_W_26); +static const Pb::Register _R_33("ParticleDataImpl", "setConstRange", ParticleDataImpl::_W_27); -static const Pb::Register _R_33("ParticleDataImpl", "add", ParticleDataImpl::_W_28); -static const Pb::Register _R_34("ParticleDataImpl", "sub", ParticleDataImpl::_W_29); -static const Pb::Register _R_35("ParticleDataImpl", "addConst", ParticleDataImpl::_W_30); -static const Pb::Register _R_36("ParticleDataImpl", +static const Pb::Register _R_34("ParticleDataImpl", "add", ParticleDataImpl::_W_28); +static const Pb::Register _R_35("ParticleDataImpl", "sub", ParticleDataImpl::_W_29); +static const Pb::Register _R_36("ParticleDataImpl", "addConst", ParticleDataImpl::_W_30); +static const Pb::Register _R_37("ParticleDataImpl", "addScaled", ParticleDataImpl::_W_31); -static const Pb::Register _R_37("ParticleDataImpl", "mult", ParticleDataImpl::_W_32); -static const Pb::Register _R_38("ParticleDataImpl", +static const Pb::Register _R_38("ParticleDataImpl", "mult", ParticleDataImpl::_W_32); +static const Pb::Register _R_39("ParticleDataImpl", "multConst", ParticleDataImpl::_W_33); -static const Pb::Register _R_39("ParticleDataImpl", "safeDiv", ParticleDataImpl::_W_34); -static const Pb::Register _R_40("ParticleDataImpl", "clamp", ParticleDataImpl::_W_35); -static const Pb::Register _R_41("ParticleDataImpl", "clampMin", ParticleDataImpl::_W_36); -static const Pb::Register _R_42("ParticleDataImpl", "clampMax", ParticleDataImpl::_W_37); -static const Pb::Register _R_43("ParticleDataImpl", +static const Pb::Register _R_40("ParticleDataImpl", "safeDiv", ParticleDataImpl::_W_34); +static const Pb::Register _R_41("ParticleDataImpl", "clamp", ParticleDataImpl::_W_35); +static const Pb::Register _R_42("ParticleDataImpl", "clampMin", ParticleDataImpl::_W_36); +static const Pb::Register _R_43("ParticleDataImpl", "clampMax", ParticleDataImpl::_W_37); +static const Pb::Register _R_44("ParticleDataImpl", "getMaxAbs", ParticleDataImpl::_W_38); -static const Pb::Register _R_44("ParticleDataImpl", "getMax", ParticleDataImpl::_W_39); -static const Pb::Register _R_45("ParticleDataImpl", "getMin", ParticleDataImpl::_W_40); -static const Pb::Register _R_46("ParticleDataImpl", "sum", ParticleDataImpl::_W_41); -static const Pb::Register _R_47("ParticleDataImpl", +static const Pb::Register _R_45("ParticleDataImpl", "getMax", ParticleDataImpl::_W_39); +static const Pb::Register _R_46("ParticleDataImpl", "getMin", ParticleDataImpl::_W_40); +static const Pb::Register _R_47("ParticleDataImpl", "sum", ParticleDataImpl::_W_41); +static const Pb::Register _R_48("ParticleDataImpl", "sumSquare", ParticleDataImpl::_W_42); -static const Pb::Register _R_48("ParticleDataImpl", +static const Pb::Register _R_49("ParticleDataImpl", "sumMagnitude", ParticleDataImpl::_W_43); -static const Pb::Register _R_49("ParticleDataImpl", +static const Pb::Register _R_50("ParticleDataImpl", "setConstIntFlag", ParticleDataImpl::_W_44); -static const Pb::Register _R_50("ParticleDataImpl", +static const Pb::Register _R_51("ParticleDataImpl", "printPdata", ParticleDataImpl::_W_45); -static const Pb::Register _R_51("ParticleDataImpl", "save", ParticleDataImpl::_W_46); -static const Pb::Register _R_52("ParticleDataImpl", "load", ParticleDataImpl::_W_47); -static const Pb::Register _R_53("ParticleDataImpl", +static const Pb::Register _R_52("ParticleDataImpl", "save", ParticleDataImpl::_W_46); +static const Pb::Register _R_53("ParticleDataImpl", "load", ParticleDataImpl::_W_47); +static const Pb::Register _R_54("ParticleDataImpl", "getDataPointer", ParticleDataImpl::_W_48); -static const Pb::Register _R_54("ParticleDataImpl", +static const Pb::Register _R_55("ParticleDataImpl", "ParticleDataImpl", "ParticleDataBase"); template<> const char *Namify>::S = "ParticleDataImpl"; -static const Pb::Register _R_55("ParticleDataImpl", +static const Pb::Register _R_56("ParticleDataImpl", "ParticleDataImpl", ParticleDataImpl::_W_22); -static const Pb::Register _R_56("ParticleDataImpl", "clear", ParticleDataImpl::_W_23); -static const Pb::Register _R_57("ParticleDataImpl", +static const Pb::Register _R_57("ParticleDataImpl", "clear", ParticleDataImpl::_W_23); +static const Pb::Register _R_58("ParticleDataImpl", "setSource", ParticleDataImpl::_W_24); -static const Pb::Register _R_58("ParticleDataImpl", +static const Pb::Register _R_59("ParticleDataImpl", "copyFrom", ParticleDataImpl::_W_25); -static const Pb::Register _R_59("ParticleDataImpl", +static const Pb::Register _R_60("ParticleDataImpl", "setConst", ParticleDataImpl::_W_26); -static const Pb::Register _R_60("ParticleDataImpl", +static const Pb::Register _R_61("ParticleDataImpl", "setConstRange", ParticleDataImpl::_W_27); -static const Pb::Register _R_61("ParticleDataImpl", "add", ParticleDataImpl::_W_28); -static const Pb::Register _R_62("ParticleDataImpl", "sub", ParticleDataImpl::_W_29); -static const Pb::Register _R_63("ParticleDataImpl", +static const Pb::Register _R_62("ParticleDataImpl", "add", ParticleDataImpl::_W_28); +static const Pb::Register _R_63("ParticleDataImpl", "sub", ParticleDataImpl::_W_29); +static const Pb::Register _R_64("ParticleDataImpl", "addConst", ParticleDataImpl::_W_30); -static const Pb::Register _R_64("ParticleDataImpl", +static const Pb::Register _R_65("ParticleDataImpl", "addScaled", ParticleDataImpl::_W_31); -static const Pb::Register _R_65("ParticleDataImpl", "mult", ParticleDataImpl::_W_32); -static const Pb::Register _R_66("ParticleDataImpl", +static const Pb::Register _R_66("ParticleDataImpl", "mult", ParticleDataImpl::_W_32); +static const Pb::Register _R_67("ParticleDataImpl", "multConst", ParticleDataImpl::_W_33); -static const Pb::Register _R_67("ParticleDataImpl", +static const Pb::Register _R_68("ParticleDataImpl", "safeDiv", ParticleDataImpl::_W_34); -static const Pb::Register _R_68("ParticleDataImpl", "clamp", ParticleDataImpl::_W_35); -static const Pb::Register _R_69("ParticleDataImpl", +static const Pb::Register _R_69("ParticleDataImpl", "clamp", ParticleDataImpl::_W_35); +static const Pb::Register _R_70("ParticleDataImpl", "clampMin", ParticleDataImpl::_W_36); -static const Pb::Register _R_70("ParticleDataImpl", +static const Pb::Register _R_71("ParticleDataImpl", "clampMax", ParticleDataImpl::_W_37); -static const Pb::Register _R_71("ParticleDataImpl", +static const Pb::Register _R_72("ParticleDataImpl", "getMaxAbs", ParticleDataImpl::_W_38); -static const Pb::Register _R_72("ParticleDataImpl", "getMax", ParticleDataImpl::_W_39); -static const Pb::Register _R_73("ParticleDataImpl", "getMin", ParticleDataImpl::_W_40); -static const Pb::Register _R_74("ParticleDataImpl", "sum", ParticleDataImpl::_W_41); -static const Pb::Register _R_75("ParticleDataImpl", +static const Pb::Register _R_73("ParticleDataImpl", "getMax", ParticleDataImpl::_W_39); +static const Pb::Register _R_74("ParticleDataImpl", "getMin", ParticleDataImpl::_W_40); +static const Pb::Register _R_75("ParticleDataImpl", "sum", ParticleDataImpl::_W_41); +static const Pb::Register _R_76("ParticleDataImpl", "sumSquare", ParticleDataImpl::_W_42); -static const Pb::Register _R_76("ParticleDataImpl", +static const Pb::Register _R_77("ParticleDataImpl", "sumMagnitude", ParticleDataImpl::_W_43); -static const Pb::Register _R_77("ParticleDataImpl", +static const Pb::Register _R_78("ParticleDataImpl", "setConstIntFlag", ParticleDataImpl::_W_44); -static const Pb::Register _R_78("ParticleDataImpl", +static const Pb::Register _R_79("ParticleDataImpl", "printPdata", ParticleDataImpl::_W_45); -static const Pb::Register _R_79("ParticleDataImpl", "save", ParticleDataImpl::_W_46); -static const Pb::Register _R_80("ParticleDataImpl", "load", ParticleDataImpl::_W_47); -static const Pb::Register _R_81("ParticleDataImpl", +static const Pb::Register _R_80("ParticleDataImpl", "save", ParticleDataImpl::_W_46); +static const Pb::Register _R_81("ParticleDataImpl", "load", ParticleDataImpl::_W_47); +static const Pb::Register _R_82("ParticleDataImpl", "getDataPointer", ParticleDataImpl::_W_48); -static const Pb::Register _R_82("ParticleDataImpl", +static const Pb::Register _R_83("ParticleDataImpl", "ParticleDataImpl", "ParticleDataBase"); template<> const char *Namify>::S = "ParticleDataImpl"; -static const Pb::Register _R_83("ParticleDataImpl", +static const Pb::Register _R_84("ParticleDataImpl", "ParticleDataImpl", ParticleDataImpl::_W_22); -static const Pb::Register _R_84("ParticleDataImpl", "clear", ParticleDataImpl::_W_23); -static const Pb::Register _R_85("ParticleDataImpl", +static const Pb::Register _R_85("ParticleDataImpl", "clear", ParticleDataImpl::_W_23); +static const Pb::Register _R_86("ParticleDataImpl", "setSource", ParticleDataImpl::_W_24); -static const Pb::Register _R_86("ParticleDataImpl", +static const Pb::Register _R_87("ParticleDataImpl", "copyFrom", ParticleDataImpl::_W_25); -static const Pb::Register _R_87("ParticleDataImpl", +static const Pb::Register _R_88("ParticleDataImpl", "setConst", ParticleDataImpl::_W_26); -static const Pb::Register _R_88("ParticleDataImpl", +static const Pb::Register _R_89("ParticleDataImpl", "setConstRange", ParticleDataImpl::_W_27); -static const Pb::Register _R_89("ParticleDataImpl", "add", ParticleDataImpl::_W_28); -static const Pb::Register _R_90("ParticleDataImpl", "sub", ParticleDataImpl::_W_29); -static const Pb::Register _R_91("ParticleDataImpl", +static const Pb::Register _R_90("ParticleDataImpl", "add", ParticleDataImpl::_W_28); +static const Pb::Register _R_91("ParticleDataImpl", "sub", ParticleDataImpl::_W_29); +static const Pb::Register _R_92("ParticleDataImpl", "addConst", ParticleDataImpl::_W_30); -static const Pb::Register _R_92("ParticleDataImpl", +static const Pb::Register _R_93("ParticleDataImpl", "addScaled", ParticleDataImpl::_W_31); -static const Pb::Register _R_93("ParticleDataImpl", "mult", ParticleDataImpl::_W_32); -static const Pb::Register _R_94("ParticleDataImpl", +static const Pb::Register _R_94("ParticleDataImpl", "mult", ParticleDataImpl::_W_32); +static const Pb::Register _R_95("ParticleDataImpl", "multConst", ParticleDataImpl::_W_33); -static const Pb::Register _R_95("ParticleDataImpl", +static const Pb::Register _R_96("ParticleDataImpl", "safeDiv", ParticleDataImpl::_W_34); -static const Pb::Register _R_96("ParticleDataImpl", "clamp", ParticleDataImpl::_W_35); -static const Pb::Register _R_97("ParticleDataImpl", +static const Pb::Register _R_97("ParticleDataImpl", "clamp", ParticleDataImpl::_W_35); +static const Pb::Register _R_98("ParticleDataImpl", "clampMin", ParticleDataImpl::_W_36); -static const Pb::Register _R_98("ParticleDataImpl", +static const Pb::Register _R_99("ParticleDataImpl", "clampMax", ParticleDataImpl::_W_37); -static const Pb::Register _R_99("ParticleDataImpl", - "getMaxAbs", - ParticleDataImpl::_W_38); static const Pb::Register _R_100("ParticleDataImpl", + "getMaxAbs", + ParticleDataImpl::_W_38); +static const Pb::Register _R_101("ParticleDataImpl", "getMax", ParticleDataImpl::_W_39); -static const Pb::Register _R_101("ParticleDataImpl", +static const Pb::Register _R_102("ParticleDataImpl", "getMin", ParticleDataImpl::_W_40); -static const Pb::Register _R_102("ParticleDataImpl", "sum", ParticleDataImpl::_W_41); -static const Pb::Register _R_103("ParticleDataImpl", +static const Pb::Register _R_103("ParticleDataImpl", "sum", ParticleDataImpl::_W_41); +static const Pb::Register _R_104("ParticleDataImpl", "sumSquare", ParticleDataImpl::_W_42); -static const Pb::Register _R_104("ParticleDataImpl", +static const Pb::Register _R_105("ParticleDataImpl", "sumMagnitude", ParticleDataImpl::_W_43); -static const Pb::Register _R_105("ParticleDataImpl", +static const Pb::Register _R_106("ParticleDataImpl", "setConstIntFlag", ParticleDataImpl::_W_44); -static const Pb::Register _R_106("ParticleDataImpl", +static const Pb::Register _R_107("ParticleDataImpl", "printPdata", ParticleDataImpl::_W_45); -static const Pb::Register _R_107("ParticleDataImpl", "save", ParticleDataImpl::_W_46); -static const Pb::Register _R_108("ParticleDataImpl", "load", ParticleDataImpl::_W_47); -static const Pb::Register _R_109("ParticleDataImpl", +static const Pb::Register _R_108("ParticleDataImpl", "save", ParticleDataImpl::_W_46); +static const Pb::Register _R_109("ParticleDataImpl", "load", ParticleDataImpl::_W_47); +static const Pb::Register _R_110("ParticleDataImpl", "getDataPointer", ParticleDataImpl::_W_48); #endif #ifdef _C_ParticleIndexSystem -static const Pb::Register _R_110("ParticleIndexSystem", +static const Pb::Register _R_111("ParticleIndexSystem", "ParticleIndexSystem", "ParticleSystem"); template<> const char *Namify::S = "ParticleIndexSystem"; -static const Pb::Register _R_111("ParticleIndexSystem", +static const Pb::Register _R_112("ParticleIndexSystem", "ParticleIndexSystem", ParticleIndexSystem::_W_19); #endif #ifdef _C_ParticleSystem -static const Pb::Register _R_112("ParticleSystem", +static const Pb::Register _R_113("ParticleSystem", "ParticleSystem", "ParticleBase"); template<> const char *Namify>::S = "ParticleSystem"; -static const Pb::Register _R_113("ParticleSystem", +static const Pb::Register _R_114("ParticleSystem", "ParticleSystem", ParticleSystem::_W_2); -static const Pb::Register _R_114("ParticleSystem", +static const Pb::Register _R_115("ParticleSystem", "pySize", ParticleSystem::_W_3); -static const Pb::Register _R_115("ParticleSystem", +static const Pb::Register _R_116("ParticleSystem", "setPos", ParticleSystem::_W_4); -static const Pb::Register _R_116("ParticleSystem", +static const Pb::Register _R_117("ParticleSystem", "getPos", ParticleSystem::_W_5); -static const Pb::Register _R_117("ParticleSystem", +static const Pb::Register _R_118("ParticleSystem", "getPosPdata", ParticleSystem::_W_6); -static const Pb::Register _R_118("ParticleSystem", +static const Pb::Register _R_119("ParticleSystem", "setPosPdata", ParticleSystem::_W_7); -static const Pb::Register _R_119("ParticleSystem", +static const Pb::Register _R_120("ParticleSystem", "clear", ParticleSystem::_W_8); -static const Pb::Register _R_120("ParticleSystem", +static const Pb::Register _R_121("ParticleSystem", "advectInGrid", ParticleSystem::_W_9); -static const Pb::Register _R_121("ParticleSystem", +static const Pb::Register _R_122("ParticleSystem", "projectOutside", ParticleSystem::_W_10); -static const Pb::Register _R_122("ParticleSystem", +static const Pb::Register _R_123("ParticleSystem", "projectOutOfBnd", ParticleSystem::_W_11); -static const Pb::Register _R_123("ParticleSystem", +static const Pb::Register _R_124("ParticleSystem", "ParticleSystem", "ParticleBase"); template<> const char *Namify>::S = "ParticleSystem"; -static const Pb::Register _R_124("ParticleSystem", +static const Pb::Register _R_125("ParticleSystem", "ParticleSystem", ParticleSystem::_W_2); -static const Pb::Register _R_125("ParticleSystem", +static const Pb::Register _R_126("ParticleSystem", "pySize", ParticleSystem::_W_3); -static const Pb::Register _R_126("ParticleSystem", +static const Pb::Register _R_127("ParticleSystem", "setPos", ParticleSystem::_W_4); -static const Pb::Register _R_127("ParticleSystem", +static const Pb::Register _R_128("ParticleSystem", "getPos", ParticleSystem::_W_5); -static const Pb::Register _R_128("ParticleSystem", +static const Pb::Register _R_129("ParticleSystem", "getPosPdata", ParticleSystem::_W_6); -static const Pb::Register _R_129("ParticleSystem", +static const Pb::Register _R_130("ParticleSystem", "setPosPdata", ParticleSystem::_W_7); -static const Pb::Register _R_130("ParticleSystem", +static const Pb::Register _R_131("ParticleSystem", "clear", ParticleSystem::_W_8); -static const Pb::Register _R_131("ParticleSystem", +static const Pb::Register _R_132("ParticleSystem", "advectInGrid", ParticleSystem::_W_9); -static const Pb::Register _R_132("ParticleSystem", +static const Pb::Register _R_133("ParticleSystem", "projectOutside", ParticleSystem::_W_10); -static const Pb::Register _R_133("ParticleSystem", +static const Pb::Register _R_134("ParticleSystem", "projectOutOfBnd", ParticleSystem::_W_11); #endif @@ -432,6 +436,7 @@ void PbRegister_file_10() KEEP_UNUSED(_R_131); KEEP_UNUSED(_R_132); KEEP_UNUSED(_R_133); + KEEP_UNUSED(_R_134); } } } // namespace Manta \ No newline at end of file -- cgit v1.2.3