![]() |
QMCPACK
|
SpaceGrid refactored for use with batched estimator design NE should be dropped when QMCHamiltonian/SpaceGrid has been deleted. More...
Namespaces | |
magdensity | |
Classes | |
class | CrowdWithWalkers |
struct | CUDAHandles |
Doesn't depend on the resource management scheme thats out of scope for unit tests. More... | |
class | DMCBatchedTest |
class | EnergyDensityTests |
class | EstimatorManagerBaseTest |
Testing class breaking EstimatorManagerBase encapsultation. More... | |
class | EstimatorManagerCrowdTest |
Testing class breaking EstimatorManagerCrowd encapsultation. More... | |
class | EstimatorManagerInputTests |
class | EstimatorManagerNewTest |
Testing class breaking EstimatorManagerNew encapsultation. More... | |
class | EstimatorManagerNewTestAccess |
struct | InvalidOneBodyDensityMatricesInput |
struct | InvalidReferencePointsInputs |
struct | InvalidSpaceGridInput |
class | LinearMethodTestSupport |
class | MagnetizationDensityTests |
class | MakeRngSpdMatrix |
Functor to provide scope for rng when making SpdMatrix for testing. More... | |
class | MakeRngVector |
Functor to provide scope for rng when making SpdMatrix for testing. More... | |
class | MatrixAccessor |
Read only access, for testing! More... | |
class | MockPerParticleEstimator |
class | MockQMCHamiltonianAndReporter |
Mock class that collects ListnerVectors as QMCHamiltonian does and reports ListenerVectors Hamiltonian operators do when they report per particle values. More... | |
class | MomentumDistributionTests |
class to preserve access control in MomentumDistribution More... | |
class | NESpaceGridTests |
class | OEBAccessor |
break encapsulation of data_ by OperatorEstBase only for testing! More... | |
class | OneBodyDensityMatricesTests |
class | QMCDriverNewTestWrapper |
class | QMCDriverPools |
class | RandomForTest |
Get a known sequence of random numbers for testing. More... | |
class | SetupDMCTest |
class | SetupPools |
class | SetupSFNBranch |
class | SetupSimpleFixedNodeBranch |
class | SpaceGridEnv |
class | SpaceGridEnv< ValidSpaceGridInput::valid::CYLINDRICAL > |
class | SpinDensityNewTests |
class to preserve access control in MomentumDistribution More... | |
class | TestableNEReferencePoints |
class | TestNonLocalECPotential |
class to violate access control because evaluation of NonLocalECPotential uses RNG which we may not be able to control. More... | |
class | TestSOECPotential |
class | UnifiedDriverWalkerControlMPITest |
Once there is only one driver type rename. More... | |
struct | ValidOneBodyDensityMatricesInput |
struct | ValidReferencePointsInputs |
struct | ValidScalarEstimatorInput |
struct | ValidSpaceGridInput |
struct | ValidSpinDensityInput |
class | VMCBatchedTest |
class | WalkerConsumer |
mock class to avoid testing dependency between Crowd and MCPopulation More... | |
Typedefs | |
using | scalar_input = testing::ValidScalarEstimatorInput |
using | POLT = PtclOnLatticeTraits |
using | Lattice = POLT::ParticleLayout |
using | OBDMI = OneBodyDensityMatricesInput |
Enumerations | |
enum | MA_ori { ROW, COLUMN } |
enum | SpeciesCases { GOOD, NO_MEMBERSIZE } |
Functions | |
template<typename T , typename = typename std::enable_if<std::is_floating_point<T>::value, void>::type> | |
void | makeRngSpdMatrix (testing::RandomForTest< RngValueType< T >> &rng, Matrix< T > &mat_spd) |
template<typename T , typename = typename std::enable_if<std::is_floating_point<T>::value, void>::type> | |
void | makeRngVector (testing::RandomForTest< RngValueType< T >> &rng, Vector< T > &vec) |
make a random Vector More... | |
std::vector< QMCTraits::ValueType > & | getMyVarsFull (RotatedSPOs &rot) |
std::vector< std::vector< QMCTraits::ValueType > > & | getHistoryParams (RotatedSPOs &rot) |
opt_variables_type & | getMyVars (SPOSet &spo) |
TEST_CASE ("ListenerVector", "[hamiltonian]") | |
template<typename T > | |
auto | getParticularListener (Matrix< T > &local_pots) |
template<typename T > | |
auto | getSummingListener (Matrix< T > &local_pots) |
Libxml2Document | createEstimatorManagerNewGlobalInputXML () |
Libxml2Document | createEstimatorManagerNewInputXML () |
Libxml2Document | createEstimatorManagerNewVMCInputXML () |
Lattice | makeTestLattice () |
SpeciesSet | makeSpeciesSet (const SpeciesCases species_case) |
template<bool GEN_TEST_DATA> | |
std::vector< ParticleSet > | generateRandomParticleSets (ParticleSet &pset_target, ParticleSet &pset_source, std::vector< ParticleSet::ParticlePos > &deterministic_rs, int num_psets) |
This function sets particle set positions from a set of Rs or writes out a set of positions for test reproducibility. More... | |
template std::vector< ParticleSet > | generateRandomParticleSets< false > (ParticleSet &pset_target, ParticleSet &pset_source, std::vector< ParticleSet::ParticlePos > &deterministic_rs, int num_psets) |
template std::vector< ParticleSet > | generateRandomParticleSets< true > (ParticleSet &pset_target, ParticleSet &pset_source, std::vector< ParticleSet::ParticlePos > &deterministic_rs, int num_psets) |
auto | createDriver (const RuntimeOptions &runtime_options, Communicate *comm, QMCDriverFactory &driver_factory, xmlNodePtr node, QMCDriverFactory::DriverAssemblyState &das) |
Variables | |
constexpr std::array< std::string_view, 3 > | invalid_mag_density_input_sections |
constexpr int | invalid_magnetization_density_integrator = 0 |
constexpr int | invalid_magnetization_density_cornercenter = 1 |
constexpr int | invalid_magnetization_density_badgrid = 2 |
constexpr std::array< std::string_view, 2 > | valid_momentum_distribution_input_sections |
constexpr std::array< const char *, 4 > | valid_vmc_input_sections |
constexpr int | valid_vmc_input_vmc_index = 0 |
constexpr int | valid_vmc_input_vmc_batch_index = 1 |
constexpr int | valid_vmc_input_vmc_tiny_index = 2 |
constexpr int | valid_vmc_batch_input_vmc_batch_index = 3 |
constexpr std::array< const char *, 3 > | valid_dmc_input_sections |
constexpr int | valid_dmc_input_dmc_index = 0 |
constexpr int | valid_dmc_input_dmc_batch_index = 1 |
constexpr int | valid_dmc_batch_input_dmc_batch_index = 2 |
constexpr std::array< const char *, 2 > | valid_opt_input_sections |
As far as I can tell these are no longer valid. More... | |
SpaceGrid refactored for use with batched estimator design NE should be dropped when QMCHamiltonian/SpaceGrid has been deleted.
Unit testing an impure virtual base class requires a absolute minimal subtype.
This class has more going on than just representing a spacial grid I'm still working out how much of this just because of the Voronoi code that shouldn't be part of the same class as the simpler grid and how much is particleset contimination etc.
For memory considerations it is quite possible this could be at single precision even if the actual montecarlo is being carried out in double precision. Eventually this should be determined from input in some way.
class qmcplusplus::testing::EnergyDensityTests |
Definition at line 29 of file ReferencePointsInput.h.
using Lattice = POLT::ParticleLayout |
Definition at line 26 of file EstimatorTesting.h.
using OBDMI = OneBodyDensityMatricesInput |
Definition at line 55 of file test_OneBodyDensityMatrices.cpp.
using POLT = PtclOnLatticeTraits |
Definition at line 25 of file EstimatorTesting.h.
Definition at line 24 of file EstimatorManagerInputTest.cpp.
|
strong |
Enumerator | |
---|---|
ROW | |
COLUMN |
Definition at line 18 of file MatrixAccessor.hpp.
|
strong |
Enumerator | |
---|---|
GOOD | |
NO_MEMBERSIZE |
Definition at line 28 of file EstimatorTesting.h.
auto qmcplusplus::testing::createDriver | ( | const RuntimeOptions & | runtime_options, |
Communicate * | comm, | ||
QMCDriverFactory & | driver_factory, | ||
xmlNodePtr | node, | ||
QMCDriverFactory::DriverAssemblyState & | das | ||
) |
Definition at line 53 of file test_QMCDriverFactory.cpp.
References qmcplusplus::comm, QMCDriverFactory::createQMCDriver(), ParticleSetPool::getWalkerSet(), QMCDriverPools::hamiltonian, qmcplusplus::node, QMCDriverPools::particle, and QMCDriverPools::wavefunction.
Referenced by qmcplusplus::TEST_CASE().
Libxml2Document createEstimatorManagerNewGlobalInputXML | ( | ) |
Definition at line 26 of file EstimatorManagerInputTest.cpp.
References Libxml2Document::addChild(), qmcplusplus::doc, qmcplusplus::estimators_doc, Libxml2Document::getRoot(), ValidScalarEstimatorInput::LOCAL_ENERGY, Libxml2Document::newDoc(), qmcplusplus::node, qmcplusplus::okay, Libxml2Document::parseFromString(), qmcplusplus::REQUIRE(), and ValidScalarEstimatorInput::xml.
Referenced by qmcplusplus::TEST_CASE().
Libxml2Document createEstimatorManagerNewInputXML | ( | ) |
Definition at line 42 of file EstimatorManagerInputTest.cpp.
References Libxml2Document::addChild(), qmcplusplus::doc, qmcplusplus::estimators_doc, Libxml2Document::getRoot(), Libxml2Document::newDoc(), qmcplusplus::node, qmcplusplus::okay, Libxml2Document::parseFromString(), qmcplusplus::REQUIRE(), valid_momentum_distribution_input_sections, and ValidScalarEstimatorInput::xml.
Referenced by qmcplusplus::TEST_CASE().
Libxml2Document createEstimatorManagerNewVMCInputXML | ( | ) |
Definition at line 74 of file EstimatorManagerInputTest.cpp.
References Libxml2Document::addChild(), qmcplusplus::doc, qmcplusplus::estimators_doc, Libxml2Document::getRoot(), ValidScalarEstimatorInput::LOCAL_ENERGY, Libxml2Document::newDoc(), qmcplusplus::node, qmcplusplus::okay, Libxml2Document::parseFromString(), qmcplusplus::REQUIRE(), valid_momentum_distribution_input_sections, and ValidScalarEstimatorInput::xml.
Referenced by qmcplusplus::TEST_CASE().
std::vector< ParticleSet > generateRandomParticleSets | ( | ParticleSet & | pset_target, |
ParticleSet & | pset_source, | ||
std::vector< ParticleSet::ParticlePos > & | deterministic_rs, | ||
int | num_psets | ||
) |
This function sets particle set positions from a set of Rs or writes out a set of positions for test reproducibility.
Definition at line 26 of file GenerateRandomParticleSets.cpp.
References qmcplusplus::pset_target.
template std::vector< ParticleSet > generateRandomParticleSets< false > | ( | ParticleSet & | pset_target, |
ParticleSet & | pset_source, | ||
std::vector< ParticleSet::ParticlePos > & | deterministic_rs, | ||
int | num_psets | ||
) |
template std::vector< ParticleSet > generateRandomParticleSets< true > | ( | ParticleSet & | pset_target, |
ParticleSet & | pset_source, | ||
std::vector< ParticleSet::ParticlePos > & | deterministic_rs, | ||
int | num_psets | ||
) |
std::vector< std::vector< QMCTraits::ValueType > > & getHistoryParams | ( | RotatedSPOs & | rot | ) |
Definition at line 734 of file test_RotatedSPOs.cpp.
References RotatedSPOs::history_params_.
Referenced by qmcplusplus::TEST_CASE().
opt_variables_type & getMyVars | ( | SPOSet & | spo | ) |
Definition at line 732 of file test_RotatedSPOs.cpp.
References SPOSet::myVars.
Referenced by qmcplusplus::TEST_CASE().
std::vector< QMCTraits::ValueType > & getMyVarsFull | ( | RotatedSPOs & | rot | ) |
Definition at line 733 of file test_RotatedSPOs.cpp.
References RotatedSPOs::myVarsFull_.
Referenced by qmcplusplus::TEST_CASE().
auto qmcplusplus::testing::getParticularListener | ( | Matrix< T > & | local_pots | ) |
Definition at line 21 of file TestListenerFunction.h.
References Matrix< T, Alloc >::cols(), qmcplusplus::syclBLAS::copy_n(), and Matrix< T, Alloc >::rows().
Referenced by qmcplusplus::doSOECPotentialTest(), qmcplusplus::TEST_CASE(), and qmcplusplus::testElecCase().
auto qmcplusplus::testing::getSummingListener | ( | Matrix< T > & | local_pots | ) |
Definition at line 31 of file TestListenerFunction.h.
References Matrix< T, Alloc >::cols(), and Matrix< T, Alloc >::rows().
Referenced by qmcplusplus::TEST_CASE().
void makeRngSpdMatrix | ( | testing::RandomForTest< RngValueType< T >> & | rng, |
Matrix< T > & | mat_spd | ||
) |
Definition at line 37 of file makeRngSpdMatrix.hpp.
References Matrix< T, Alloc >::cols(), Matrix< T, Alloc >::data(), BLAS::gemm(), LAPACK::gesvd(), qmcplusplus::n, Matrix< T, Alloc >::resize(), Matrix< T, Alloc >::rows(), Matrix< T, Alloc >::size(), and qmcplusplus::simd::transpose().
Referenced by MakeRngSpdMatrix< T >::operator()(), MakeRngVector< T >::operator()(), qmcplusplus::TEST_CASE(), qmcplusplus::test_inverse(), and qmcplusplus::testDualAllocator().
void qmcplusplus::testing::makeRngVector | ( | testing::RandomForTest< RngValueType< T >> & | rng, |
Vector< T > & | vec | ||
) |
make a random Vector
Definition at line 130 of file makeRngSpdMatrix.hpp.
References Vector< T, Alloc >::data(), qmcplusplus::n, and Vector< T, Alloc >::size().
SpeciesSet makeSpeciesSet | ( | const SpeciesCases | species_case | ) |
Definition at line 29 of file EstimatorTesting.cpp.
References GOOD, qmcplusplus::iattribute, NO_MEMBERSIZE, and qmcplusplus::species_set.
Referenced by qmcplusplus::TEST_CASE().
Lattice makeTestLattice | ( | ) |
Definition at line 18 of file EstimatorTesting.cpp.
References qmcplusplus::lattice.
Referenced by qmcplusplus::makePsets(), and qmcplusplus::TEST_CASE().
qmcplusplus::testing::TEST_CASE | ( | "ListenerVector" | , |
"" | [hamiltonian] | ||
) |
Definition at line 69 of file test_Listener.cpp.
References qmcplusplus::CHECK(), MockPerParticleEstimator::makeListener(), MockPerParticleEstimator::receiver_vector_, MockQMCHamiltonianAndReporter::registerVector(), and MockQMCHamiltonianAndReporter::reportVector().
constexpr std::array<std::string_view, 3> invalid_mag_density_input_sections |
Definition at line 23 of file InvalidMagnetizationDensityInput.h.
Referenced by qmcplusplus::TEST_CASE().
constexpr int invalid_magnetization_density_badgrid = 2 |
Definition at line 50 of file InvalidMagnetizationDensityInput.h.
constexpr int invalid_magnetization_density_cornercenter = 1 |
Definition at line 49 of file InvalidMagnetizationDensityInput.h.
constexpr int invalid_magnetization_density_integrator = 0 |
Definition at line 48 of file InvalidMagnetizationDensityInput.h.
constexpr int valid_dmc_batch_input_dmc_batch_index = 2 |
Definition at line 137 of file ValidQMCInputSections.h.
Referenced by qmcplusplus::TEST_CASE().
constexpr int valid_dmc_input_dmc_batch_index = 1 |
Definition at line 136 of file ValidQMCInputSections.h.
Referenced by SetupDMCTest::operator()(), SetupSFNBranch::operator()(), and qmcplusplus::TEST_CASE().
constexpr int valid_dmc_input_dmc_index = 0 |
Definition at line 135 of file ValidQMCInputSections.h.
Referenced by SetupSimpleFixedNodeBranch::operator()(), and qmcplusplus::TEST_CASE().
constexpr std::array<const char*, 3> valid_dmc_input_sections |
Definition at line 90 of file ValidQMCInputSections.h.
Referenced by SetupDMCTest::operator()(), SetupSFNBranch::operator()(), SetupSimpleFixedNodeBranch::operator()(), and qmcplusplus::TEST_CASE().
constexpr std::array<std::string_view, 2> valid_momentum_distribution_input_sections |
Definition at line 21 of file ValidMomentumDistributionInput.h.
Referenced by createEstimatorManagerNewInputXML(), and createEstimatorManagerNewVMCInputXML().
constexpr std::array<const char*, 2> valid_opt_input_sections |
As far as I can tell these are no longer valid.
Definition at line 140 of file ValidQMCInputSections.h.
Referenced by qmcplusplus::TEST_CASE().
constexpr int valid_vmc_batch_input_vmc_batch_index = 3 |
Definition at line 88 of file ValidQMCInputSections.h.
Referenced by qmcplusplus::TEST_CASE().
constexpr std::array<const char*, 4> valid_vmc_input_sections |
Definition at line 27 of file ValidQMCInputSections.h.
Referenced by qmcplusplus::TEST_CASE(), and VMCBatchedTest::testCalcDefaultLocalWalkers().
constexpr int valid_vmc_input_vmc_batch_index = 1 |
Definition at line 86 of file ValidQMCInputSections.h.
Referenced by qmcplusplus::TEST_CASE(), and VMCBatchedTest::testCalcDefaultLocalWalkers().
constexpr int valid_vmc_input_vmc_index = 0 |
Definition at line 85 of file ValidQMCInputSections.h.
Referenced by qmcplusplus::TEST_CASE().
constexpr int valid_vmc_input_vmc_tiny_index = 2 |
Definition at line 87 of file ValidQMCInputSections.h.
Referenced by qmcplusplus::TEST_CASE().