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
21
struct
RuntimeOptions
22
{
23
bool
is_complex
;
24
bool
is_mixed_precision
;
25
26
// Default constructor follows current compile-time options
27
// @TODO: remove this at the end of the complex/mixed precision integrations
28
RuntimeOptions
()
29
:
is_complex
(
30
#ifdef QMC_COMPLEX
31
true
32
#else
33
false
34
#endif
35
),
36
is_mixed_precision
(
37
#ifdef QMC_MIXED_PRECISION
38
true
39
#else
40
false
41
#endif
42
)
43
{}
44
};
45
46
}
// namespace qmcplusplus
47
48
#endif
qmcplusplus::RuntimeOptions::is_mixed_precision
bool is_mixed_precision
Definition:
RuntimeOptions.h:24
qmcplusplus
helper functions for EinsplineSetBuilder
Definition:
Configuration.h:43
qmcplusplus::RuntimeOptions::is_complex
bool is_complex
Definition:
RuntimeOptions.h:23
qmcplusplus::RuntimeOptions
Definition:
RuntimeOptions.h:21
qmcplusplus::RuntimeOptions::RuntimeOptions
RuntimeOptions()
Definition:
RuntimeOptions.h:28
src
Utilities
RuntimeOptions.h
Generated on Fri Jun 28 2024 10:45:29 for QMCPACK by
1.8.14