tpt-sci-ocean 0.1.0

Shallow-water and primitive-equation ocean circulation (from scratch) for the tpt-science pillar
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//! Error types for `tpt-sci-ocean`.

use thiserror::Error;

/// Errors raised by the ocean model.
#[derive(Debug, Error, Clone, PartialEq)]
pub enum OceanError {
    /// The model configuration was invalid.
    #[error("invalid model: {0}")]
    InvalidModel(String),
    /// Two arrays/matrices that must agree in dimension did not.
    #[error("dimension mismatch: {0}")]
    DimensionMismatch(String),
    /// A dense linear-algebra routine failed (non-finite or non-SPD input).
    #[error("linear algebra failure: {0}")]
    LinAlg(String),
}