Project

EarthSciAST

The EarthSciML Abstract Syntax Tree format: schema, operators, coupling, and five language bindings.

Contents

This is the documentation for the older version v0.16.0. For the latest release, see v0.17.0.

conflicting_derivative_error

Stable error · Flatten

Tier: stable · Kind: error · Topic: Flatten

JuliaTypeScriptPythonRustGo
ConflictingDerivativeErrorConflictingDerivativeErrorConflictingDerivativeErrornot exportedConflictingDerivativeError

Julia

struct ConflictingDerivativeError <: FlattenError
ConflictingDerivativeError(code::String, species::Vector{String}, reason::String)
ConflictingDerivativeError(code, species, reason)
ConflictingDerivativeError(species, reason)
ConflictingDerivativeError(species::Vector{String})
ConflictingDerivativeError

Raised when a species appears both as the left-hand side of an explicit differential equation (D(X, t) = ...) and as a substrate or product of any reaction in the same flattened file. Such a system is over-determined: the reaction contribution to d[X]/dt would silently shadow the user’s equation.

Also raised when a state has more than one initial condition ic(x) after coupling (an authored one and an operator’s ic(_var) expanded onto it, or two such templates): field_ics holds at most one entry per state (esm-libraries-spec §4.7.5 step 4).

Fields:

  • species::Vector{String}: fully-qualified (dot-namespaced) names of every offending species.
  • reason::String: what conflicts; the reaction-contribution wording when constructed with the species alone.

Source

TypeScript

class ConflictingDerivativeError extends FlattenError
new ConflictingDerivativeError(message: string): ConflictingDerivativeError

Two systems define non-additive equations for the same dependent variable — the §4.7.5 over-determination check. Such a system is over-determined: one contribution to d[X]/dt would silently shadow the other.

Source

Python

class ConflictingDerivativeError(FlattenError)

Two systems define non-additive equations for the same dependent variable, or two explicit initial conditions set the same cell of one unknown (esm-spec §11.4.3).

Source

Rust

Rust does not export this error.

Go

type ConflictingDerivativeError struct{ Message string }
func (e *ConflictingDerivativeError) Error() string

ConflictingDerivativeError reports that two source systems define non-additive equations for the same dependent variable (esm-libraries-spec §4.7.5 step 4’s over-determination check). Such a system is over-determined: one contribution to d

\[X\]

/dt would silently shadow the other.

Methods

func (e *ConflictingDerivativeError) Error() string

Source · Go docs