Project

EarthSciIntegrator

One specification for integrating EarthSciML models — explicit, implicit and IMEX methods, operator splitting, a planner, and discrete adjoints — implemented natively in Julia and Rust and checked against each other.

Contents

rhs

Stable function · The operator interface

Tier: stable · Kind: function · Topic: The operator interface

JuliaRust
rhs!not exported

Julia

rhs!(s::EarthSciIntegrator.OperatorSum, out, u, p, t)
rhs!(op::PlannedOperator, out, u, p, t)
rhs!(o::EarthSciIntegrator.LeafOperator, out, x, p, t)
rhs!(o::EarthSciIntegrator.PartOperator, out, x, p, t)
rhs!(o::EarthSciIntegrator.UnitOperator, out, x, p, t)
rhs!(w::EarthSciIntegrator.Switched, out, u, p, t)
rhs!(::EarthSciIntegrator.ForcedDecay, out, u, p, t)
rhs!(::EarthSciIntegrator.Oscillator, out, u, p, t)
rhs!(::EarthSciIntegrator.Kinetics, out, u, p, t)
rhs!(op::EarthSciIntegrator.Photochemistry, out, u, p, t)
rhs!(op::EarthSciIntegrator.Transport, out, u, p, t)
rhs!(op::EarthSciIntegrator.Reaction, out, u, p, t)
rhs!(::EarthSciIntegrator.Source, out, u, p, t)
rhs!(op, out, u, p, t)

out += f_k(u, p, t): the operator’s contribution to the right-hand side.

Operator calls are methods of these generic functions on an operator type (operator-interface.md §5). The term-operator calls accumulate into out; apply! overwrites it.

Source

Rust

Rust does not export this function.