Version: dev

dimension_promotion_error

Stable error · Flatten

Tier: stable · Kind: error · Topic: Flatten

JuliaTypeScriptPythonRustGo
DimensionPromotionErrorDimensionPromotionErrorDimensionPromotionErrornot exportedDimensionPromotionError

Julia

struct DimensionPromotionError <: EarthSciASTError
DimensionPromotionError(details::String)
DimensionPromotionError(details)
DimensionPromotionError

Raised during flatten when a variable or equation cannot be promoted from its source domain to the target domain given the available Interface rules (§4.7.6).

Source

TypeScript

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

A variable or equation cannot be promoted onto the target grid — raised by the §10.5 pointwise spatial lift when a species’ operator makearrays yield no full-rank interior-stencil gather.

Source

Python

class DimensionPromotionError(FlattenError)

A variable or equation cannot be promoted given the available Interfaces.

Raised when dimension promotion is ambiguous, when required dimension metadata is missing, or when the promotion request would otherwise fail independent of mapping-tier support — see spec §4.7.6.

Source

Rust

Rust does not export this error.

Go

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

DimensionPromotionError reports that a variable or equation cannot be promoted onto the target grid (esm-libraries-spec §4.7.6): here, that the pointwise spatial lift (esm-spec §10.5) could not read the spatial loop variables off a species’ operator makearray.

Methods

func (e *DimensionPromotionError) Error() string

Source · Go docs