24 app_log() <<
"SpeciesKineticEnergy is tracking " <<
num_species <<
" species." << std::endl;
32 RealType mass = tspecies(massind, ispec);
42 std::string hdf5_flag =
"no";
43 attrib.
add(hdf5_flag,
"hdf5");
46 if (hdf5_flag ==
"yes")
48 else if (hdf5_flag ==
"no")
51 APP_ABORT(
"SpeciesKineticEnergy::put() - Please choose \"yes\" or \"no\" for hdf5 flag");
63 os <<
"SpeciesKineticEnergy: " <<
name_;
78 collectables.
add(tmp.begin(), tmp.end());
89 auto& h5o = h5desc.back();
120 return std::make_unique<SpeciesKineticEnergy>(*this);
size_type size() const
return the size of the data
helper functions for EinsplineSetBuilder
std::vector< std::string > species_names
size_t getTotalNum() const
int my_index_
starting index of this object
bool put(xmlNodePtr cur)
assign attributes to the set
std::vector< T >::iterator begin()
iterators to use std algorithms
Vectorized record engine for scalar properties.
ParticleLaplacian L
laplacians of the particles
ParticleIndex GroupID
Species ID.
void copy(const Array< T1, 3 > &src, Array< T2, 3 > &dest)
std::string name_
name of this object
Specialized paritlce class for atomistic simulations.
void setObservables(PropertySetType &plist) override
Set the values evaluated by this object to plist Default implementation is to assign Value which is u...
int add(const std::string &aname)
class to handle a set of attributes of an xmlNode
ParticleGradient G
gradients of the particles
Return_t evaluate(ParticleSet &P) override
Evaluate the local energy contribution of this component.
bool get(std::ostream &os) const override
write about the class
#define APP_ABORT(msg)
Widely used but deprecated fatal error macros from legacy code.
Walker_t * t_walker_
reference to the current walker
T laplacian(const TinyVector< T, D > &g, T l)
compute real(laplacian)
void registerCollectables(std::vector< ObservableHelper > &h5desc, hdf_archive &file) const override
Buffer_t Collectables
observables in addition to those registered in Properties/PropertyList
SpeciesSet & getSpeciesSet()
retrun the SpeciesSet of this particle set
FullPrecRealType Return_t
type of return value of evaluate
void addObservables(PropertySetType &plist, BufferType &collectables) override
named values to the property list Default implementaton uses addValue(plist_)
std::unique_ptr< OperatorBase > makeClone(ParticleSet &qp, TrialWaveFunction &psi) final
Class to represent a many-body trial wave function.
int getAttribute(const std::string &aname) const
When a name species does not exist, return attribute.size()
Return_t value_
current value
FullPrecRealType Weight
Weight of the walker.
Custom container for set of attributes for a set of species.
SpeciesKineticEnergy(ParticleSet &P)
void add(PDT &aparam, const std::string &aname, std::vector< PDT > candidate_values={}, TagStatus status=TagStatus::OPTIONAL)
add a new attribute
std::vector< RealType > vec_minus_over_2m
std::bitset< 8 > update_mode_
set the current update mode
std::vector< RealType > species_kinetic
bool put(xmlNodePtr cur) override
Read the input parameter.