Skip to content

What does the set_typ_vals_ode() function do? #532

Answered by baperry2
ensonun asked this question in Q&A
Discussion options

You must be logged in to vote

This is not deprecated legacy code. set_typ_vals_ode specifies a characteristic value for each species in the chemical system, which is then used in setting absolute error tolerances for the Sundials integrators. This is can be important because the orders of magnitudes for species mass fractions can range from O(1) for major species to very very tiny for radicals, so the appropriate absolute tolerance varies from species to species.

You can see where the tolerances are set for CVode or other solvers here:

flag = CVodeSVtolerances(sundials_mem, relTol, atol);
.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@ensonun
Comment options

Answer selected by ensonun
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants