Browse Source

Fix argument parsing in MPI sendrecv bench

Philippe SWARTVAGHER 4 years ago
parent
commit
2123663f68
1 changed files with 1 additions and 1 deletions
  1. 1 1
      mpi/examples/benchs/sendrecv_bench.c

+ 1 - 1
mpi/examples/benchs/sendrecv_bench.c

@@ -54,7 +54,7 @@ int main(int argc, char **argv)
 		{
 		{
 			man();
 			man();
 		}
 		}
-		if (strcmp(argv[i], "--bidir") == 0)
+		else if (strcmp(argv[i], "--bidir") == 0)
 		{
 		{
 			bidir = 1;
 			bidir = 1;
 			printf("Communications will be full-duplex.\n");
 			printf("Communications will be full-duplex.\n");