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

Patch for undefined behaviour (nullpointer reference). #26

Open
wants to merge 1 commit into
base: vlasiator-version
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions dccrg_mpi_support.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,10 @@ class All_Gather
total_send_count += (uint64_t) send_count;
}

if(total_send_count == 0) {
//Early abort if there is nothing to communicate.
return;
}
std::vector<uint64_t> temp_result(total_send_count, std::numeric_limits<uint64_t>::max());

// give a sane address to gatherv also when nothing to send
Expand Down