rizer.cantera_ext
C++ Cantera 1-D plasma extension (custom Domain1D models and solvers)
Loading...
Searching...
No Matches
rizer::TrialStateError Class Reference

A state the closures cannot evaluate: a temperature outside the fits, an undefined Coulomb logarithm, or a non-finite rate. More...

#include <TrialStateError.h>

Inheritance diagram for rizer::TrialStateError:
Cantera::CanteraError

Public Member Functions

 TrialStateError (const std::string &procedure, std::string message)
std::string getMessage () const override
std::string getClass () const override
Public Member Functions inherited from Cantera::CanteraError
 CanteraError (const string &procedure, const string &msg, const Args &... args)
virtual ~CanteraError ()
const char * what () const override
virtual string getMethod () const

Additional Inherited Members

Static Public Member Functions inherited from Cantera::CanteraError
static void setStackTraceDepth (int depth)
Protected Member Functions inherited from Cantera::CanteraError
 CanteraError ()
 CanteraError (const string &procedure)
Protected Attributes inherited from Cantera::CanteraError
string procedure_
string formattedMessage_

Detailed Description

A state the closures cannot evaluate: a temperature outside the fits, an undefined Coulomb logarithm, or a non-finite rate.

A CanteraError, because Cantera's integrators treat only CanteraError as recoverable: FuncEval::evalNoThrow returns 1 for it and -1 for any other exception, so CVODE rejects the trial step and retries a smaller one instead of abandoning the solve. The message is stored whole and returned through getMessage(), using CanteraError's per-procedure constructor, so no fmt formatting is instantiated in this extension (.claude/rules/cantera-extension.md).

Definition at line 30 of file TrialStateError.h.

Constructor & Destructor Documentation

◆ TrialStateError()

rizer::TrialStateError::TrialStateError ( const std::string & procedure,
std::string message )
inline
Parameters
[in]procedureFunction that rejected the state
[in]messageWhat was wrong with it

Definition at line 35 of file TrialStateError.h.

Member Function Documentation

◆ getClass()

std::string rizer::TrialStateError::getClass ( ) const
inlineoverridevirtual

Reimplemented from Cantera::CanteraError.

Definition at line 41 of file TrialStateError.h.

◆ getMessage()

std::string rizer::TrialStateError::getMessage ( ) const
inlineoverridevirtual

Reimplemented from Cantera::CanteraError.

Definition at line 40 of file TrialStateError.h.


The documentation for this class was generated from the following file: