Neko 1.99.9
A portable framework for high-order spectral element flow simulations
Loading...
Searching...
No Matches
time_step_controller.f90 File Reference

Go to the source code of this file.

Data Types

type  time_step_controller::time_step_controller_t
 Provides a tool to set time step dt. More...
 

Modules

module  time_step_controller
 Implements type time_step_controller.
 

Functions/Subroutines

subroutine time_step_controller::time_step_controller_init (this, params)
 Constructor.
 
pure real(kind=dp) function time_step_controller::time_step_controller_first_dt (this, time, cfl)
 The first time step of a variable time step run: the one giving the target CFL number, limited by timestep, max_timestep and min_timestep where given.
 
subroutine time_step_controller::time_step_controller_set_dt (this, time, cfl)
 Set new dt based on cfl if requested.
 
subroutine time_step_controller::time_step_controller_land (this, time, time_to_next)
 Fit the time step so that the next scheduled time, or the end time, is reached exactly.
 

Variables

real(kind=dp), parameter, public time_step_controller::landing_tol = 1.0e-6_dp
 Relative tolerance on the number of steps up to a scheduled time, so that round-off in the accumulated time does not add a step, and on the change of the step that counts as one.
 
real(kind=dp), parameter time_step_controller::max_landing_steps = 1.0e15_dp
 Largest number of steps up to a scheduled time that is still fitted.