pub struct SolverDiagnostics {
pub rho_e_clamped: usize,
pub newton_exhausted: usize,
pub max_emission_rate: f64,
pub nan_emission_detected: bool,
pub warnings: Vec<String>,
}Expand description
Diagnostic counters and extrema tracked during solver evolution.
Grouped into a sub-struct to keep ThermalizationSolver focused on
physics state. Reset by ThermalizationSolver::reset().
Fields§
§rho_e_clamped: usizeNumber of times rho_e was clamped. Non-zero values indicate injection energy may be silently discarded.
newton_exhausted: usizeNumber of times Newton iteration exhausted max_newton_iter without converging. Non-zero values indicate the solver may need more iterations or smaller step sizes.
max_emission_rate: f64Maximum uncapped emission rate encountered (NaN excluded).
nan_emission_detected: boolWhether any NaN emission rate was encountered.
warnings: Vec<String>Warning messages collected during solver evolution. Replaces eprintln! in library code for structured diagnostics.
Trait Implementations§
Source§impl Clone for SolverDiagnostics
impl Clone for SolverDiagnostics
Source§fn clone(&self) -> SolverDiagnostics
fn clone(&self) -> SolverDiagnostics
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SolverDiagnostics
impl Debug for SolverDiagnostics
Source§impl Default for SolverDiagnostics
impl Default for SolverDiagnostics
Source§fn default() -> SolverDiagnostics
fn default() -> SolverDiagnostics
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SolverDiagnostics
impl RefUnwindSafe for SolverDiagnostics
impl Send for SolverDiagnostics
impl Sync for SolverDiagnostics
impl Unpin for SolverDiagnostics
impl UnwindSafe for SolverDiagnostics
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more