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

Go to the source code of this file.

Namespaces

 qmcplusplus
 helper functions for EinsplineSetBuilder
 

Functions

 CHECK (oh.lower_bound==0)
 
 TEST_CASE ("ObservableHelper::set_dimensions", "[hamiltonian]")
 
hFile create (filename)
 
oh addProperty (propertyFloat, "propertyFloat", hFile)
 
oh addProperty (propertyTensor, "propertyTensor", hFile)
 
oh addProperty (propertyMatrix, "propertyMatrix", hFile)
 
oh addProperty (propertyTensor, "propertyTinyVector", hFile)
 
oh addProperty (propertyVector, "propertyVector", hFile)
 
oh addProperty (propertyVectorTinyVector, "propertyVectorTinyVector", hFile)
 
hFile close ()
 
 REQUIRE (std::filesystem::exists(filename))
 
 REQUIRE (std::filesystem::remove(filename))
 

Variables

hdf_archive hFile
 
ObservableHelper oh {hdf_path{"u"}}
 
std::vector< int > dims = {10, 10}
 
float propertyFloat = 10.f
 
Tensor< float, OHMMS_DIMpropertyTensor
 
Matrix< float > propertyMatrix
 
TinyVector< float, OHMMS_DIMpropertyTinyVector
 
std::vector< float > propertyVector
 
std::vector< TinyVector< float, OHMMS_DIM > > propertyVectorTinyVector