mirror of https://github.com/QMCPACK/qmcpack.git
remove walker_offsets not used in MCPopulation or unified drivers
This commit is contained in:
parent
6775f119bb
commit
74d9dd506f
|
@ -29,7 +29,6 @@ MCPopulation::MCPopulation(int num_ranks,
|
|||
int this_rank)
|
||||
: num_local_walkers_per_node_(num_ranks, 0), trial_wf_(trial_wf), elec_particle_set_(elecs), hamiltonian_(hamiltonian), num_ranks_(num_ranks), rank_(this_rank)
|
||||
{
|
||||
walker_offsets_ = mcwc.WalkerOffsets;
|
||||
num_global_walkers_ = mcwc.GlobalNumWalkers;
|
||||
num_local_walkers_ = mcwc.LocalNumWalkers;
|
||||
num_particles_ = mcwc.getParticleNum();
|
||||
|
@ -267,7 +266,6 @@ void MCPopulation::syncWalkersPerNode(Communicate* comm)
|
|||
nwoff[ip + 1] = nwoff[ip] + num_local_walkers_per_node_[ip];
|
||||
}
|
||||
num_global_walkers_ = nwoff[ncontexts];
|
||||
walker_offsets_ = std::move(nwoff);
|
||||
}
|
||||
|
||||
/** Creates walkers doing their first touch in their crowd (thread) context
|
||||
|
|
|
@ -54,7 +54,6 @@ private:
|
|||
IndexType target_samples_ = 0;
|
||||
//Properties properties_;
|
||||
ParticleSet ions_;
|
||||
std::vector<IndexType> walker_offsets_;
|
||||
std::vector<IndexType> num_local_walkers_per_node_;
|
||||
|
||||
// By making this a linked list and creating the crowds at the same time we could get first touch.
|
||||
|
@ -191,7 +190,6 @@ public:
|
|||
const SpeciesSet& get_species_set() const { return species_set_; }
|
||||
const ParticleSet& get_ions() const { return ions_; }
|
||||
const ParticleSet* get_golden_electrons() const {return elec_particle_set_; }
|
||||
const std::vector<int>& get_walker_offsets() const { return walker_offsets_; }
|
||||
std::vector<IndexType> get_num_local_walkers_per_node() const { return num_local_walkers_per_node_; }
|
||||
void syncWalkersPerNode(Communicate* comm);
|
||||
void set_num_global_walkers(IndexType num_global_walkers) { num_global_walkers_ = num_global_walkers; }
|
||||
|
@ -212,8 +210,6 @@ public:
|
|||
const std::vector<RealType>& get_ptclgrp_inv_mass() const { return ptclgrp_inv_mass_; }
|
||||
const std::vector<RealType>& get_ptcl_inv_mass() const { return ptcl_inv_mass_; }
|
||||
|
||||
void set_walker_offsets(std::vector<IndexType> walker_offsets) { walker_offsets_ = walker_offsets; }
|
||||
|
||||
// TODO: the fact this is needed is sad remove need for its existence.
|
||||
QMCHamiltonian& get_golden_hamiltonian() { return *hamiltonian_; }
|
||||
/** }@ */
|
||||
|
|
Loading…
Reference in New Issue