Skip to content

Commit a058ea3

Browse files
committed
fix AD issues?
1 parent ad55dc2 commit a058ea3

2 files changed

Lines changed: 15 additions & 15 deletions

File tree

Common/include/option_structure.hpp

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -91,23 +91,23 @@ const unsigned int ZONE_0 = 0; /*!< \brief Definition of the first grid domain.
9191
const unsigned int ZONE_1 = 1; /*!< \brief Definition of the second grid domain. */
9292
const unsigned int INST_0 = 0; /*!< \brief Definition of the first instance per grid level. */
9393

94-
static constexpr passivedouble STANDARD_GRAVITY = 9.80665; /*!< \brief Acceleration due to gravity at surface of earth. */
95-
static constexpr passivedouble UNIVERSAL_GAS_CONSTANT = 8.3144598; /*!< \brief Universal gas constant in J/(mol*K) */
96-
static constexpr passivedouble BOLTZMANN_CONSTANT = 1.3806503E-23; /*!< \brief Boltzmann's constant [J K^-1] */
97-
static constexpr passivedouble AVOGAD_CONSTANT = 6.0221415E26; /*!< \brief Avogadro's constant, number of particles in one kmole. */
98-
static constexpr passivedouble FUND_ELEC_CHARGE_CGS = 4.8032047E-10; /*!< \brief Fundamental electric charge in CGS units, cm^(3/2) g^(1/2) s^(-1). */
94+
constexpr passivedouble STANDARD_GRAVITY = 9.80665; /*!< \brief Acceleration due to gravity at surface of earth. */
95+
constexpr passivedouble UNIVERSAL_GAS_CONSTANT = 8.3144598; /*!< \brief Universal gas constant in J/(mol*K) */
96+
constexpr passivedouble BOLTZMANN_CONSTANT = 1.3806503E-23; /*!< \brief Boltzmann's constant [J K^-1] */
97+
constexpr passivedouble AVOGAD_CONSTANT = 6.0221415E26; /*!< \brief Avogadro's constant, number of particles in one kmole. */
98+
constexpr passivedouble FUND_ELEC_CHARGE_CGS = 4.8032047E-10; /*!< \brief Fundamental electric charge in CGS units, cm^(3/2) g^(1/2) s^(-1). */
9999

100-
static constexpr passivedouble EPS = 1.0E-16; /*!< \brief Error scale. */
101-
static constexpr passivedouble TURB_EPS = 1.0E-16; /*!< \brief Turbulent Error scale. */
100+
constexpr passivedouble EPS = 1.0E-16; /*!< \brief Error scale. */
101+
constexpr passivedouble TURB_EPS = 1.0E-16; /*!< \brief Turbulent Error scale. */
102102

103-
static constexpr passivedouble ONE2 = 0.5; /*!< \brief One divided by two. */
104-
static constexpr passivedouble ONE3 = 1.0 / 3.0; /*!< \brief One divided by three. */
105-
static constexpr passivedouble TWO3 = 2.0 / 3.0; /*!< \brief Two divided by three. */
106-
static constexpr passivedouble FOUR3 = 4.0 / 3.0; /*!< \brief Four divided by three. */
103+
constexpr passivedouble ONE2 = 0.5; /*!< \brief One divided by two. */
104+
constexpr passivedouble ONE3 = 1.0 / 3.0; /*!< \brief One divided by three. */
105+
constexpr passivedouble TWO3 = 2.0 / 3.0; /*!< \brief Two divided by three. */
106+
constexpr passivedouble FOUR3 = 4.0 / 3.0; /*!< \brief Four divided by three. */
107107

108-
static constexpr passivedouble PI_NUMBER = 3.14159265358979323846; /*!< \brief Pi number (not using M_PI to avoid Windows issues). */
108+
constexpr passivedouble PI_NUMBER = 3.14159265358979323846; /*!< \brief Pi number (not using M_PI to avoid Windows issues). */
109109

110-
static constexpr passivedouble STEFAN_BOLTZMANN = 5.670367E-08; /*!< \brief Stefan-Boltzmann constant in W/(m^2*K^4). */
110+
constexpr passivedouble STEFAN_BOLTZMANN = 5.670367E-08; /*!< \brief Stefan-Boltzmann constant in W/(m^2*K^4). */
111111

112112
const int MASTER_NODE = 0; /*!< \brief Master node for MPI parallelization. */
113113
const int SINGLE_NODE = 1; /*!< \brief There is only a node in the MPI parallelization. */
@@ -195,7 +195,7 @@ const int SU2_CONN_SIZE = 10; /*!< \brief Size of the connectivity array that
195195
that we read from a mesh file in the format [[globalID vtkType n0 n1 n2 n3 n4 n5 n6 n7 n8]. */
196196
const int SU2_CONN_SKIP = 2; /*!< \brief Offset to skip the globalID and VTK type at the start of the element connectivity list for each CGNS element. */
197197

198-
static constexpr passivedouble COLORING_EFF_THRESH = 0.875; /*!< \brief Below this value fallback strategies are used instead. */
198+
constexpr passivedouble COLORING_EFF_THRESH = 0.875; /*!< \brief Below this value fallback strategies are used instead. */
199199

200200
/*--- All temperature polynomial fits for the fluid models currently
201201
assume a quartic form (5 coefficients). For example,

TestCases/parallel_regression.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -447,7 +447,7 @@ def main():
447447
turb_oneram6_nk.cfg_dir = "rans/oneram6"
448448
turb_oneram6_nk.cfg_file = "turb_ONERAM6_nk.cfg"
449449
turb_oneram6_nk.test_iter = 20
450-
turb_oneram6_nk.test_vals = [-5.262975, -4.885414, -11.509429, 0.218369, 0.067725, 2, -0.772645, 10]
450+
turb_oneram6_nk.test_vals = [-4.850719, -4.452661, -11.427627, 0.221809, 0.048349, 2, -0.881645, 10]
451451
turb_oneram6_nk.timeout = 600
452452
turb_oneram6_nk.tol = 0.0001
453453
test_list.append(turb_oneram6_nk)

0 commit comments

Comments
 (0)