Skip to content

Commit 25631aa

Browse files
committed
Fix non threaded version: do not call tst_thread_get_num() here.
1 parent 5adc4c6 commit 25631aa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tst_comm.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -635,7 +635,7 @@ MPI_Comm tst_comm_getcomm (int i) {
635635

636636
CHECK_ARG (i, MPI_COMM_NULL);
637637

638-
if (tst_thread_get_num() > 0) {
638+
if (tst_thread_running() && tst_thread_get_num() > 0) {
639639
int threadId = tst_thread_get_num();
640640
return comms[i].mpi_thread_comms[threadId - 1];
641641
}

0 commit comments

Comments
 (0)