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

planned_operator

Stable type · Other

Tier: stable · Kind: type · Topic: Other

JuliaRust
PlannedOperatorplanned::PlannedOperator

Julia

struct PlannedOperator <: EarthSciIntegrator.AbstractOperator
PlannedOperator(name::String, writes::Vector{Int64}, structure::EarthSciIntegrator.Structure, depends_on_t::Bool, linear_in_u::Bool, rhs::R, jac::J, points::Vector{Tuple{Int64, Int64, Int64}}, cache::EarthSciIntegrator.BandCache, layout::EarthSciIntegrator.DofLayout, blockable::Bool, forcing::Union{Nothing, EarthSciIntegrator.ForcingRuntime}, rhs_fs::Base.RefValue{Union{Nothing, EarthSciIntegrator.EpochSet}}, jac_fs::Base.RefValue{Union{Nothing, EarthSciIntegrator.EpochSet}}, bandpts::Vector{NTuple{4, Int64}}, time::Union{Nothing, EarthSciIntegrator.PlanDocument}, time_points::Vector{Tuple{Int64, Int64, Int64}}, time_rows::Vector{String}, time_fs::Base.RefValue{Union{Nothing, EarthSciIntegrator.EpochSet}}, class::String, column::Union{Nothing, Tuple{String, Dict{String, Int64}}}, sw) where {R<:EarthSciIntegrator.PlanDocument, J<:EarthSciIntegrator.PlanDocument}
PlannedOperator

An operator a plan supplies (spec/operator-interface.md §8): the right-hand side and Jacobian documents built by EarthSciAST, the canonical DOFs it writes, its structure, and every point of its bands as (slot, row, col), the slot of the band field J_k cell in the Jacobian document and the canonical row and column DOFs it adds into. It provides rhs, jvp_u, vjp_u and jac (§8.3), and ft when it does not depend on t (zero) or the plan gives it a time-derivative document (derived/<op>.time_derivative.esm, spec/plan.md §6.7, D102): time is that document and time_points each (k, slot, row), the slot of band field J_k’s cell in it and the canonical DOF of its row variable’s cell that it adds into. bandpts are the band points as (k, f, row, col) (band, field cell, canonical row and column), in the order of points.

Source

Rust

pub struct PlannedOperator {
    /* private fields */
}

An operator built from a plan (§8).

Source · Rust docs