Commit 9c920a59 authored by Santiago Ospina's avatar Santiago Ospina

Update time step immediately it is suggested. (A copy is still needed since...

Update time step immediately it is suggested. (A copy is still needed since the dynamically increased dt is updated later)
Signed-off-by: Santiago Ospina De Los Ríos's avatarSantiago Ospina <santiago.ospina@iup.uni-heidelberg.de>
parent 53bb73ce
......@@ -79,7 +79,9 @@ public:
/// suggest timestep
inline void suggest_timestep (R suggestion) {
use_dt_suggestion = true;
suggested_dt = suggestion;}
suggested_dt = suggestion;
dt = std::min(dt,suggested_dt);
}
/// Return current time
inline R getTime () const { return time; }
/// Return timestep for next calculation
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment