本文整理汇总了C++中ParticleSet::addTable方法的典型用法代码示例。如果您正苦于以下问题:C++ ParticleSet::addTable方法的具体用法?C++ ParticleSet::addTable怎么用?C++ ParticleSet::addTable使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ParticleSet
的用法示例。
在下文中一共展示了ParticleSet::addTable方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1:
void
ZeroVarianceForce::resetTargetParticleSet(ParticleSet& P)
{
int tid=P.addTable(Ions);
if(tid != myTableIndex)
APP_ABORT("ZeroVarianceForce::resetTargetParticleSet found inconsistent table index");
}
示例2: resetTargetParticleSet
void LocalECPotential::resetTargetParticleSet(ParticleSet& P) {
int tid=P.addTable(IonConfig);
if(tid != myTableIndex)
{
APP_ABORT(" LocalECPotential::resetTargetParticleSet found a different distance table index.");
}
}
示例3: PtclRef
MPC::MPC(ParticleSet& ptcl, double cutoff) :
PtclRef(&ptcl), Ecut(cutoff), FirstTime(true),
VlongSpline(0), DensitySpline(0)
{
int it=ptcl.addTable(ptcl);
initBreakup();
}
示例4: resetTargetParticleSet
void CoulombPBCAB::resetTargetParticleSet(ParticleSet& P)
{
int tid=P.addTable(PtclA);
if(tid != myTableIndex)
{
APP_ABORT("CoulombPBCAB::resetTargetParticleSet found inconsistent table index");
}
AB->resetTargetParticleSet(P);
}
示例5: IonConfig
LocalECPotential::LocalECPotential(const ParticleSet& ions, ParticleSet& els):
IonConfig(ions)
{
NumIons=ions.getTotalNum();
myTableIndex=els.addTable(ions);
//allocate null
PPset.resize(ions.getSpeciesSet().getTotalNum(),0);
PP.resize(NumIons,0);
Zeff.resize(NumIons,0.0);
gZeff.resize(ions.getSpeciesSet().getTotalNum(),0);
}
示例6: PRE
CoulombPBCAB::CoulombPBCAB(ParticleSet& ions, ParticleSet& elns,
bool computeForces):
PtclA(ions), myConst(0.0), myGrid(0),V0(0),ComputeForces(computeForces),
ForceBase (ions, elns), MaxGridPoints(10000),Pion(ions),Peln(elns)
{
// if (ComputeForces)
// InitVarReduction (0.5, 0, 3);
ReportEngine PRE("CoulombPBCAB","CoulombPBCAB");
//Use singleton pattern
//AB = new LRHandlerType(ions);
myTableIndex=elns.addTable(ions);
initBreakup(elns);
prefix="Flocal";
app_log() << " Maximum K shell " << AB->MaxKshell << endl;
app_log() << " Number of k vectors " << AB->Fk.size() << endl;
}