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

Go to the source code of this file.

Classes

class  SpinDensityNewTests
 class to preserve access control in MomentumDistribution More...
 

Namespaces

 qmcplusplus
 helper functions for EinsplineSetBuilder
 
 qmcplusplus::testing
 SpaceGrid refactored for use with batched estimator design NE should be dropped when QMCHamiltonian/SpaceGrid has been deleted.
 

Typedefs

using input = testing::ValidSpinDensityInput
 

Functions

void accumulateFromPsets (int ncrowds, SpinDensityNew &sdn, UPtrVector< OperatorEstBase > &crowd_sdns)
 
void randomUpdateAccumulate (testing::RandomForTest< QMCT::RealType > &rft, UPtrVector< OperatorEstBase > &crowd_sdns)
 
 REQUIRE (okay)
 
 species_set (iattribute, ispecies)
 
 SpinDensityNew (std::move(sdi), species_set)
 
SpinDensityInput sdi (node)
 
sdnt testCopyConstructor (sdn)
 
 REQUIRE (clone !=nullptr)
 
 REQUIRE (clone.get() !=&original)
 
 REQUIRE (dynamic_cast< decltype(&original)>(clone.get()) !=nullptr)
 
 TEST_CASE ("SpinDensityNew::accumulate", "[estimators]")
 

Variables

SpinDensityInput sdi (node)
 
int ispecies = species_set.addSpecies("C")
 
int iattribute = species_set.addAttribute("membersize")
 
SpinDensityInput sdi_copy = sdi
 
CrystalLattice< OHMMS_PRECISION, OHMMS_DIMlattice = testing::makeTestLattice()
 
SpinDensityNew sdn (std::move(sdi), lattice, species_set)
 
OEBAccessor oeba (sdn) = 1.0
 
SpinDensityNewTests sdnt
 
SpinDensityNew original (std::move(sdi), lattice, species_set)