QMCPACK
RuntimeOptions.h
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) 2017 Jeongnim Kim and QMCPACK developers.
6 //
7 // File developed by: William F Godoy, godoywf@ornl.gov, Oak Ridge National Laboratory
8 //
9 // File created by: William F Godoy, godoywf@ornl.gov, Oak Ridge National Laboratory
10 //////////////////////////////////////////////////////////////////////////////////////
11 
12 #ifndef QMCPLUSPLUS_RUNTIMEOPTIONS_H__
13 #define QMCPLUSPLUS_RUNTIMEOPTIONS_H__
14 
15 namespace qmcplusplus
16 {
17 
18 // Simple struct that tracks (@TODO: future) runtime options for the project:
19 // - mixed precision,
20 // - complex
22 {
23  bool is_complex;
25 
26  // Default constructor follows current compile-time options
27  // @TODO: remove this at the end of the complex/mixed precision integrations
29  : is_complex(
30 #ifdef QMC_COMPLEX
31  true
32 #else
33  false
34 #endif
35  ),
37 #ifdef QMC_MIXED_PRECISION
38  true
39 #else
40  false
41 #endif
42  )
43  {}
44 };
45 
46 } // namespace qmcplusplus
47 
48 #endif
helper functions for EinsplineSetBuilder
Definition: Configuration.h:43