Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

Re: [sundials-users] [LLNL/sundials] How to upgrade to 7: what's the new error handling mechanism? (Issue #689)

2 views
Skip to first unread message

Cody Balos

unread,
Apr 16, 2025, 5:20:41 PMApr 16
to SUNDIAL...@listserv.llnl.gov

The error handlers are now the same for all packages and are attached to the SUNContext object instead of the intergator/solver object. See this section in the docs. You would do something like,

        if ((err = SUNContext_PushErrHandler(mSunContext, sunErrHandler, this)) != SUN_SUCCESS) {
            handleSundialsError(err);
        }


Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <LLNL/sundials/issues/689/2810713654@github.com>

balos1 left a comment (LLNL/sundials#689)

The error handlers are now the same for all packages and are attached to the SUNContext object instead of the intergator/solver object. See this section in the docs. You would do something like,

        if ((err = SUNContext_PushErrHandler(mSunContext, sunErrHandler, this)) != SUN_SUCCESS) {
            handleSundialsError(err);
        }


Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <LLNL/sundials/issues/689/2810713654@github.com>



To unsubscribe from the SUNDIALS-USERS list: write to: mailto:SUNDIALS-USERS-...@LISTSERV.LLNL.GOV

Lucian Smith

unread,
Apr 17, 2025, 10:34:57 AMApr 17
to SUNDIAL...@listserv.llnl.gov

Thank you! That was enough to get me what I needed.

For posterity: the 'SUNContext_PushErrHandler' function was indeed necessary, as was changing the signature of my old 'cvodeErrHandler' function to match the new SUNLogErrHandlerFn. Final changes at sys-bio/roadrunner@24caffb


Reply to this email directly, view it on GitHub, or unsubscribe.

You are receiving this because you are subscribed to this thread.Message ID: <LLNL/sundials/issues/689/2811137740@github.com>

luciansmith left a comment (LLNL/sundials#689)

Thank you! That was enough to get me what I needed.

For posterity: the 'SUNContext_PushErrHandler' function was indeed necessary, as was changing the signature of my old 'cvodeErrHandler' function to match the new SUNLogErrHandlerFn. Final changes at sys-bio/roadrunner@24caffb


Reply to this email directly, view it on GitHub, or unsubscribe.

You are receiving this because you are subscribed to this thread.Message ID: <LLNL/sundials/issues/689/2811137740@github.com>

Reply all
Reply to author
Forward
0 new messages