Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update to SUNDIALS 5.8.0 #1836

Merged
merged 10 commits into from
Jul 25, 2022
Merged

Update to SUNDIALS 5.8.0 #1836

merged 10 commits into from
Jul 25, 2022

Conversation

dweindl
Copy link
Member

@dweindl dweindl commented Jul 22, 2022

@dweindl dweindl linked an issue Jul 22, 2022 that may be closed by this pull request
@dweindl dweindl requested a review from FFroehlich July 22, 2022 12:21
@codecov
Copy link

codecov bot commented Jul 22, 2022

Codecov Report

Merging #1836 (4146e11) into develop (e7b71d4) will increase coverage by 0.04%.
The diff coverage is 100.00%.

Impacted file tree graph

@@             Coverage Diff             @@
##           develop    #1836      +/-   ##
===========================================
+ Coverage    76.05%   76.09%   +0.04%     
===========================================
  Files           74       74              
  Lines        12681    12682       +1     
===========================================
+ Hits          9644     9651       +7     
+ Misses        3037     3031       -6     
Flag Coverage Δ
cpp 72.73% <100.00%> (+0.07%) ⬆️
petab 59.44% <ø> (ø)
python 68.43% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
src/solver_cvodes.cpp 70.23% <100.00%> (+0.21%) ⬆️
src/sundials_matrix_wrapper.cpp 80.16% <0.00%> (-0.41%) ⬇️
src/model.cpp 76.95% <0.00%> (-0.07%) ⬇️
src/exception.cpp 81.08% <0.00%> (+5.40%) ⬆️
src/spline.cpp 72.04% <0.00%> (+6.45%) ⬆️

@dweindl
Copy link
Member Author

dweindl commented Jul 22, 2022

FAILED test_compare_conservation_laws_sbml.py::test_adjoint_pre_and_post_equilibration
FAILED test_preequilibration.py::test_equilibration_methods_with_adjoints

Looks like this breaks state reinitialization. I don't see any related change in SUNDIALS :/

Just had to update NlsRhsFun when changing cv_f.

Copy link
Member

@FFroehlich FFroehlich left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@@ -118,6 +118,8 @@ void CVodeSolver::initSteadystate(const realtype /*t0*/, const AmiVector &/*x0*/
as re-calling init would unset solver settings. */
auto cv_mem = static_cast<CVodeMem>(solver_memory_.get());
cv_mem->cv_f = fxBdot_ss;

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe add a comment that both functions must be set for simulation to work properly and that just setting cv_mem->cv_f will result in the previous function being used as alternate Nls function?

@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

0.0% 0.0% Coverage
0.0% 0.0% Duplication

@dweindl dweindl merged commit 5d0da76 into develop Jul 25, 2022
@dweindl dweindl deleted the sundials_5.8.0 branch July 25, 2022 09:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Upgrade to SUNDIALS 5.8.0
2 participants