You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -38,7 +38,7 @@ and running the following command:
38
38
39
39
with `X=11,12`.
40
40
41
-
Alternatively, if the Conda package manager is used to setup the Python environment, steps 1 and 2 can be skipped and install `mpi4py`which comes with its own MPI distribution:
41
+
Alternatively, if the Conda package manager is used to setup the Python environment, steps 1 and 2 can be skipped and `mpi4py`can be installed directly alongside the MPI distribution of choice:
42
42
43
43
```
44
44
conda install -c conda-forge mpi4py X
@@ -70,11 +70,11 @@ via the `DistributedArray` object:
70
70
import numpy as np
71
71
from pylops_mpi import DistributedArray, Partition
72
72
73
+
# Initialize DistributedArray with partition set to Scatter
73
74
nx, ny =11, 21
74
75
x = np.zeros((nx, ny), dtype=np.float64)
75
76
x[nx //2, ny //2] =1.0
76
77
77
-
# Initialize DistributedArray with partition set to Scatter
0 commit comments