61 APP_ABORT(
" JastrowBuilder::put does not have name!\n");
82 APP_ABORT(
" JastrowBuilder::buildComponent unknown type!\n");
90 std::unique_ptr<CountingJastrowBuilder> cjb;
93 cjb = std::make_unique<CountingJastrowBuilder>(
myComm,
targetPtcl, *pa_it->second);
96 return cjb->buildComponent(cur);
101 app_log() <<
" JastrowBuilder::buildkSpace(xmlNodePtr)" << std::endl;
105 app_warning() <<
" JastrowBuilder::buildkSpace failed. " <<
sourceOpt <<
" does not exist" << std::endl;
108 app_log() <<
"\n Using kSpaceJastrowBuilder for reciprocal-space Jastrows" << std::endl;
119 "\nExit JastrowBuilder::buildOneBody.\n");
125 PRE.
error(
"JastrowBuilder::buildOneBody failed. " +
sourceOpt +
" does not exist.");
140 app_error() <<
" JastrowBuilder::build_eeI requires a source attribute. " <<
sourceOpt <<
" is invalid " 149 APP_ABORT(
" eeI is not valid for OHMMS_DIM != 3 ");
const std::string & getName() const
return the name
std::ostream & app_warning()
helper functions for EinsplineSetBuilder
An abstract class for wave function builders.
std::ostream & app_summary()
bool put(xmlNodePtr cur)
assign attributes to the set
std::unique_ptr< WaveFunctionComponent > buildComponent(xmlNodePtr cur) override
process a xml node at cur
std::unique_ptr< WaveFunctionComponent > buildCounting(xmlNodePtr cur)
build number-counting term
std::ostream & app_error()
JastrowBuilder using an analytic 1d functor Should be able to eventually handle all one and two body ...
ParticleSet & targetPtcl
reference to the particle set on which targetPsi is defined
Wrapping information on parallelism.
std::string spinOpt
<jastrow spin="...">
Specialized paritlce class for atomistic simulations.
Final class and should not be derived.
Communicate * myComm
pointer to Communicate
std::unique_ptr< WaveFunctionComponent > build_eeI(xmlNodePtr cur)
build electron-electron ion term
class to handle a set of attributes of an xmlNode
declaration of ProgressReportEngine
std::unique_ptr< WaveFunctionComponent > buildTwoBody(xmlNodePtr cur)
build two-body term
xmlNodePtr myNode
xmlNode operated by this object
std::string sourceOpt
<jastrow source="...">
std::string ClassName
class Name
#define APP_ABORT(msg)
Widely used but deprecated fatal error macros from legacy code.
std::unique_ptr< WaveFunctionComponent > buildOneBody(xmlNodePtr cur)
build one-body term
std::unique_ptr< WaveFunctionComponent > buildComponent(xmlNodePtr cur) override
process a xml node at cur
void resetOptions()
reset the options
std::string funcOpt
<jastrow function="...">
const PSetMap & ptclPool
particleset pool to get ParticleSet other than the target
void error(const std::string &msg, bool fatal=false)
std::string transformOpt
<jastrow transform="...">
std::unique_ptr< WaveFunctionComponent > buildComponent(xmlNodePtr cur) override
process a xml node at cur
void add(PDT &aparam, const std::string &aname, std::vector< PDT > candidate_values={}, TagStatus status=TagStatus::OPTIONAL)
add a new attribute
std::unique_ptr< WaveFunctionComponent > buildComponent(xmlNodePtr cur) override
process a xml node at cur
int JastrowType
index for the jastrow type: 1, 2, 3
std::unique_ptr< WaveFunctionComponent > buildkSpace(xmlNodePtr cur)
build k-Space term
std::string typeOpt
<jastrow type="...">
std::string nameOpt
<jastrow name="...">
JastrowBuilder(Communicate *comm, ParticleSet &p, const PSetMap &psets)