Skip to content

Commit

Permalink
Fix docs for low-level MPITopology constructor
Browse files Browse the repository at this point in the history
Closes #71
  • Loading branch information
jipolanco committed Jan 24, 2023
1 parent 39b611c commit c796146
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docs/src/MPITopology.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,10 @@ and pass that to `MPITopology`:
```julia
dims = (3, 4)
comm_cart = MPI.Cart_create(comm, dims)
topology = MPITopology(comm_cart)
topology = MPITopology{2}(comm_cart) # note the "{2}"!!
```
Note that in this case, one needs to indicate the number of dimensions `M` of
the decomposition (here `M = 2`).

## Types

Expand Down

0 comments on commit c796146

Please sign in to comment.