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

MPIPacker: mark buffer const in unpacker functions #5598

Merged
merged 2 commits into from
Sep 11, 2024

Conversation

akva2
Copy link
Member

@akva2 akva2 commented Sep 11, 2024

Same as OPM/opm-common#4189 but for the mpi packer. Also contains a commit that is required by the former since it is extending the mempacker (hosted here as it is only used for restart serialization and we don't want to pull in boost date_time in opm-common in case you wonder).

@bska
Copy link
Member

bska commented Sep 11, 2024

Cool. I suppose the (pertinent) MPI implementations have caught up enough that we don't need to care about #1637 or #1709 or similar.

@akva2
Copy link
Member Author

akva2 commented Sep 11, 2024

yeah, those PRs address problems related to the data, not the buffer we read the data from. The buffer read (unpack) from is already const void* in the MPI spec.

Copy link
Member

@bska bska left a comment

Choose a reason for hiding this comment

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

This looks good to me and I'll merge into master. Thanks a lot!

@bska bska merged commit ec15bad into OPM:master Sep 11, 2024
@akva2 akva2 deleted the sca_mark_unpack_buffer_const branch September 11, 2024 11:44
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