24 APP_ABORT(
"StaticStructureFactor is incompatible with open boundary conditions");
37 name_ =
"StaticStructureFactor";
46 return std::make_unique<StaticStructureFactor>(*this);
56 std::string write_report =
"no";
60 attrib.
add(write_report,
"report");
69 for (
int i = 0; i < k2_init.size(); ++i)
70 if (k2_init[i] < k2cut)
75 APP_ABORT(
"StaticStructureFactor::put could not find any kpoints");
79 if (write_report ==
"yes")
88 app_log() << pad <<
"StaticStructureFactor report" << std::endl;
90 app_log() << pad <<
" ecut = " <<
ecut << std::endl;
95 app_log() << pad <<
"end StaticStructureFactor report" << std::endl;
103 collectables.
add(tmp.begin(), tmp.end());
110 auto&
oh = h5desc.back();
113 std::vector<int> ng(2);
119 auto& ohSpeciesName = h5desc.back();
130 int nkptot = rhok_r.
cols();
139 for (
int k = 0; k <
nkpoints; ++k, ++kc)
141 for (
int k = 0; k <
nkpoints; ++k, ++kc)
bool put(xmlNodePtr cur) override
Read the input parameter.
Matrix< RealType > rhok_r
2-D container for the phase
helper functions for EinsplineSetBuilder
QTBase::RealType RealType
Matrix< RealType > rhok_i
int my_index_
starting index of this object
bool put(xmlNodePtr cur)
assign attributes to the set
void addObservables(PropertySetType &plist, BufferType &olist) override
named values to the property list Default implementaton uses addValue(plist_)
Vectorized record engine for scalar properties.
void addProperty(T &p, const std::string &pname, hdf_archive &file)
add named property to describe the collectable this helper class handles
int size() const
return the number of species
std::unique_ptr< OperatorBase > makeClone(ParticleSet &P, TrialWaveFunction &psi) final
const auto & getSimulationCell() const
std::string name_
name of this object
Specialized paritlce class for atomistic simulations.
class to handle a set of attributes of an xmlNode
StaticStructureFactor(ParticleSet &P)
void registerCollectables(std::vector< ObservableHelper > &h5desc, hdf_archive &file) const override
#define APP_ABORT(msg)
Widely used but deprecated fatal error macros from legacy code.
size_type current() const
const StructFact & getSK() const
return Structure Factor
Walker_t * t_walker_
reference to the current walker
Buffer_t Collectables
observables in addition to those registered in Properties/PropertyList
SpeciesSet & getSpeciesSet()
retrun the SpeciesSet of this particle set
std::vector< std::string > speciesName
Species name list.
const ParticleSet & Pinit
FullPrecRealType Return_t
type of return value of evaluate
MakeReturn< UnaryNode< FnSqrt, typename CreateLeaf< Vector< T1, C1 > >::Leaf_t > >::Expression_t sqrt(const Vector< T1, C1 > &l)
Class to represent a many-body trial wave function.
FullPrecRealType Weight
Weight of the walker.
const auto & getLattice() const
std::vector< RealType > k2_t
Custom container for set of attributes for a set of species.
Return_t evaluate(ParticleSet &P) override
Evaluate the local energy contribution of this component.
void add(PDT &aparam, const std::string &aname, std::vector< PDT > candidate_values={}, TagStatus status=TagStatus::OPTIONAL)
add a new attribute
std::vector< std::string > species_name
void report(const std::string &pad)
std::bitset< 8 > update_mode_
set the current update mode