QMCPACK
test_EstimatorManagerNew.cpp File Reference
+ Include dependency graph for test_EstimatorManagerNew.cpp:

Go to the source code of this file.

Namespaces

 qmcplusplus
 helper functions for EinsplineSetBuilder
 

Functions

 CHECK (embt.em.getNumEstimators()==0)
 
EstimatorManagerInput emi (estimators_doc.getRoot())
 
 CHECK (emi.get_estimator_inputs().size()==2)
 
 CHECK (emn.getNumEstimators()==2)
 
 CHECK (emnta.getMainEstimator().getName()=="LocalEnergyEstimator")
 
EstimatorManagerInput emi2 (estimators_doc2.getRoot())
 
 CHECK (emi2.get_estimator_inputs().size()==2)
 
 CHECK (emn2.getNumEstimators()==2)
 
 CHECK (emnta2.getMainEstimator().getName()=="RMCLocalEnergyEstimator")
 
 TEST_CASE ("EstimatorManagerNew::collectMainEstimators", "[estimators]")
 
 TEST_CASE ("EstimatorManagerNew::collectScalarEstimators", "[estimators]")
 
 TEST_CASE ("EstimatorManagerNew adhoc addVector operator", "[estimators]")
 

Variables

QMCHamiltonian ham = *(hamiltonian_pool.getPrimary())
 
testing::EstimatorManagerNewTest embt (ham, c, 1)
 
Communicatecomm = OHMMS::Controller
 
Libxml2Document estimators_doc = createEstimatorManagerNewVMCInputXML()
 
auto particle_pool = MinimalParticlePool::make_diamondC_1x1x1(comm)
 
auto wavefunction_pool
 
auto & pset = *(particle_pool.getParticleSet("e"))
 
auto hamiltonian_pool = MinimalHamiltonianPool::make_hamWithEE(comm, particle_pool, wavefunction_pool)
 
auto & twf = *(wavefunction_pool.getWaveFunction("wavefunction"))
 
EstimatorManagerNew emn (comm, std::move(emi), ham, pset, twf)
 
EstimatorManagerNewTestAccess emnta (emn)
 
Libxml2Document estimators_doc2 = createEstimatorManagerNewInputXML()
 
EstimatorManagerNew emn2 (comm, std::move(emi2), ham, pset, twf)
 
EstimatorManagerNewTestAccess emnta2 (emn2)