From e3eb7822132465d5c06a0956d4ef6c6bf8428359 Mon Sep 17 00:00:00 2001 From: Miikka Vaisala Date: Fri, 20 Nov 2020 11:11:54 +0800 Subject: [PATCH] Sorry for the compilation problem. Corrected. --- samples/standalone/simulation.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/samples/standalone/simulation.cc b/samples/standalone/simulation.cc index 178ff17..4e0e176 100644 --- a/samples/standalone/simulation.cc +++ b/samples/standalone/simulation.cc @@ -431,7 +431,8 @@ run_simulation(const char* config_path) const AcReal uref = max(max(umax,uu_freefall), vAmax); const AcReal dt = host_timestep(uref, vAmax, mesh_info); #else - const AcReal dt = host_timestep(umax, 0.0l, mesh_info); + const AcReal uref = max(umax,uu_freefall); + const AcReal dt = host_timestep(uref, 0.0l, mesh_info); #endif #if LFORCING