27 void resetPsi(
bool final_reset =
false)
override {}
44 xmlDocDumpFormatMemory(
m_doc_out, (xmlChar**)&buf, &out_buflen, 1);
45 std::cout <<
"XML buffer length = " << out_buflen << std::endl;
46 std::cout <<
"XML: " << std::endl << buf << std::endl;
68 const char* wf_xml = R
"( 80 xmlXPathContextPtr acontext = xmlXPathNewContext(cost.
getDoc());
82 REQUIRE(check_elem.size() == 1);
87 xmlXPathFreeContext(acontext);
90 TEST_CASE(
"updateXmlNodes with existing element",
"[drivers]")
103 const char* wf_xml = R
"( 105 <override_variational_parameters href="vp.tmp.h5"/> 117 xmlXPathContextPtr acontext = xmlXPathNewContext(cost.
getDoc());
119 REQUIRE(check_elem.size() == 1);
124 xmlXPathFreeContext(acontext);
class that handles xmlDoc
A set of walkers that are to be advanced by Metropolis Monte Carlo.
helper functions for EinsplineSetBuilder
void setRootName(const std::string &aroot)
void checkConfigurations(EngineHandle &handle) override
TEST_CASE("complex_helper", "[type_traits]")
Collection of Local Energy Operators.
QMCTraits::QTFull::RealType EffectiveWeight
Communicate * Controller
Global Communicator for a process.
bool do_override_output
Flag on whether the variational parameter override is output to the new wavefunction.
class to handle xmlXPathObject
void resetPsi(bool final_reset=false) override
reset the wavefunction
Wrapping information on parallelism.
REQUIRE(std::filesystem::exists(filename))
QMCCostFunctionTest(MCWalkerConfiguration &w, TrialWaveFunction &psi, QMCHamiltonian &h, Communicate *c)
Implements wave-function optimization.
std::string getXMLAttributeValue(const xmlNodePtr cur, const std::string_view name)
get the value string for attribute name if name is unfound in cur you get an empty string back this i...
EffectiveWeight correlatedSampling(bool needGrad=true) override
run correlated sampling return effective walkers ( w_i)^2/(Nw * w^2_i)
xmlDocPtr m_doc_out
document node to be dumped
Class to represent a many-body trial wave function.
bool parseFromString(const std::string_view data)
void setWaveFunctionNode(xmlNodePtr cur)
Return_rt fillOverlapHamiltonianMatrices(Matrix< Return_rt > &Left, Matrix< Return_rt > &Right) override
void callUpdateXmlNodes()
void getConfigurations(const std::string &aroot) override