mirror of https://github.com/QMCPACK/qmcpack.git
*** empty log message ***
git-svn-id: https://subversion.assembla.com/svn/qmcdev/trunk@154 e5b18d87-469d-4833-9cc0-8cdfa06e9491
This commit is contained in:
parent
40d670de6a
commit
44a4654554
|
@ -28,6 +28,7 @@ namespace ohmmsqmc {
|
|||
PSI, /*!< value of the many-body wavefunction \f$\Psi(\{R\})\f$ */
|
||||
AGE, /*!< the age of the walker. set to zero when the walker is updated */
|
||||
SCALED, /*!< scaling factor for the drift */
|
||||
WOSVAR, /*!< Variance of WOS potential */
|
||||
NUMPROPERTIES, /*!< the number of properties */
|
||||
CAPACITY=15
|
||||
};
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
//////////////////////////////////////////////////////////////////
|
||||
/////////////////////////////////////////////////////////////////
|
||||
// (c) Copyright 2003 by Jeongnim Kim
|
||||
//////////////////////////////////////////////////////////////////
|
||||
//////////////////////////////////////////////////////////////////
|
||||
|
@ -81,6 +81,10 @@ QMCHamiltonian::evaluate(ParticleSet& P) {
|
|||
for(; i<H.size(); i++) {
|
||||
esum += H[i]->evaluate(P,Hvalue[i]);
|
||||
}
|
||||
/*
|
||||
cout << "QMCHBase.cpp: WOSVAR = " << P.Properties(WOSVAR) << endl;
|
||||
cout << "QMCHBase.cpp: ELOCAL = " << P.Properties(LOCALENERGY) << endl;
|
||||
*/
|
||||
return Hvalue[i]=esum;
|
||||
}
|
||||
|
||||
|
|
|
@ -32,10 +32,12 @@ namespace ohmmsqmc {
|
|||
|
||||
struct QMCHamiltonianBase: public QMCTraits {
|
||||
|
||||
RealType Tau;
|
||||
|
||||
typedef ParticleAttrib<ValueType> ValueVectorType;
|
||||
|
||||
///constructor
|
||||
QMCHamiltonianBase(){}
|
||||
QMCHamiltonianBase():Tau(0.0){}
|
||||
|
||||
///virtual destructor
|
||||
virtual ~QMCHamiltonianBase() { }
|
||||
|
@ -59,6 +61,8 @@ namespace ohmmsqmc {
|
|||
*/
|
||||
virtual
|
||||
void evaluate(WalkerSetRef& W, ValueVectorType& LE) = 0;
|
||||
|
||||
inline void setTau(RealType tau) { Tau = tau;}
|
||||
};
|
||||
|
||||
/** Collection of Local Energy Operators */
|
||||
|
@ -99,6 +103,10 @@ namespace ohmmsqmc {
|
|||
|
||||
void evaluate(WalkerSetRef& W, ValueVectorType& LE);
|
||||
|
||||
void setTau(RealType tau){
|
||||
for(int i=0; i < H.size(); ++i) H[i]->setTau(tau);
|
||||
}
|
||||
|
||||
private:
|
||||
///vector of Hamiltonians
|
||||
std::vector<QMCHamiltonianBase*> H;
|
||||
|
|
Loading…
Reference in New Issue