timestep_controller_abstract_class Module

Houses abstract interface for optional timestep controller object



Abstract Interfaces

abstract interface

  • private function timestepCalc(this, inputVars, currentTimestep) result(timestep)

    Calculate timestep in accordance with timestep controller rules and using current timestep and input variables

    Arguments

    Type IntentOptional Attributes Name
    class(TimestepController), intent(inout) :: this
    class(VariableContainer), intent(in) :: inputVars

    Variable container used to calculate timestep

    real(kind=rk), intent(in) :: currentTimestep

    Current timestep to be used if the controller rescales timesteps

    Return Value real(kind=rk)


Derived Types

type, public, abstract, extends(Object) ::  TimestepController

Abstract timestep controller object

Components

Type Visibility Attributes Name Initial
logical, public :: userDefined = .false.

True only if user explicitly sets it to true

Type-Bound Procedures

procedure, public :: isDefined => isDefinedObject
procedure, public :: makeDefined => makeDefinedObject
procedure, public :: makeUndefined => makeUndefinedObject
procedure(timestepCalc), public, deferred :: evaluateTimestep