QMCPACK
TestNonLocalECPotential Class Reference

class to violate access control because evaluation of NonLocalECPotential uses RNG which we may not be able to control. More...

+ Collaboration diagram for TestNonLocalECPotential:

Static Public Member Functions

static void copyGridUnrotatedForTest (NonLocalECPotential &nl_ecp)
 
static bool didGridChange (NonLocalECPotential &nl_ecp)
 
static void mw_evaluateImpl (NonLocalECPotential &nl_ecp, const RefVectorWithLeader< OperatorBase > &o_list, const RefVectorWithLeader< TrialWaveFunction > &twf_list, const RefVectorWithLeader< ParticleSet > &p_list, bool Tmove, const std::optional< ListenerOption< Real >> listener_opt, bool keep_grid)
 

Private Types

using Real = QMCTraits::RealType
 

Detailed Description

class to violate access control because evaluation of NonLocalECPotential uses RNG which we may not be able to control.

Definition at line 31 of file test_NonLocalECPotential.cpp.

Member Typedef Documentation

◆ Real

using Real = QMCTraits::RealType
private

Definition at line 33 of file test_NonLocalECPotential.cpp.

Member Function Documentation

◆ copyGridUnrotatedForTest()

static void copyGridUnrotatedForTest ( NonLocalECPotential nl_ecp)
inlinestatic

Definition at line 36 of file test_NonLocalECPotential.cpp.

References NonLocalECPotential::PPset.

Referenced by qmcplusplus::TEST_CASE().

37  {
38  nl_ecp.PPset[0]->rrotsgrid_m = nl_ecp.PPset[0]->sgridxyz_m;
39  }

◆ didGridChange()

static bool didGridChange ( NonLocalECPotential nl_ecp)
inlinestatic

Definition at line 40 of file test_NonLocalECPotential.cpp.

References NonLocalECPotential::PPset.

Referenced by qmcplusplus::TEST_CASE().

41  {
42  return nl_ecp.PPset[0]->rrotsgrid_m != nl_ecp.PPset[0]->sgridxyz_m;
43  }

◆ mw_evaluateImpl()

static void mw_evaluateImpl ( NonLocalECPotential nl_ecp,
const RefVectorWithLeader< OperatorBase > &  o_list,
const RefVectorWithLeader< TrialWaveFunction > &  twf_list,
const RefVectorWithLeader< ParticleSet > &  p_list,
bool  Tmove,
const std::optional< ListenerOption< Real >>  listener_opt,
bool  keep_grid 
)
inlinestatic

Definition at line 44 of file test_NonLocalECPotential.cpp.

References NonLocalECPotential::mw_evaluateImpl().

Referenced by qmcplusplus::TEST_CASE().

51  {
52  nl_ecp.mw_evaluateImpl(o_list, twf_list, p_list, Tmove, listener_opt, keep_grid);
53  }

The documentation for this class was generated from the following file: