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

Avoid segfault in CVODES CVAdataStore #1351

Merged
merged 1 commit into from
Dec 2, 2020
Merged

Avoid segfault in CVODES CVAdataStore #1351

merged 1 commit into from
Dec 2, 2020

Conversation

dweindl
Copy link
Member

@dweindl dweindl commented Dec 1, 2020

Does not fix the root cause of occassional segfaults, but turns them into exceptions / integration failues.

Does not fix the root cause of occassional segfaults, but turns them into exceptions / integration failues.
@codecov
Copy link

codecov bot commented Dec 1, 2020

Codecov Report

Merging #1351 (2ec3343) into develop (156d37a) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff            @@
##           develop    #1351   +/-   ##
========================================
  Coverage    78.44%   78.44%           
========================================
  Files           62       62           
  Lines         9797     9797           
========================================
  Hits          7685     7685           
  Misses        2112     2112           
Flag Coverage Δ
cpp 75.32% <ø> (ø)
petab 70.91% <ø> (ø)
python 66.39% <ø> (ø)

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

@sonarcloud
Copy link

sonarcloud bot commented Dec 1, 2020

Kudos, SonarCloud Quality Gate passed!

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

No Coverage information No Coverage information
No Duplication information No Duplication information

@dweindl dweindl merged commit a13db57 into develop Dec 2, 2020
@dweindl dweindl deleted the fix_segfault branch December 2, 2020 10:19
@FFroehlich FFroehlich mentioned this pull request Dec 12, 2020
FFroehlich added a commit that referenced this pull request Dec 15, 2020
* Fix: Don't require code context for call stack (fixes #1347) (#1348)

* Fix Intel compiler warnings (#1349)

'type qualifier on return type is meaningless'

Closes #1346

* Avoid segfault in CVODES CVAdataStore (#1351)

Does not fix the root cause of occassional segfaults, but turns them into exceptions / integration failues.

* CI: Move windows tests from TravisCI to GitHub Actions (#1354)

Closes #1350

Removes obsolete .travis.yml

* Fix cxxcode import for SymPy 1.6 (#1356)

* Piecewise to heaviside (#1352)

* parse piecewise into heaviside functions

* Add Events as model quantity, parse Heavisides slightly differently

* bugfix

* rename symbols of root to h and switch order of functions to make sure h is known when dxdotdx_explicit is generated, to have the header file of h included

* rename root symbols to HeavisideFunction_ to have things more indicative

* tell AMICI about root, stau, and deltasx functions

* heavisides without sensitivities should be working

* need to change generation of stau to generration via inverse function theorem

* compute stau via inverse function theorem

* added functionality for deltasx, but segfaulting

* bugfixing

* remove debug output

* get indentations right

* Update python/amici/ode_export.py

Co-authored-by: Fabian Fröhlich <[email protected]>

* Update python/amici/ode_export.py

Co-authored-by: Fabian Fröhlich <[email protected]>

* Update python/amici/ode_export.py

Co-authored-by: Fabian Fröhlich <[email protected]>

* Update python/amici/ode_export.py

Co-authored-by: Fabian Fröhlich <[email protected]>

* Update python/amici/ode_export.py

Co-authored-by: Fabian Fröhlich <[email protected]>

* Update python/amici/sbml_import.py

Co-authored-by: Fabian Fröhlich <[email protected]>

* add a test for trajectories

* fix sroot and test

* cosmetic

* add analytical expressions for sensitivities

* add test for a complex condition

* add test for many conditions

* fix test

* improve documentation

* rename tests and refactor test for iterated piecewise, to check SBML piecewise logic a bit further

* cleanup for code review

* further cleanup

* quarter way done with parsing heavisides into piecewise

* fix logic parsing

* monkeypatch sympy printer

* enable more tests

* implement denesting of piecewise

* fix SBML nonsense

* fix boolean triggers

* simplify logic checks

* fix code smells

* add events to variable prototypes

* cleanup

* report details for skipped tests durin GHA run

* better skip printing

* resubstitution of non-optimized RHS into stau

* add sensitivity tests

* refactor tests

* remove skipping display code

* update test stats

* Update python/amici/ode_export.py

* Apply suggestions from code review

Co-authored-by: Daniel Weindl <[email protected]>

* document and simplify _collect_heaviside_roots

* address review comments

* reduce complexity

* misplaced docstrings

Co-authored-by: Fabian Fröhlich <[email protected]>
Co-authored-by: dilpath <[email protected]>
Co-authored-by: Daniel Weindl <[email protected]>

* restore support for species references (#1358)

* restore support for species references

* fixup and improve error message

* extend support for sbml functions (#1357)

* add more function mappings

* fixup min/max

* fix rem

* add Mod to unsupported functions

* more trigonometric functions

* more functions, fix xref

* fix xref with init assignment

* extend unsupported functions

* fix plus with empty arguments, update statistics

* update test stats

* fix stats

* Refactor: introduce import_utils.py (#1361)

* Refactor: introduce import_utils.py

To collect format-independent functions for model import.

* add additional file to SBML Testsuite path check

* Include new module in doc

Co-authored-by: Fabian Fröhlich <[email protected]>

* CI: Show all compiler warnings and treat as error (#1362)

* CI: Show all compiler errors and treat as error

Closes #1167

* Fix unused arguments

* Fix deprecated-copy

* Fix NVector (non-)const mess

* Fix CMake deprecation warning

* Fix doxygen

* Fix some typos

* Simplify / reduce number of const_casts

* Add support for different noise models for PySB import (#1360)

* Add support for different noise models for PySB import

.. as already the case for SBML import.

Closes #1176

* Respect noise model selection for PySB-PEtab import (#1339)

* doc, import

* Respect observable transformation for PySB-PEtab import (Fixes #1339)

* Set ODEModel._has_quadratic_nllh

Co-authored-by: Fabian Fröhlich <[email protected]>

* version bump

* fix some code smells to trigger GHA builds again?

* update docker to 20.04

* pin breathe

Co-authored-by: Daniel Weindl <[email protected]>
Co-authored-by: Lorenzo Contento <[email protected]>
Co-authored-by: Paul Stapor <[email protected]>
Co-authored-by: dilpath <[email protected]>
dweindl added a commit that referenced this pull request Feb 1, 2021
Re-apply #1351 to updated sundials
dweindl added a commit that referenced this pull request Feb 2, 2021
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.

2 participants