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

Fix bug with dump file when using divisions for component state #32

Closed
ThibHlln opened this issue Apr 13, 2021 · 0 comments · Fixed by #33
Closed

Fix bug with dump file when using divisions for component state #32

ThibHlln opened this issue Apr 13, 2021 · 0 comments · Fixed by #33
Assignees
Labels
bug Something isn't working

Comments

@ThibHlln
Copy link
Member

ThibHlln commented Apr 13, 2021

The "divisions" key of _states_info is correctly used to allocate memory,
https://github.com/hydro-jules/cm4twc/blob/27deb9b9c95d968b980447865fb809c2d8f88800/cm4twc/components/component.py#L761-L773

but it is not used when creating the dumps for the states
https://github.com/hydro-jules/cm4twc/blob/27deb9b9c95d968b980447865fb809c2d8f88800/cm4twc/components/_utils/states.py#L120-L125

resulting in a broadcasting error when trying to update the dumps with state arrays
https://github.com/hydro-jules/cm4twc/blob/27deb9b9c95d968b980447865fb809c2d8f88800/cm4twc/components/_utils/states.py#L142

This needs to be fixed in create_states_dump.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

1 participant