chore: sync project state and current artifacts

This commit is contained in:
Sepehr
2026-02-22 23:27:31 +01:00
parent 1b6415776e
commit dd77089b22
232 changed files with 37056 additions and 4296 deletions

View File

@@ -18,7 +18,7 @@ use entropyk_solver::{
/// Test that `ConvergedState::new` does NOT attach a report (backward-compat).
#[test]
fn test_converged_state_new_no_report() {
let state = ConvergedState::new(vec![1.0, 2.0], 10, 1e-8, ConvergenceStatus::Converged);
let state = ConvergedState::new(vec![1.0, 2.0], 10, 1e-8, ConvergenceStatus::Converged, entropyk_solver::SimulationMetadata::new("".to_string()));
assert!(
state.convergence_report.is_none(),
"ConvergedState::new should not attach a report"
@@ -45,6 +45,7 @@ fn test_converged_state_with_report_attaches_report() {
1e-8,
ConvergenceStatus::Converged,
report,
entropyk_solver::SimulationMetadata::new("".to_string()),
);
assert!(
@@ -233,7 +234,7 @@ fn test_single_circuit_global_convergence() {
use entropyk_components::port::ConnectedPort;
use entropyk_components::{
Component, ComponentError, JacobianBuilder, ResidualVector, SystemState,
Component, ComponentError, JacobianBuilder, ResidualVector, StateSlice,
};
struct MockConvergingComponent;
@@ -241,7 +242,7 @@ struct MockConvergingComponent;
impl Component for MockConvergingComponent {
fn compute_residuals(
&self,
state: &SystemState,
state: &StateSlice,
residuals: &mut ResidualVector,
) -> Result<(), ComponentError> {
// Simple linear system will converge in 1 step
@@ -252,7 +253,7 @@ impl Component for MockConvergingComponent {
fn jacobian_entries(
&self,
_state: &SystemState,
_state: &StateSlice,
jacobian: &mut JacobianBuilder,
) -> Result<(), ComponentError> {
jacobian.add_entry(0, 0, 1.0);