![]() |
QMCPACK
|
Wrappers for dispatching to TrialWaveFunction single walker APIs or mw_ APIs. More...
Public Types | |
using | PsiValue = TrialWaveFunction::PsiValue |
using | ComputeType = TrialWaveFunction::ComputeType |
using | ValueType = TrialWaveFunction::ValueType |
using | GradType = TrialWaveFunction::GradType |
using | Complex = TrialWaveFunction::ComplexType |
Private Attributes | |
bool | use_batch_ |
Wrappers for dispatching to TrialWaveFunction single walker APIs or mw_ APIs.
This should be only used by QMC drivers. member function names must match mw_ APIs in TrialWaveFunction
Definition at line 25 of file TWFdispatcher.h.
Definition at line 32 of file TWFdispatcher.h.
Definition at line 29 of file TWFdispatcher.h.
using GradType = TrialWaveFunction::GradType |
Definition at line 31 of file TWFdispatcher.h.
using PsiValue = TrialWaveFunction::PsiValue |
Definition at line 28 of file TWFdispatcher.h.
Definition at line 30 of file TWFdispatcher.h.
TWFdispatcher | ( | bool | use_batch | ) |
Definition at line 19 of file TWFdispatcher.cpp.
void flex_accept_rejectMove | ( | const RefVectorWithLeader< TrialWaveFunction > & | wf_list, |
const RefVectorWithLeader< ParticleSet > & | p_list, | ||
int | iat, | ||
const std::vector< bool > & | isAccepted, | ||
bool | safe_to_delay | ||
) | const |
Definition at line 120 of file TWFdispatcher.cpp.
References TrialWaveFunction::mw_accept_rejectMove(), and TWFdispatcher::use_batch_.
void flex_calcRatio | ( | const RefVectorWithLeader< TrialWaveFunction > & | wf_list, |
const RefVectorWithLeader< ParticleSet > & | p_list, | ||
int | iat, | ||
std::vector< PsiValue > & | ratios, | ||
ComputeType | ct = ComputeType::ALL |
||
) | const |
Definition at line 45 of file TWFdispatcher.cpp.
References TrialWaveFunction::mw_calcRatio(), and TWFdispatcher::use_batch_.
void flex_calcRatioGrad | ( | const RefVectorWithLeader< TrialWaveFunction > & | wf_list, |
const RefVectorWithLeader< ParticleSet > & | p_list, | ||
int | iat, | ||
std::vector< PsiValue > & | ratios, | ||
TWFGrads< CT > & | grads | ||
) | const |
Definition at line 97 of file TWFdispatcher.cpp.
References TrialWaveFunction::mw_calcRatioGrad(), qmcplusplus::POS_SPIN, and TWFdispatcher::use_batch_.
void flex_completeUpdates | ( | const RefVectorWithLeader< TrialWaveFunction > & | wf_list | ) | const |
Definition at line 137 of file TWFdispatcher.cpp.
References TrialWaveFunction::mw_completeUpdates(), and TWFdispatcher::use_batch_.
void flex_evalGrad | ( | const RefVectorWithLeader< TrialWaveFunction > & | wf_list, |
const RefVectorWithLeader< ParticleSet > & | p_list, | ||
int | iat, | ||
TWFGrads< CT > & | grads | ||
) | const |
Definition at line 76 of file TWFdispatcher.cpp.
References TrialWaveFunction::mw_evalGrad(), qmcplusplus::POS_SPIN, and TWFdispatcher::use_batch_.
void flex_evaluateGL | ( | const RefVectorWithLeader< TrialWaveFunction > & | wf_list, |
const RefVectorWithLeader< ParticleSet > & | p_list, | ||
bool | fromscratch | ||
) | const |
Definition at line 146 of file TWFdispatcher.cpp.
References TrialWaveFunction::mw_evaluateGL(), and TWFdispatcher::use_batch_.
void flex_evaluateLog | ( | const RefVectorWithLeader< TrialWaveFunction > & | wf_list, |
const RefVectorWithLeader< ParticleSet > & | p_list | ||
) | const |
Definition at line 21 of file TWFdispatcher.cpp.
References TrialWaveFunction::mw_evaluateLog(), and TWFdispatcher::use_batch_.
void flex_evaluateRatios | ( | const RefVectorWithLeader< TrialWaveFunction > & | wf_list, |
const RefVectorWithLeader< const VirtualParticleSet > & | vp_list, | ||
const RefVector< std::vector< ValueType >> & | ratios_list, | ||
ComputeType | ct | ||
) | const |
Definition at line 158 of file TWFdispatcher.cpp.
References TrialWaveFunction::mw_evaluateRatios(), and TWFdispatcher::use_batch_.
void flex_prepareGroup | ( | const RefVectorWithLeader< TrialWaveFunction > & | wf_list, |
const RefVectorWithLeader< ParticleSet > & | p_list, | ||
int | ig | ||
) | const |
Definition at line 63 of file TWFdispatcher.cpp.
References TrialWaveFunction::mw_prepareGroup(), and TWFdispatcher::use_batch_.
void flex_recompute | ( | const RefVectorWithLeader< TrialWaveFunction > & | wf_list, |
const RefVectorWithLeader< ParticleSet > & | p_list, | ||
const std::vector< bool > & | recompute | ||
) | const |
Definition at line 32 of file TWFdispatcher.cpp.
References TrialWaveFunction::mw_recompute(), and TWFdispatcher::use_batch_.
|
private |
Definition at line 84 of file TWFdispatcher.h.
Referenced by TWFdispatcher::flex_accept_rejectMove(), TWFdispatcher::flex_calcRatio(), TWFdispatcher::flex_calcRatioGrad(), TWFdispatcher::flex_completeUpdates(), TWFdispatcher::flex_evalGrad(), TWFdispatcher::flex_evaluateGL(), TWFdispatcher::flex_evaluateLog(), TWFdispatcher::flex_evaluateRatios(), TWFdispatcher::flex_prepareGroup(), and TWFdispatcher::flex_recompute().