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

Large initLookups function crashes on entry #132

Closed
ToddFincannon opened this issue Oct 8, 2021 · 1 comment · Fixed by #133 or #190
Closed

Large initLookups function crashes on entry #132

ToddFincannon opened this issue Oct 8, 2021 · 1 comment · Fixed by #133 or #190
Assignees
Labels
Milestone

Comments

@ToddFincannon
Copy link
Collaborator

When a model has a large number of lookups or data variables, the initLookups function can become too large and crashes on entry.

@ToddFincannon ToddFincannon added this to the 0.6.0 milestone Oct 8, 2021
@ToddFincannon ToddFincannon self-assigned this Oct 8, 2021
@ToddFincannon
Copy link
Collaborator Author

We can use chunkedFunction the same as with initConstants to break up initLookups into smaller functions. The only wrinkle is that initLookups generates C lookups for both Vensim lookups and data variables, which are implemented with lookups. To use chunkedFunction, we need to add a separate initData function that handles data variables.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment