FixedStepController

class cubie.integrators.FixedStepController(precision: type[float16] | type[float32] | type[float64] | dtype[float16] | dtype[float32] | dtype[float64], dt: float = None, n: int = 1, **kwargs)[source]

Bases: BaseStepController

Controller that enforces a constant time step.

_resolve_step_params(dt: float, kwargs: dict) None[source]

Collapse dt_min/dt_max to dt for fixed-step control.

Parameters:
  • dt – Fixed step size, or None if not provided.

  • kwargs – Mutable dict of keyword arguments. Modified in place.

build() ControllerCache[source]

Return a device function that always accepts with fixed step.

Returns:

Cache containing the compiled fixed-step device function.

Return type:

ControllerCache

property local_memory_elements: int

Amount of local memory required by the controller.