Skip to content

Pass recoverable error to IDAS when residual contains NaN#490

Open
jbreue16 wants to merge 1 commit intomasterfrom
feature/NANerror
Open

Pass recoverable error to IDAS when residual contains NaN#490
jbreue16 wants to merge 1 commit intomasterfrom
feature/NANerror

Conversation

@jbreue16
Copy link
Contributor

@jbreue16 jbreue16 commented Sep 26, 2025

In e.g. #379 we observed simulations that keep running. This can happen when the residual function computes NaN values but does not pass an (recoverable) error to IDAS, which is added in this PR.

todo

  • add error code
  • check performance impact

fixes #379

Update

performance benchmark was ambiguous, I suspect there is no relevant change of performance as expected.
A local run of our standard chromatography benchmarks ten times comparing the minimum required compute times showed no clear result:
convergence_comparison_log.txt
https://github.com/cadet/CADET-Verification-Output/tree/2026-01-22_16-12-00_benchmark/checkNAN_2e6179b

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Todo

Development

Successfully merging this pull request may close these issues.

Abort simulation and raise error if NaN is encountered

1 participant