コード例 #1
0
TrialWaveFunction* TrialWaveFunction::makeClone(ParticleSet& tqp)  const
{
  TrialWaveFunction* myclone = new TrialWaveFunction(myComm);
  myclone->BufferCursor=BufferCursor;
  for (int i=0; i<Z.size(); ++i)
    myclone->addOrbital(Z[i]->makeClone(tqp),"dummy",Z[i]->IsFermionWF);
  myclone->OneOverM=OneOverM;
  return myclone;
}
コード例 #2
0
  TrialWaveFunction* TrialWaveFunction::makeClone(ParticleSet& tqp)  const
  {
    TrialWaveFunction* myclone = new TrialWaveFunction(myComm);
    for(int i=0; i<Z.size(); ++i)
    {
      myclone->addOrbital(Z[i]->makeClone(tqp),"dummy");
    }
    for(int i=0; i<myTimers.size(); i++)
      myclone->myTimers[i]->set_name(myTimers[i]->get_name());
    myclone->OneOverM=OneOverM;
    return myclone;

  }