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 substitution of expressions in root and stau #1784

Merged
merged 3 commits into from
Apr 21, 2022
Merged

Conversation

dilpath
Copy link
Member

@dilpath dilpath commented Apr 21, 2022

Caused an error like the following for a model

famos_cd4_root.cpp: In function ‘void amici::model_famos_cd4::root_famos_cd4(amici::realtype*, amici::realtype, const realtype*, const realtype*, const realtype*, const realtype*, const realtype*)’:
famos_cd4_root.cpp:17:15: error: ‘scaling_con_tau’ was not declared in this scope; did you mean ‘scaling_para_tau’?
   17 |     root[0] = scaling_con_tau*scaling_para_tau*tau - t;
      |               ^~~~~~~~~~~~~~~
      |               scaling_para_tau

famos_cd4_stau.cpp: In function ‘void amici::model_famos_cd4::stau_famos_cd4(amici::realtype*, amici::realtype, const realtype*, const realtype*, const realtype*, const realtype*, const realtype*, const realtype*, int, int)’:
famos_cd4_stau.cpp:22:31: error: ‘scaling_con_tau’ was not declared in this scope; did you mean ‘scaling_para_tau’?
   22 |                     stau[0] = scaling_con_tau*scaling_para_tau;
      |                               ^~~~~~~~~~~~~~~
      |                               scaling_para_tau
famos_cd4_stau.cpp:32:31: error: ‘scaling_con_tau’ was not declared in this scope; did you mean ‘scaling_para_tau’?
   32 |                     stau[0] = scaling_con_tau*scaling_para_tau;
      |                               ^~~~~~~~~~~~~~~
      |                               scaling_para_tau

@dilpath dilpath requested a review from dweindl April 21, 2022 09:47
@dweindl dweindl requested review from FFroehlich and removed request for dweindl April 21, 2022 09:56
@codecov
Copy link

codecov bot commented Apr 21, 2022

Codecov Report

Merging #1784 (a168150) into develop (b951f39) will increase coverage by 0.04%.
The diff coverage is 100.00%.

Impacted file tree graph

@@             Coverage Diff             @@
##           develop    #1784      +/-   ##
===========================================
+ Coverage    78.07%   78.11%   +0.04%     
===========================================
  Files           74       74              
  Lines        12154    12154              
===========================================
+ Hits          9489     9494       +5     
+ Misses        2665     2660       -5     
Flag Coverage Δ
cpp 75.09% <ø> (+0.06%) ⬆️
petab 60.76% <100.00%> (+0.04%) ⬆️
python 68.37% <100.00%> (ø)
sbmlsuite 86.67% <100.00%> (ø)

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

Impacted Files Coverage Δ
python/amici/ode_export.py 92.48% <100.00%> (ø)
src/solver_cvodes.cpp 70.43% <0.00%> (+0.16%) ⬆️
src/sundials_matrix_wrapper.cpp 80.53% <0.00%> (+0.44%) ⬆️
src/exception.cpp 81.08% <0.00%> (+5.40%) ⬆️

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.

👍

@sonarqubecloud
Copy link

Please retry analysis of this Pull-Request directly on SonarCloud.

@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

100.0% 100.0% Coverage
0.0% 0.0% Duplication

@dilpath dilpath merged commit fd0db58 into develop Apr 21, 2022
@dilpath dilpath deleted the fix_stau_w_sub branch April 21, 2022 19:43
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.

3 participants