Suppressed unused variable and function warnings in model_rk3.cc

This commit is contained in:
jpekkila
2019-07-03 17:03:26 +03:00
parent 59ac264743
commit af3a1e211e

View File

@@ -697,19 +697,18 @@ entropy(const ModelScalarData& ss, const ModelVectorData& uu, const ModelScalarD
*/
}
static bool
static inline bool
is_valid(const ModelScalar a)
{
return !isnan(a) && !isinf(a);
}
static bool
static inline bool
is_valid(const ModelVector& a)
{
return is_valid(a.x) && is_valid(a.y) && is_valid(a.z);
}
#if 0
//FORCING NOT SUPPORTED FOR AUTOTEST
@@ -849,6 +848,7 @@ solve_beta_step(const int step_number, const ModelScalar dt, const int i, const
for (int w = 0; w < NUM_VTXBUF_HANDLES; ++w)
out->vertex_buffer[w][idx] += beta[step_number] * in.vertex_buffer[w][idx];
(void)dt; // Suppress unused variable warning if forcing not used
#if LFORCING
if (step_number == 2) {
ModelVector force = forcing((int3){i, j, k}, dt);