Repository navigation
Analyser: coupled rate equations give a model of the type ode with no equations and no issue, the generator then crashes on it #1534
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
Open
agarny
wants to merge
8
commits into
cellml:main
Choose a base branch
from
agarny:issue1531
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
81f99e2
Analyser: report states without a rate equation as underconstrained.
agarny ea89637
Analyser: check for missing state rates even when other errors exist.
agarny 91bfdbc
Analyser: clarify the missing state rate comment and tighten its tests.
agarny 212e7cf
Merge branch 'main' into issue1531.
agarny e6f3750
Analyser: check NLA systems even when some variables are invalid.
agarny 82a0b34
Merge branch 'main' into issue1531.
agarny d2c4b31
Merge branch 'main' into issue1531
agarny 6d6b30c
Merge branch 'main' into issue1531
agarny File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
55 changes: 55 additions & 0 deletions
55
tests/resources/analyser/underconstrained_coupled_rates.cellml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,55 @@ | ||
| <?xml version='1.0' encoding='UTF-8'?> | ||
| <model name="my_model" xmlns="http://www.cellml.org/cellml/2.0#" xmlns:cellml="http://www.cellml.org/cellml/2.0#"> | ||
| <units name="per_second"> | ||
| <unit units="second" exponent="-1"/> | ||
| </units> | ||
| <component name="my_component"> | ||
| <variable name="t" units="second"/> | ||
| <variable name="x" units="dimensionless" initial_value="1"/> | ||
| <variable name="y" units="dimensionless" initial_value="2"/> | ||
| <math xmlns="http://www.w3.org/1998/Math/MathML"> | ||
| <apply> | ||
| <eq/> | ||
| <apply> | ||
| <diff/> | ||
| <bvar> | ||
| <ci>t</ci> | ||
| </bvar> | ||
| <ci>x</ci> | ||
| </apply> | ||
| <apply> | ||
| <plus/> | ||
| <cn cellml:units="per_second">1</cn> | ||
| <apply> | ||
| <diff/> | ||
| <bvar> | ||
| <ci>t</ci> | ||
| </bvar> | ||
| <ci>y</ci> | ||
| </apply> | ||
| </apply> | ||
| </apply> | ||
| <apply> | ||
| <eq/> | ||
| <apply> | ||
| <diff/> | ||
| <bvar> | ||
| <ci>t</ci> | ||
| </bvar> | ||
| <ci>y</ci> | ||
| </apply> | ||
| <apply> | ||
| <minus/> | ||
| <cn cellml:units="per_second">2</cn> | ||
| <apply> | ||
| <diff/> | ||
| <bvar> | ||
| <ci>t</ci> | ||
| </bvar> | ||
| <ci>x</ci> | ||
| </apply> | ||
| </apply> | ||
| </apply> | ||
| </math> | ||
| </component> | ||
| </model> |
66 changes: 66 additions & 0 deletions
66
tests/resources/analyser/unsuitably_constrained_coupled_rates.cellml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,66 @@ | ||
| <?xml version='1.0' encoding='UTF-8'?> | ||
| <model name="my_model" xmlns="http://www.cellml.org/cellml/2.0#" xmlns:cellml="http://www.cellml.org/cellml/2.0#"> | ||
| <units name="per_second"> | ||
| <unit units="second" exponent="-1"/> | ||
| </units> | ||
| <component name="my_component"> | ||
| <variable name="t" units="second"/> | ||
| <variable name="x" units="dimensionless" initial_value="1"/> | ||
| <variable name="y" units="dimensionless" initial_value="2"/> | ||
| <variable name="z" units="dimensionless"/> | ||
| <math xmlns="http://www.w3.org/1998/Math/MathML"> | ||
| <apply> | ||
| <eq/> | ||
| <apply> | ||
| <diff/> | ||
| <bvar> | ||
| <ci>t</ci> | ||
| </bvar> | ||
| <ci>x</ci> | ||
| </apply> | ||
| <apply> | ||
| <plus/> | ||
| <cn cellml:units="per_second">1</cn> | ||
| <apply> | ||
| <diff/> | ||
| <bvar> | ||
| <ci>t</ci> | ||
| </bvar> | ||
| <ci>y</ci> | ||
| </apply> | ||
| </apply> | ||
| </apply> | ||
| <apply> | ||
| <eq/> | ||
| <apply> | ||
| <diff/> | ||
| <bvar> | ||
| <ci>t</ci> | ||
| </bvar> | ||
| <ci>y</ci> | ||
| </apply> | ||
| <apply> | ||
| <minus/> | ||
| <cn cellml:units="per_second">2</cn> | ||
| <apply> | ||
| <diff/> | ||
| <bvar> | ||
| <ci>t</ci> | ||
| </bvar> | ||
| <ci>x</ci> | ||
| </apply> | ||
| </apply> | ||
| </apply> | ||
| <apply> | ||
| <eq/> | ||
| <ci>z</ci> | ||
| <cn cellml:units="dimensionless">1</cn> | ||
| </apply> | ||
| <apply> | ||
| <eq/> | ||
| <ci>z</ci> | ||
| <cn cellml:units="dimensionless">3</cn> | ||
| </apply> | ||
| </math> | ||
| </component> | ||
| </model> |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.