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

Make flatten command fail if conflicting subscripted/const equations are defined #273

Open
chrispcampbell opened this issue Oct 26, 2022 · 0 comments
Assignees

Comments

@chrispcampbell
Copy link
Contributor

Currently the flatten command will produce warnings and errors if differing/conflicting definitions of an equation are detected in different submodel files. However, we ran into a case where Vensim left an orphan definition (that was a simple, non-subscripted constant), and this conflicted with the newer definition in a separate mdl file (that was a subscripted constant), but the sde flatten command did not flag this as an error.

Example:

# in submodel1.mdl
A = 1 ~~|

# in submodel2.mdl
A[DimA] = 1 ~~|
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant