QMCPACK
EstimatorTesting.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) 2021 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 "EstimatorTesting.h"
13 #include <SpeciesSet.h>
14 namespace qmcplusplus
15 {
16 namespace testing
17 {
19 {
21  lattice.BoxBConds = true; // periodic
22  lattice.R = ParticleSet::Tensor_t(3.37316115, 3.37316115, 0.00000000, 0.00000000, 3.37316115, 3.37316115, 3.37316115,
23  0.00000000, 3.37316115);
24  lattice.reset();
25  lattice.explicitly_defined = true;
26  return lattice;
27 }
28 
30 {
32  switch (species_case)
33  {
34  case SpeciesCases::GOOD: {
35  species_set.addSpecies("u");
36  species_set.addSpecies("d");
37  const int iattribute = species_set.addAttribute("membersize");
38  species_set(iattribute, 0) = 1;
39  species_set(iattribute, 1) = 1;
40  break;
41  }
43  species_set.addSpecies("u");
44  species_set.addSpecies("d");
45  break;
46  }
47  }
48  return species_set;
49 }
50 
52 
54 
55 } // namespace testing
56 } // namespace qmcplusplus
a class that defines a supercell in D-dimensional Euclean space.
value_type & operator[](size_t pos)
helper functions for EinsplineSetBuilder
Definition: Configuration.h:43
ParticleLayout::Tensor_t Tensor_t
Definition: Configuration.h:88
CrystalLattice< OHMMS_PRECISION, OHMMS_DIM > lattice
An abstract class for gridded estimators.
OperatorEstBase::Data::value_type value_type
Custom container for set of attributes for a set of species.
Definition: SpeciesSet.h:33
SpeciesSet makeSpeciesSet(const SpeciesCases species_case)