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 compute_prefix_sum() for serial run #16139

Merged
merged 1 commit into from Oct 14, 2023

Conversation

peterrum
Copy link
Member

No description provided.

@peterrum peterrum merged commit a3ce1f0 into dealii:master Oct 14, 2023
15 checks passed
Comment on lines +154 to +155
if (comm == MPI_COMM_SELF)
return {0, value}; // serial triangulation
Copy link
Member

Choose a reason for hiding this comment

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

I don't think this is the right tests. You want to check whether the communicator has one process attached. It doesn't have to be MPI_COMM_SELF -- it could be MPI_COMM_WORLD or a sub-communicator, as long as it's only got one process. I think it would be better to test Utilities::MPI::n_mpi_processes(comm)==1 here.

Separately, the comment is not useful. There is no triangulation available in this function.

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

4 participants