Skip to content

Commit

Permalink
fixing comment style to match rest of course
Browse files Browse the repository at this point in the history
  • Loading branch information
Edward-RSE committed Jul 31, 2024
1 parent fdd8855 commit b3efa3a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions _episodes/03-communicating-data.md
Original file line number Diff line number Diff line change
Expand Up @@ -112,10 +112,10 @@ we can only them as arguments in MPI functions.
> need to change the type, you would only have to do it in one place, e.g.:
>
> ```c
> /* define constants for your data types */
> // define constants for your data types
> #define MPI_INT_TYPE MPI_INT
> #define INT_TYPE int
> /* use them as you would normally */
> // use them as you would normally
> INT_TYPE my_int = 1;
> ```
>
Expand Down Expand Up @@ -157,7 +157,7 @@ functions like `MPI_Comm_rank()` to get the rank number,
```c
int my_rank;
MPI_Comm_rank(MPI_COMM_WORLD, &my_rank); /* MPI_COMM_WORLD is the communicator the rank belongs to */
MPI_Comm_rank(MPI_COMM_WORLD, &my_rank); // MPI_COMM_WORLD is the communicator the rank belongs to
```
In addition to `MPI_COMM_WORLD`, we can make sub-communicators and distribute ranks into them. Messages can only be sent
Expand Down

0 comments on commit b3efa3a

Please sign in to comment.