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

Avoid the use of ArrayView for Tensors in MPI::sum(). #12685

Merged
merged 1 commit into from
Aug 23, 2021

Conversation

bangerth
Copy link
Member

This is the second place where we use ArrayView for Tensor objects (the other one is fixed in #12684). As discussed in #12624, we want to avoid this.

/rebuild

Copy link
Member

@masterleinad masterleinad left a comment

Choose a reason for hiding this comment

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

Otherwise, this looks good to me as well.

include/deal.II/base/mpi.templates.h Outdated Show resolved Hide resolved
include/deal.II/base/mpi.templates.h Outdated Show resolved Hide resolved
@bangerth
Copy link
Member Author

Thanks, @masterleinad -- fixed!

Copy link
Member

@masterleinad masterleinad left a comment

Choose a reason for hiding this comment

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

Looks good to me but we should probably discuss @drwells proposal to add a Tensor::to_array member function that would avoid the boilerplate code here.

@bangerth
Copy link
Member Author

How about we merge this now and then do what you suggest as a follow-up? It doesn't become easier/less work for anyone when we try to interleave patches from different people :-)

@masterleinad
Copy link
Member

How about we merge this now and then do what you suggest as a follow-up? It doesn't become easier/less work for anyone when we try to interleave patches from different people :-)

I agree, we should just not forget to come back to this place.

@kronbichler kronbichler merged commit ad510f2 into dealii:master Aug 23, 2021
@bangerth bangerth deleted the array-view-2 branch August 23, 2021 19:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants