Skip to content

Commit 619b6cf

Browse files
Small update in new tape test mode for MPI gather call.
Co-authored-by: Pedro Gomes <[email protected]>
1 parent b298741 commit 619b6cf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

SU2_CFD/src/drivers/CDiscAdjMultizoneDriver.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ int CDiscAdjMultizoneDriver::TapeTest_GatherErrors(struct AD::ErrorReport& error
305305
int total_errors = 0;
306306
std::vector<int> process_error(size);
307307
SU2_MPI::Allreduce(&num_errors, &total_errors, 1, MPI_INT, MPI_SUM, SU2_MPI::GetComm());
308-
SU2_MPI::Gather(&num_errors, 1, MPI_INT, process_error.data(), 1, MPI_INT, 0, SU2_MPI::GetComm());
308+
SU2_MPI::Gather(&num_errors, 1, MPI_INT, process_error.data(), 1, MPI_INT, MASTER_NODE, SU2_MPI::GetComm());
309309

310310
if (rank == MASTER_NODE) {
311311
std::cout << "\nTotal number of detected tape inconsistencies: " << total_errors << std::endl;

0 commit comments

Comments
 (0)