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

More t is now a parameter test #989

Merged
merged 3 commits into from
Jul 21, 2024
Merged

More t is now a parameter test #989

merged 3 commits into from
Jul 21, 2024

Conversation

TorkelE
Copy link
Member

@TorkelE TorkelE commented Jul 17, 2024

Primarily in the test files. These were the last cases I could find, but there might possibly be more that I missed. Need to read through tomorrow as well to check it looks OK.

@@ -436,7 +436,8 @@ let
end

@parameters k k2
@variables s x D(x) E(s) F(s,x)
@parameters s x
Copy link
Member Author

Choose a reason for hiding this comment

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

Generally I did not merge the new independent-variable-paraemter declarations with old parameter declarations. It seems desirable to create a @independent_variables declaration or similar for these in the future, so better keep them separate for when that happens.

Copy link
Member

Choose a reason for hiding this comment

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

Sounds like that macro will happen, so we can update for it once available. For now we just want to ensure we don't get test failures or such from the change (and even if they change it to just be a warning now it would be good to avoid warnings in the test logs).

@@ -972,7 +975,8 @@ end
# Checks that various erroneous coupled system declarations yield errors.
let
@parameters p1 p2
@variables τ U1(τ) V1(t)
Copy link
Member Author

Choose a reason for hiding this comment

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

This causes a a @test_throws to go from throwing an error to not throwing an error (hence causing test failure). The reason is not directly obvious, but should be possible to figure out since I've been able to look closer at it.

Copy link
Member

Choose a reason for hiding this comment

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

Interesting.

Copy link
Member

@isaacsas isaacsas left a comment

Choose a reason for hiding this comment

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

Feel free to merge when you are happy (and I guess make a 14.0.2 release to get the docs updated).

@isaacsas
Copy link
Member

Approved conditional on the test failure getting fixed that is...

@TorkelE TorkelE merged commit 196d244 into master Jul 21, 2024
6 checks passed
@TorkelE TorkelE deleted the more_t_isa_parameter branch July 21, 2024 18:45
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.

None yet

2 participants