2025-11-12 16:54:12 -05:00
|
|
|
#pragma once
|
|
|
|
|
|
2025-11-21 14:28:45 -05:00
|
|
|
#include "gridfire/exceptions/error_gridfire.h"
|
2025-11-12 16:54:12 -05:00
|
|
|
|
|
|
|
|
namespace gridfire::exceptions {
|
2025-11-21 14:26:24 -05:00
|
|
|
class SolverError : GridFireError {
|
|
|
|
|
using GridFireError::GridFireError;
|
2025-11-12 16:54:12 -05:00
|
|
|
};
|
|
|
|
|
|
2025-11-21 14:26:24 -05:00
|
|
|
class SingularJacobianError final : public SolverError {
|
2025-11-12 16:54:12 -05:00
|
|
|
using SolverError::SolverError;
|
|
|
|
|
};
|
2025-11-14 10:51:40 -05:00
|
|
|
|
2025-11-21 14:26:24 -05:00
|
|
|
class IllConditionedJacobianError final : public SolverError {
|
2025-11-14 10:51:40 -05:00
|
|
|
using SolverError::SolverError;
|
|
|
|
|
};
|
2025-11-14 18:49:29 -05:00
|
|
|
|
2025-11-21 14:26:24 -05:00
|
|
|
class SUNDIALSError : public SolverError {
|
2025-11-14 18:49:29 -05:00
|
|
|
using SolverError::SolverError;
|
|
|
|
|
};
|
2025-11-21 14:26:24 -05:00
|
|
|
|
|
|
|
|
class CVODESolverFailureError final : public SUNDIALSError {
|
|
|
|
|
using SUNDIALSError::SUNDIALSError;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
class KINSolSolverFailureError final : public SUNDIALSError {
|
|
|
|
|
using SUNDIALSError::SUNDIALSError;
|
|
|
|
|
};
|
|
|
|
|
|
2025-11-12 16:54:12 -05:00
|
|
|
}
|