QMCPACK
test_VMCBatched.cpp
Go to the documentation of this file.
1 //////////////////////////////////////////////////////////////////////////////////////
2 // This file is distributed under the University of Illinois/NCSA Open Source License.
3 // See LICENSE file in top directory for details.
4 //
5 // Copyright (c) 2020 QMCPACK developers.
6 //
7 // File developed by: Peter Doak, doakpw@ornl.gov, Oak Ridge National Laboratory
8 //
9 // File created by: Peter Doak, doakpw@ornl.gov, Oak Ridge National Laboratory
10 //////////////////////////////////////////////////////////////////////////////////////
11 
12 #include "catch.hpp"
13 
14 #include "Message/Communicate.h"
22 #include "Concurrency/Info.hpp"
24 #include "Particle/SampleStack.h"
25 
26 namespace qmcplusplus
27 {
28 namespace testing
29 {
31 {
32 public:
33  VMCBatchedTest(const ProjectData& project_data) : project_data_(project_data)
34  {
37  }
38 
40  {
41  using namespace testing;
43 
46  xmlNodePtr node = doc.getRoot();
47  QMCDriverInput qmcdriver_input;
48  qmcdriver_input.readXML(node);
49 
51  auto wavefunction_pool =
54  }
55 
56 private:
59 };
60 } // namespace testing
61 
62 TEST_CASE("VMCBatched::calc_default_local_walkers", "[drivers]")
63 {
64  using namespace testing;
68 }
69 
70 } // namespace qmcplusplus
Stores particle configurations for later use in DMC and wavefunction optimization.
class that handles xmlDoc
Definition: Libxml2Doc.h:76
TEST_CASE("ListenerVector", "[hamiltonian]")
Abstraction of information on executor environments.
helper functions for EinsplineSetBuilder
Definition: Configuration.h:43
if(!okay) throw std xmlNodePtr node
class ProjectData
Definition: ProjectData.h:36
static ParticleSetPool make_diamondC_1x1x1(Communicate *c)
static WaveFunctionPool make_diamondC_1x1x1(const RuntimeOptions &runtime_options, Communicate *comm, ParticleSetPool &particle_pool)
xmlNodePtr getRoot()
Definition: Libxml2Doc.h:88
constexpr int valid_vmc_input_vmc_batch_index
VMCBatchedTest(const ProjectData &project_data)
ProjectData test_project("test", ProjectData::DriverVersion::BATCH)
Communicate * Controller
Global Communicator for a process.
Definition: Communicate.cpp:35
const RuntimeOptions & getRuntimeOptions() const noexcept
Wrapping information on parallelism.
Definition: Communicate.h:68
Compilation units that construct QMCDriverInput need visibility to the actual input classes types in ...
constexpr std::array< const char *, 4 > valid_vmc_input_sections
A service class to override active avaiable threads upon construction.
static HamiltonianPool make_hamWithEE(Communicate *comm, ParticleSetPool &particle_pool, WaveFunctionPool &wavefunction_pool)
void readXML(xmlNodePtr cur)
Reads qmc section xml node parameters.
bool parseFromString(const std::string_view data)
Definition: Libxml2Doc.cpp:204
utility functions for executors
avoids many repeated xml heredoc sections
Input representation for Driver base class runtime parameters.