pararealml.operators.parareal package

Submodules

pararealml.operators.parareal.parareal_operator module

class pararealml.operators.parareal.parareal_operator.PararealOperator(f: pararealml.operator.Operator, g: pararealml.operator.Operator, tol: float, max_iterations: int = 9223372036854775807)[source]

Bases: pararealml.operator.Operator

A parallel-in-time differential equation solver framework based on the Parareal algorithm.

solve(ivp: pararealml.initial_value_problem.InitialValueProblem, parallel_enabled: bool = True) → pararealml.solution.Solution[source]

Returns the IVP’s solution.

Parameters:
  • ivp – the initial value problem to solve
  • parallel_enabled – whether in-time parallelization is enabled
Returns:

the solution of the IVP

Module contents

class pararealml.operators.parareal.PararealOperator(f: pararealml.operator.Operator, g: pararealml.operator.Operator, tol: float, max_iterations: int = 9223372036854775807)[source]

Bases: pararealml.operator.Operator

A parallel-in-time differential equation solver framework based on the Parareal algorithm.

solve(ivp: pararealml.initial_value_problem.InitialValueProblem, parallel_enabled: bool = True) → pararealml.solution.Solution[source]

Returns the IVP’s solution.

Parameters:
  • ivp – the initial value problem to solve
  • parallel_enabled – whether in-time parallelization is enabled
Returns:

the solution of the IVP