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) 2019 QMCPACK developers. 6 // 7 // File developed by: Mark Dewing, mdewin@anl.gov, Argonne National Laboratory 8 // 9 // Refactored from test_manager.cpp 10 ////////////////////////////////////////////////////////////////////////////////////// 11 12 #ifndef QMCPLUSPLUS_FAKEESTIMATOR_H 13 #define QMCPLUSPLUS_FAKEESTIMATOR_H 14 15 #include "Estimators/ScalarEstimatorBase.h" 16 namespace qmcplusplus 17 { 18 class FakeEstimator : public ScalarEstimatorBase 19 { accumulate(const MCWalkerConfiguration & W,WalkerIterator first,WalkerIterator last,RealType wgt)20 void accumulate(const MCWalkerConfiguration& W, WalkerIterator first, WalkerIterator last, RealType wgt) override {} 21 accumulate(const RefVector<MCPWalker> & walkers)22 void accumulate(const RefVector<MCPWalker>& walkers) override {} 23 add2Record(RecordNamedProperty<RealType> & record)24 void add2Record(RecordNamedProperty<RealType>& record) override {} 25 registerObservables(std::vector<observable_helper * > & h5dec,hid_t gid)26 void registerObservables(std::vector<observable_helper*>& h5dec, hid_t gid) override {} 27 clone()28 ScalarEstimatorBase* clone() override { return new FakeEstimator; } 29 }; 30 31 } // namespace qmcplusplus 32 #endif 33