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

Fix Model::setStateIsNonNegative #1736

Merged
merged 2 commits into from
Mar 18, 2022
Merged

Fix Model::setStateIsNonNegative #1736

merged 2 commits into from
Mar 18, 2022

Conversation

dweindl
Copy link
Member

@dweindl dweindl commented Mar 18, 2022

Fixes a logic error when handling all-false input for models with conservation laws.
And adds at test.

Fixes a logic error when handling all-false input for models with conservation laws.
And adds at test.
src/model.cpp Outdated Show resolved Hide resolved
Co-authored-by: Fabian Fröhlich <fabian_froehlich@hms.harvard.edu>
@codecov
Copy link

codecov bot commented Mar 18, 2022

Codecov Report

Merging #1736 (c9ca2c5) into develop (af0cf5f) will increase coverage by 0.09%.
The diff coverage is 83.33%.

Impacted file tree graph

@@             Coverage Diff             @@
##           develop    #1736      +/-   ##
===========================================
+ Coverage    77.75%   77.84%   +0.09%     
===========================================
  Files           73       73              
  Lines        11392    11395       +3     
===========================================
+ Hits          8858     8871      +13     
+ Misses        2534     2524      -10     
Flag Coverage Δ
cpp 74.73% <83.33%> (+0.14%) ⬆️
petab 62.51% <ø> (ø)
python 68.20% <ø> (ø)

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

Impacted Files Coverage Δ
src/model.cpp 86.02% <83.33%> (+0.59%) ⬆️
src/solver_cvodes.cpp 69.41% <0.00%> (+0.18%) ⬆️
src/exception.cpp 80.64% <0.00%> (+6.45%) ⬆️

@sonarcloud
Copy link

sonarcloud bot commented Mar 18, 2022

SonarCloud Quality Gate failed.    Quality Gate failed

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

@FFroehlich FFroehlich merged commit 93798eb into develop Mar 18, 2022
@FFroehlich FFroehlich deleted the fix_statenonneg branch March 18, 2022 19:52
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