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

Add option to suppress unused varshks warning #62

Merged
merged 2 commits into from
May 14, 2024
Merged

Conversation

jasonjensen
Copy link
Contributor

This is a small fix that adds an option to the model unused_varshks which takes a vector of symbols (or in theory another iterable).

Any symbols within this vector will no longer throw a warning when @initialize or @reinitialize is called and the corresponding variable is not being used in the model equations.

This solves an issue when some variables are needed for the steadystate but are not present in the model equations.

Tests were also added to verify this behavior.

We may want to change the naming convention here.

@jasonjensen jasonjensen requested a review from Nic2020 April 2, 2024 15:19
@bbejanov bbejanov merged commit f281071 into master May 14, 2024
9 checks passed
@bbejanov bbejanov deleted the nowarn-option branch May 14, 2024 19:57
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