QMCPACK
FakeOperatorEstimator.h
Go to the documentation of this file.
1 //////////////////////////////////////////////////////////////////////////////////////
2 // This file is distributed under the University of Illinois/NCSA Open Source License.
3 // See LICENSE file in top directory for details.
4 //
5 // Copyright (c) 2020 QMCPACK developers.
6 //
7 // File developed by: Peter Doak, doakpw@ornl.gov, Oak Ridge National Laboratory
8 //
9 // File created by: Peter Doak, doakpw@ornl.gov, Oak Ridge National Laboratory
10 //////////////////////////////////////////////////////////////////////////////////////
11 
12 #ifndef QMCPLUSPLUS_FAKEOPERATORESTIMATOR_H
13 #define QMCPLUSPLUS_FAKEOPERATORESTIMATOR_H
14 
15 #include "OperatorEstBase.h"
16 #include "Configuration.h"
18 
19 namespace qmcplusplus
20 {
22 {
23 public:
24  using QMCT = QMCTraits;
25 
26  FakeOperatorEstimator(int num_ranks, DataLocality data_locality);
27 
29 
30  ~FakeOperatorEstimator() override{};
31 
33  const RefVector<ParticleSet>& psets,
34  const RefVector<TrialWaveFunction>& wfns,
35  const RefVector<QMCHamiltonian>& hams,
36  RandomBase<FullPrecRealType>& rng) override
37  {}
38 
39  void registerOperatorEstimator(hdf_archive& file) override {}
40 
41  void startBlock(int nsteps) override {}
42 
43  std::unique_ptr<OperatorEstBase> spawnCrowdClone() const override
44  {
45  return std::make_unique<FakeOperatorEstimator>(*this);
46  }
47 
49 };
50 
51 } // namespace qmcplusplus
52 #endif
helper functions for EinsplineSetBuilder
Definition: Configuration.h:43
QTBase::RealType RealType
Definition: Configuration.h:58
void registerOperatorEstimator(hdf_archive &file) override
class to handle hdf file
Definition: hdf_archive.h:51
const char walkers[]
Definition: HDFVersion.h:36
QMCT::FullPrecRealType walkers_weight_
void set_walker_weights(QMCT::RealType weight)
void startBlock(int nsteps) override
FakeOperatorEstimator(int num_ranks, DataLocality data_locality)
An abstract class for gridded estimators.
void accumulate(const RefVector< MCPWalker > &walkers, const RefVector< ParticleSet > &psets, const RefVector< TrialWaveFunction > &wfns, const RefVector< QMCHamiltonian > &hams, RandomBase< FullPrecRealType > &rng) override
Accumulate whatever it is you are accumulating with respect to walkers.
std::vector< std::reference_wrapper< T > > RefVector
DataLocality
data locality with respect to walker buffer
Definition: DataLocality.h:19
traits for QMC variables
Definition: Configuration.h:49
std::unique_ptr< OperatorEstBase > spawnCrowdClone() const override