Skip to content

Commit 88e5249

Browse files
committed
Fix typo
1 parent 3126858 commit 88e5249

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

docs/jacobi_tutorial.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,8 @@ run(`$(mpiexec()) -np 3 julia -e 'println("hi!")'`);
278278
# run(`$(mpiexec()) -np 3 julia --project=. filename.jl`)
279279
# ```
280280
# ### The MPI mode
281-
# Now we can call the main function, which calls the parallel Jacobi method, using `with_mpi(f)`. This expression calls function `f` "in MPI mode". Essentially, `with_mpi(f)` calls function `f` with function argument `distribute_with_mpi`. The function `distribute_with_mpi` in turn creates an `MPIArray` from a given collection and distributes its items over the ranks of the given MPI communicator `comm`. (If `comm` is not specified, the standard communicator `MPI.COMM_WORLD` is used.) The difference to the debug mode is that now a real distributed `MPIArray` is used where before `DebugArray` was employed. To switch back to debug mode, simply replace `with_mpi` with `with_debug`.
281+
# Now we can call the main function, which calls the parallel Jacobi method, using `with_mpi(main)`. This expression calls function `main` "in MPI mode". Essentially, `with_mpi(main)` calls function `main` with function argument `distribute_with_mpi`. The function `distribute_with_mpi` in turn creates an `MPIArray` from a given collection and distributes its items over the ranks of the given MPI communicator `comm`. (If `comm` is not specified, the standard communicator `MPI.COMM_WORLD` is used.)
282+
# The difference to the debug mode is that now a real distributed `MPIArray` is used where before `DebugArray` was employed. To switch back to debug mode, simply replace `with_mpi` with `with_debug`.
282283
#
283284
# Finally the whole syntax is copied in a Julia `quote` block and run with `mpiexec`.
284285

docs/src/jacobi_tutorial.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,8 @@ The command `mpiexec` launches MPI and `-np` specifies the number of processes.
326326
run(`$(mpiexec()) -np 3 julia --project=. filename.jl`)
327327
```
328328
### The MPI mode
329-
Now we can call the main function, which calls the parallel Jacobi method, using `with_mpi(f)`. This expression calls function `f` "in MPI mode". Essentially, `with_mpi(f)` calls function `f` with function argument `distribute_with_mpi`. The function `distribute_with_mpi` in turn creates an `MPIArray` from a given collection and distributes its items over the ranks of the given MPI communicator `comm`. (If `comm` is not specified, the standard communicator `MPI.COMM_WORLD` is used.) The difference to the debug mode is that now a real distributed `MPIArray` is used where before `DebugArray` was employed. To switch back to debug mode, simply replace `with_mpi` with `with_debug`.
329+
Now we can call the main function, which calls the parallel Jacobi method, using `with_mpi(main)`. This expression calls function `main` "in MPI mode". Essentially, `with_mpi(main)` calls function `main` with function argument `distribute_with_mpi`. The function `distribute_with_mpi` in turn creates an `MPIArray` from a given collection and distributes its items over the ranks of the given MPI communicator `comm`. (If `comm` is not specified, the standard communicator `MPI.COMM_WORLD` is used.)
330+
The difference to the debug mode is that now a real distributed `MPIArray` is used where before `DebugArray` was employed. To switch back to debug mode, simply replace `with_mpi` with `with_debug`.
330331

331332
Finally the whole syntax is copied in a Julia `quote` block and run with `mpiexec`.
332333

0 commit comments

Comments
 (0)