QMCPACK
test_LRBreakupParameters.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 and QMCPACK developers.
6 //
7 // File developed by: Ye Luo, yeluo@anl.gov, Argonne National Laboratory
8 //
9 // File created by: Ye Luo, yeluo@anl.gov, Argonne National Laboratory
10 //////////////////////////////////////////////////////////////////////////////////////
11 
12 
13 #include <stdio.h>
14 #include <string>
15 
16 #include "catch.hpp"
17 
18 #include "Configuration.h"
19 #include "OhmmsPETE/TinyVector.h"
21 
22 namespace qmcplusplus
23 {
24 /** Lattice is defined but Open BC is also used.
25  */
26 TEST_CASE("LRBreakupParameters", "[lattice]")
27 {
29 
31 
32  R[0][0] = 1.0;
33  R[1][1] = 1.0;
34  R[2][2] = 1.0;
35 
36  myLR.SetLRCutoffs(R);
37 
38  CHECK(myLR.LR_kc == Approx(30.0));
39 
40  R[0][0] = 2.0;
41  R[1][1] = 2.0;
42  R[2][2] = 3.0;
43 
44  myLR.SetLRCutoffs(R);
45 
46  CHECK(myLR.LR_kc == Approx(15.0));
47 }
48 
49 } // namespace qmcplusplus
Fixed-size array.
Definition: OhmmsTinyMeta.h:30
helper functions for EinsplineSetBuilder
Definition: Configuration.h:43
TEST_CASE("complex_helper", "[type_traits]")
CHECK(log_values[0]==ComplexApprox(std::complex< double >{ 5.603777579195571, -6.1586603331188225 }))