53 throw std::invalid_argument(
"calling DensityEstimator::evaluate needs the weight of the walkers");
79 if (ru[0] > 0.0 && ru[1] > 0.0 && ru[2] > 0.0 && ru[0] < 1.0 && ru[1] < 1.0 && ru[2] < 1.0)
98 collectables.
add(tmp.begin(), tmp.end());
103 int loc = h5desc.size();
108 auto& h5o = h5desc.back();
123 std::vector<double> delta;
124 std::string debug(
"no");
125 std::string potential(
"no");
127 attrib.
add(debug,
"debug");
128 attrib.
add(potential,
"potential");
139 for (
int dim = 0; dim <
OHMMS_DIM; ++dim)
148 os <<
name_ <<
" bin =" <<
delta_ <<
" bohrs " << std::endl;
155 return std::make_unique<DensityEstimator>(*this);
166 APP_ABORT(
"DensityEstimator::resize invalid bin size");
175 return my_index_ + k + num_grids_[2] * (j + num_grids_[1] * i);
void setParticlePropertyList(PropertySetType &plist, int offset) override
One-Dimensional linear-grid.
helper functions for EinsplineSetBuilder
int getGridIndex(int i, int j, int k) const noexcept
Get the linearized grid Index object from 3D coordinates.
std::string getClassName() const override
return class name
size_t getTotalNum() const
int my_index_
starting index of this object
void setObservables(PropertySetType &plist) override
Set the values evaluated by this object to plist Default implementation is to assign Value which is u...
bool put(xmlNodePtr cur)
assign attributes to the set
bool put(xmlNodePtr cur) override
check xml elements
TinyVector< RealType, OHMMS_DIM > density_min_
lower bound
Vectorized record engine for scalar properties.
TinyVector< int, OHMMS_DIM+1 > num_grids_
number of grids
void registerCollectables(std::vector< ObservableHelper > &h5desc, hdf_archive &file) const override
std::string name_
name of this object
Specialized paritlce class for atomistic simulations.
std::unique_ptr< OperatorBase > makeClone(ParticleSet &qp, TrialWaveFunction &psi) final
class to handle a set of attributes of an xmlNode
TinyVector< RealType, OHMMS_DIM > density_max_
upper bound
OneDimCubicSpline< pRealType > RadFunctorType
void addObservables(PropertySetType &plist)
LRHandlerBase LRHandlerType
void resize()
resize the internal data
#define APP_ABORT(msg)
Widely used but deprecated fatal error macros from legacy code.
size_type current() const
DensityEstimator(ParticleSet &elns)
Walker_t * t_walker_
reference to the current walker
void resetTargetParticleSet(ParticleSet &P) override
Reset the data with the target ParticleSet.
Buffer_t Collectables
observables in addition to those registered in Properties/PropertyList
FullPrecRealType Return_t
type of return value of evaluate
Class to represent a many-body trial wave function.
TinyVector< RealType, OHMMS_DIM > delta_
bin size
TinyVector< RealType, OHMMS_DIM > scale_factor_
scaling factor for conversion
FullPrecRealType Weight
Weight of the walker.
const auto & getLattice() const
Define a LRHandler with two template parameters.
base class for LRHandlerTemp<FUNC,BASIS> and DummyLRHanlder<typename Func>
bool get(std::ostream &os) const override
write about the class
LinearGrid< pRealType > GridType
void add(PDT &aparam, const std::string &aname, std::vector< PDT > candidate_values={}, TagStatus status=TagStatus::OPTIONAL)
add a new attribute
Declaration of a MCWalkerConfiguration.
Return_t evaluate(ParticleSet &P) override
Evaluate the local energy contribution of this component.
std::bitset< 8 > update_mode_
set the current update mode
bool periodic_
true if any direction of a supercell is periodic
MakeReturn< UnaryNode< FnFloor, typename CreateLeaf< Vector< T1, C1 > >::Leaf_t > >::Expression_t floor(const Vector< T1, C1 > &l)
TinyVector< RealType, OHMMS_DIM > delta_inv_
inverse