Skip to content

Commit ff1663f

Browse files
committed
docs: fix simple typo, orignal -> original
There is a small typo in tutorials/introduction-to-groups-and-communicators/index.md. Should read `original` rather than `orignal`.
1 parent 3d63b08 commit ff1663f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • tutorials/introduction-to-groups-and-communicators

tutorials/introduction-to-groups-and-communicators/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ printf("WORLD RANK/SIZE: %d/%d \t ROW RANK/SIZE: %d/%d\n",
5757
MPI_Comm_free(&row_comm);
5858
```
5959

60-
The first few lines get the rank and size for the original communicator, `MPI_COMM_WORLD`. The next line does the important operation of determining the "color" of the local process. Remember that color decides to which communicator the process will belong after the split. Next, we see the all important split operation. The new thing here is that we're using the orignal rank (`world_rank`) as the key for the split operation. Since we want all of the processes in the new communicator to be in the same order that they were in the original communicator, using the original rank value makes the most sense here as it will already be ordered correctly. After that, we print out the new rank and size just to make sure it works. Your output should look something like this:
60+
The first few lines get the rank and size for the original communicator, `MPI_COMM_WORLD`. The next line does the important operation of determining the "color" of the local process. Remember that color decides to which communicator the process will belong after the split. Next, we see the all important split operation. The new thing here is that we're using the original rank (`world_rank`) as the key for the split operation. Since we want all of the processes in the new communicator to be in the same order that they were in the original communicator, using the original rank value makes the most sense here as it will already be ordered correctly. After that, we print out the new rank and size just to make sure it works. Your output should look something like this:
6161

6262
```
6363
WORLD RANK/SIZE: 0/16 ROW RANK/SIZE: 0/4

0 commit comments

Comments
 (0)