Version: dev

rhs_program

Stable function · Other

Tier: stable · Kind: function · Topic: Other

JuliaTypeScriptPythonRustGo
rhs_programnot exportedrhs_programrhs_programnot exported

Julia

rhs_program(prob::EsmProblem)
rhs_program(prob::EsmProblem) -> RhsProgram

The Problem’s right-hand side as a program value (API_SPEC §5.8): the whole model over the whole domain, with u every state of the Problem (in the Problem’s flat layout) and aux empty. select narrows it to one operator; halo , restrict and lanes restrict it.

Its inputs besides the state are a parameter vector (parameters ) and a ForcingSet (forcing_slots ): every externally fed parameter, and under runtime_array_parameters every shaped parameter with a value, is read from the set, never from build-time data. default_forcing_set holds the Problem’s forcing as it is now.

Source

TypeScript

TypeScript does not export this function.

Python

rhs_program(prob: Any) -> Any

The Problem’s right-hand side as a program value. Raises compiler_unavailable.

Source

Rust

pub fn rhs_program(prob: &EsmProblem) -> Result<RhsProgram, SimulateError>

The right-hand side prob compiled, as a program RhsProgram::select, RhsProgram::halo, RhsProgram::tile and RhsProgram::lanes accept (API_SPEC §5.8). Its names are the flattened (dot-namespaced) names on every route; it writes every state.

native and interpreter problems are accepted; any other compiler is compiler_unavailable. Under native a rule the tape cannot express is compiler_refused_rule.

Source · Rust docs

Go

Go does not export this function.