Added a comment about timestepping and autoformat
This commit is contained in:
@@ -30,9 +30,9 @@
|
|||||||
|
|
||||||
#include "config_loader.h"
|
#include "config_loader.h"
|
||||||
#include "core/math_utils.h"
|
#include "core/math_utils.h"
|
||||||
|
#include "model/host_forcing.h"
|
||||||
#include "model/host_memory.h"
|
#include "model/host_memory.h"
|
||||||
#include "model/host_timestep.h"
|
#include "model/host_timestep.h"
|
||||||
#include "model/host_forcing.h"
|
|
||||||
#include "model/model_boundconds.h"
|
#include "model/model_boundconds.h"
|
||||||
#include "model/model_reduce.h"
|
#include "model/model_reduce.h"
|
||||||
#include "model/model_rk3.h"
|
#include "model/model_rk3.h"
|
||||||
@@ -701,12 +701,11 @@ run_autotest(void)
|
|||||||
const AcReal dt = host_timestep(umax, config);
|
const AcReal dt = host_timestep(umax, config);
|
||||||
|
|
||||||
#if LFORCING
|
#if LFORCING
|
||||||
|
|
||||||
//CURRENTLY AUTOTEST NOT SUPPORTED WITH FORCING!!!
|
// CURRENTLY AUTOTEST NOT SUPPORTED WITH FORCING!!!
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
// Host integration step
|
// Host integration step
|
||||||
model_rk3(dt, model_mesh);
|
model_rk3(dt, model_mesh);
|
||||||
boundconds(config, model_mesh);
|
boundconds(config, model_mesh);
|
||||||
|
@@ -126,12 +126,10 @@ run_benchmark(void)
|
|||||||
for (int i = 0; i < NUM_ITERS; ++i) {
|
for (int i = 0; i < NUM_ITERS; ++i) {
|
||||||
|
|
||||||
timer_reset(&t);
|
timer_reset(&t);
|
||||||
|
const AcReal dt = FLT_EPSILON; // TODO NOTE: time to timestep not measured
|
||||||
#if GEN_BENCHMARK_RK3 == 1
|
#if GEN_BENCHMARK_RK3 == 1
|
||||||
acIntegrateStep(2, FLT_EPSILON);
|
acIntegrateStep(2, dt);
|
||||||
#else // GEN_BENCHMARK_FULL
|
#else // GEN_BENCHMARK_FULL
|
||||||
// const AcReal umax = acReduceVec(RTYPE_MAX, VTXBUF_UUX, VTXBUF_UUY, VTXBUF_UUZ);
|
|
||||||
const AcReal dt = AcReal(
|
|
||||||
1e-2); // TODO adaptive timestep //host_timestep(umax, mesh_info);
|
|
||||||
acIntegrate(dt);
|
acIntegrate(dt);
|
||||||
#endif
|
#endif
|
||||||
acSynchronize();
|
acSynchronize();
|
||||||
|
Reference in New Issue
Block a user