29 LocalEnergy += Href.evaluateValueAndDerivatives(P, optvars, dlogpsi, dhpsioverpsi);
37 for (
int i = 0; i <
Hrefs_.size(); ++i)
39 const auto LocalEnergyComponent =
Hrefs_[i].get().evaluate(P);
41 APP_ABORT(
"HamiltonianRef::evaluate component " +
Hrefs_[i].
get().getName() +
" returns NaN\n");
42 LocalEnergy += LocalEnergyComponent;
FullPrecRealType evaluate(ParticleSet &P)
the same evaluate as QMCHamiltonian
HamiltonianRef::FullPrecRealType FullPrecRealType
helper functions for EinsplineSetBuilder
Specialized paritlce class for atomistic simulations.
QMCTraits::FullPrecRealType FullPrecRealType
class to handle a set of variables that can be modified during optimizations
#define APP_ABORT(msg)
Widely used but deprecated fatal error macros from legacy code.
An abstract class for Local Energy operators.
std::vector< std::reference_wrapper< T > > RefVector
FullPrecRealType evaluateValueAndDerivatives(ParticleSet &P, const opt_variables_type &optvars, Vector< ValueType > &dlogpsi, Vector< ValueType > &dhpsioverpsi)
the same evaluateValueAndDerivatives as QMCHamiltonian
HamiltonianRef(const RefVector< OperatorBase >)
const RefVector< OperatorBase > Hrefs_
collected references
bool isnan(float a)
return true if the value is NaN.