Convergence checks
The equations of opencr.solvers.diagnostics, declared on the code that implements them and checked by the tests.
relative_residual
functionsourceReturn max_i |R_i| / (sum_r |N_ir| w_r), the residual relative to the gross flow.
- residual
- conservation
- Assumes
- the residual over the gross flow through state (1 where there is none)
- the conservation error is reported (and enters the continuation's stopping test), but never raises on its own