QMCPACK
SetupPools.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) 2019 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 "SetupPools.h"
13 #include <iostream>
18 #include "Utilities/ProjectData.h"
19 
20 namespace qmcplusplus
21 {
22 namespace testing
23 {
25 {
28 
29  std::cout << "For purposes of multithreaded testing max threads is forced to 8" << '\n';
31 
32  particle_pool = std::make_unique<ParticleSetPool>(MinimalParticlePool::make_diamondC_1x1x1(comm));
33  wavefunction_pool = std::make_unique<WaveFunctionPool>(
35  hamiltonian_pool = std::make_unique<HamiltonianPool>(
37 }
38 
39 } // namespace testing
40 } // namespace qmcplusplus
helper functions for EinsplineSetBuilder
Definition: Configuration.h:43
UPtr< ParticleSetPool > particle_pool
Definition: SetupPools.h:33
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)
ProjectData test_project("test", ProjectData::DriverVersion::BATCH)
UPtr< HamiltonianPool > hamiltonian_pool
Definition: SetupPools.h:35
Communicate * Controller
Global Communicator for a process.
Definition: Communicate.cpp:35
const RuntimeOptions & getRuntimeOptions() const noexcept
UPtr< WaveFunctionPool > wavefunction_pool
Definition: SetupPools.h:34
A service class to override active avaiable threads upon construction.
static HamiltonianPool make_hamWithEE(Communicate *comm, ParticleSetPool &particle_pool, WaveFunctionPool &wavefunction_pool)
utility functions for executors