Skip to content

Commit 66df256

Browse files
authored
Merge pull request #10 from kose-y/master
Simple fixes in README.md
2 parents a1ac47d + c60ecf6 commit 66df256

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,11 @@ To execute code with MPI calls on all workers, use `@mpi_do`.
5656
`@mpi_do manager expr` executes `expr` on all processes that are part of `manager`.
5757

5858
For example:
59-
```
59+
```julia
6060
@mpi_do manager begin
61+
using MPI
6162
comm=MPI.COMM_WORLD
62-
println("Hello world, I am $(MPI.Comm_rank(comm)) of $(MPI.Comm_size(comm))"))
63+
println("Hello world, I am $(MPI.Comm_rank(comm)) of $(MPI.Comm_size(comm))")
6364
end
6465
```
6566
executes on all MPI workers belonging to `manager` only

0 commit comments

Comments
 (0)