feat(diagnostics)

Improved CVODE step diagnostics to be able to save intermediate
jacobians and to be print which species are limiting the timestepping
This commit is contained in:
2025-11-15 09:02:08 -05:00
parent b5d76e3728
commit 4a404f6e12
2 changed files with 42 additions and 10 deletions

View File

@@ -10,7 +10,6 @@ namespace gridfire::diagnostics {
const DynamicEngine& engine,
const std::vector<double>& Y_full,
const std::vector<double>& E_full,
const std::vector<double>& dydt_full,
double relTol,
double absTol,
size_t top_n = 10
@@ -31,4 +30,18 @@ namespace gridfire::diagnostics {
double rho
);
void inspect_jacobian_stiffness(
const DynamicEngine& engine,
const fourdst::composition::Composition &comp,
double T9,
double rho,
bool save,
const std::optional<std::string>& filename
);
void save_jacobian_to_file(
const NetworkJacobian& jacobian,
const std::string& filename
);
}