src/AFQMC/Wavefunctions/WavefunctionFactory.cpp
/*
 * Helper function to get HamOps object from file or from scratch.
*/
Helper function to get HamOps object from file or from scratch.
Helper function to get HamOps object from file or from scratch .
HamiltonianOperations WavefunctionFactory::getHamOps(bool read, hdf_archive& dump, WALKER_TYPES type, int NMO, int NAEA, int NAEB,
                                                      std::vector<PsiT_Matrix>& PsiT, TaskGroup_& TGprop, TaskGroup_& TGwfn,
                                                      RealType cutvn, RealType cutv2, int ndets_to_read, Hamiltonian& h)
{
  if(read) {
    return loadHamOps(dump,type,NMO,NAEA,NAEB,PsiT,TGprop,TGwfn,cutvn,cutv2);
  } else {
    return h.getHamiltonianOperations(false,ndets_to_read>1,type,PsiT, cutvn,cutv2,TGprop,TGwfn,dump);
  }
}
HamiltonianOperations WavefunctionFactory :: getHamOps ( bool read , hdf_archive & dump , WALKER_TYPES type , int NMO , int NAEA , int NAEB , std :: vector < PsiT_Matrix > & PsiT , TaskGroup_ & TGprop , TaskGroup_ & TGwfn , RealType cutvn , RealType cutv2 , int ndets_to_read , Hamiltonian & h ) { if ( read ) { return loadHamOps ( dump , type , NMO , NAEA , NAEB , PsiT , TGprop , TGwfn , cutvn , cutv2 ) ; } else { return h . getHamiltonianOperations ( false , ndets_to_read > 1 , type , PsiT , cutvn , cutv2 , TGprop , TGwfn , dump ) ; } }
Helper function to get HamOps object from file or from scratch.
Helper function to get HamOps object from file or from scratch .