36 hout.
push(
"FakeOptimizableObject");
43 hout.
write(var1,
"var1");
44 hout.
write(var2,
"var2");
51 hin.
push(
"FakeOptimizableObject",
false);
57 hin.
read(tmp_var1,
"var1");
58 hin.
read(tmp_var2,
"var2");
69 TEST_CASE(
"Test OptimizableObject",
"[wavefunction]")
78 CHECK(opt_obj_refs.size() == 2);
82 CHECK(opt_obj_refs.size() == 2);
83 CHECK(opt_obj_refs[0].getName() ==
"functor_a");
84 CHECK(opt_obj_refs[1].getName() ==
"functor_b");
87 TEST_CASE(
"OptimizableObject HDF output and input",
"[wavefunction]")
void resetParametersExclusive(const opt_variables_type &active) override
reset the parameters during optimizations.
Declaration of OptimizableObject.
void writeToHDF(const std::string &filename, qmcplusplus::hdf_archive &hout) const
void write(T &data, const std::string &aname)
write the data to the group aname and check status runtime error is issued on I/O error ...
helper functions for EinsplineSetBuilder
TEST_CASE("complex_helper", "[type_traits]")
void readFromHDF(const std::string &filename, qmcplusplus::hdf_archive &hin)
Read variational parameters from an HDF file.
void checkInVariablesExclusive(opt_variables_type &active) override
check in variational parameters to the global list of parameters used by the optimizer.
void writeVariationalParameters(hdf_archive &hout) override
Write the variational parameters for this object to the VP HDF file.
void insert(const std::string &vname, real_type v, bool enable=true, int type=OTHER_P)
class to handle a set of variables that can be modified during optimizations
void clear()
clear the variable set
void readVariationalParameters(hdf_archive &hin) override
Read the variational parameters for this object from the VP HDF file.
void push(const std::string &gname, bool createit=true)
push a group to the group stack
FakeOptimizableObject(const std::string &my_name, double var1=0.0, double var2=0.0)
opt_variables_type myVars
CHECK(log_values[0]==ComplexApprox(std::complex< double >{ 5.603777579195571, -6.1586603331188225 }))
void read(T &data, const std::string &aname)
read the data from the group aname and check status runtime error is issued on I/O error ...
void insertFrom(const VariableSet &input)
insert a VariableSet to the list
void push_back(OptimizableObject &obj)