-
Notifications
You must be signed in to change notification settings - Fork 141
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change PWOrbitalBuilder to PWOrbitalSetBuilder
- Loading branch information
Showing
6 changed files
with
57 additions
and
120 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,9 +2,10 @@ | |
// This file is distributed under the University of Illinois/NCSA Open Source License. | ||
// See LICENSE file in top directory for details. | ||
// | ||
// Copyright (c) 2016 Jeongnim Kim and QMCPACK developers. | ||
// Copyright (c) 2023 QMCPACK developers. | ||
// | ||
// File developed by: Jeongnim Kim, [email protected], University of Illinois at Urbana-Champaign | ||
// File developed by: Ye Luo, [email protected], Argonne National Laboratory | ||
// Jeongnim Kim, [email protected], University of Illinois at Urbana-Champaign | ||
// Jeremy McMinnis, [email protected], University of Illinois at Urbana-Champaign | ||
// | ||
// File created by: Jeongnim Kim, [email protected], University of Illinois at Urbana-Champaign | ||
|
@@ -15,23 +16,25 @@ | |
* @brief Declaration of a builder class for PWOrbitalSet | ||
* | ||
*/ | ||
#ifndef QMCPLUSPLUS_PLANEWAVE_ORBITALBUILD_V0_H | ||
#define QMCPLUSPLUS_PLANEWAVE_ORBITALBUILD_V0_H | ||
#include "QMCWaveFunctions/WaveFunctionComponentBuilder.h" | ||
#ifndef QMCPLUSPLUS_PWORBITAL_BUILDER_H | ||
#define QMCPLUSPLUS_PWORBITAL_BUILDER_H | ||
|
||
#include "SPOSetBuilder.h" | ||
#include "hdf/hdf_archive.h" | ||
#if defined(QMC_COMPLEX) | ||
#include "QMCWaveFunctions/PlaneWave/PWOrbitalSet.h" | ||
#else | ||
#include "QMCWaveFunctions/PlaneWave/PWRealOrbitalSet.h" | ||
#endif | ||
|
||
namespace qmcplusplus | ||
{ | ||
struct PWParameterSet; | ||
class SlaterDet; | ||
|
||
/** OrbitalBuilder for Slater determinants in PW basis | ||
*/ | ||
class PWOrbitalBuilder : public WaveFunctionComponentBuilder | ||
class PWOrbitalSetBuilder : public SPOSetBuilder | ||
{ | ||
private: | ||
#if defined(QMC_COMPLEX) | ||
|
@@ -40,8 +43,8 @@ class PWOrbitalBuilder : public WaveFunctionComponentBuilder | |
using SPOSetType = PWRealOrbitalSet; | ||
#endif | ||
|
||
std::map<std::string, SPOSetPtr> spomap; | ||
const PSetMap& ptclPool; | ||
/// target particle set | ||
const ParticleSet& targetPtcl; | ||
///xml node for determinantset | ||
xmlNodePtr rootNode{nullptr}; | ||
///input twist angle | ||
|
@@ -54,17 +57,16 @@ class PWOrbitalBuilder : public WaveFunctionComponentBuilder | |
hdf_archive hfile; | ||
public: | ||
///constructor | ||
PWOrbitalBuilder(Communicate* comm, ParticleSet& els, const PSetMap& psets); | ||
~PWOrbitalBuilder() override; | ||
PWOrbitalSetBuilder(const ParticleSet& p, Communicate* comm, xmlNodePtr cur); | ||
~PWOrbitalSetBuilder() override; | ||
|
||
///implement vritual function | ||
std::unique_ptr<WaveFunctionComponent> buildComponent(xmlNodePtr cur) override; | ||
/// create an sposet from xml and save the resulting SPOSet | ||
std::unique_ptr<SPOSet> createSPOSetFromXML(xmlNodePtr cur) override; | ||
|
||
private: | ||
bool getH5(xmlNodePtr cur, const char* aname); | ||
std::unique_ptr<WaveFunctionComponent> putSlaterDet(xmlNodePtr cur); | ||
bool createPWBasis(xmlNodePtr cur); | ||
SPOSet* createPW(xmlNodePtr cur, int spinIndex); | ||
std::unique_ptr<SPOSet> createPW(xmlNodePtr cur, const std::string& objname, int spinIndex); | ||
#if defined(QMC_COMPLEX) | ||
void transform2GridData(PWBasis::GIndex_t& nG, int spinIndex, PWOrbitalSet& pwFunc); | ||
#endif | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters