QMCPACK
test_qmctypes.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) 2018 QMCPACK developers
6 //
7 // File developed by: Peter Doak, doakpw@ornl.gov, Oak Ridge National Lab
8 //
9 // File created by: Peter Doak, doakpw@ornl.gov, Oak Ridge National Lab
10 //////////////////////////////////////////////////////////////////////////////////////
11 
12 #include <complex>
13 #include "catch.hpp"
14 #include "type_traits/QMCTypes.h"
15 
16 
17 namespace qmcplusplus
18 {
19 template<typename P>
21 {
22  using TA = QMCTypes<P, 3>;
25 };
26 
27 TEST_CASE("QMCTypes", "[type_traits]")
28 {
29  TestQMCTypes<float> float_test;
30  TestQMCTypes<double> double_test;
31 
32  // This should cause compiler error
33  // Realtype and ValueType precision do not match
34  //TestDeviceCUDA<float, double> pv_mismatch_test;
35  //REQUIRE(floatTest);
36 }
37 
38 } // namespace qmcplusplus
helper functions for EinsplineSetBuilder
Definition: Configuration.h:43
TEST_CASE("complex_helper", "[type_traits]")
std::complex< Precision > ComplexType
Definition: QMCTypes.h:38
TA::ComplexType testComplex
Precision RealType
Definition: QMCTypes.h:37