Skip to content

Commit 43dc8b0

Browse files
committed
Domain decomposition figure
1 parent 50acc01 commit 43dc8b0

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

mpi/heat-equation/README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
## Parallel heat equation
2+
3+
Parallelize the whole heat equation program with MPI, by dividing the grid in rows and assigning one row block to one task. A domain decomposition, that is.
4+
5+
The tasks are able to update the grid independently everywhere else than on the row boundaries – there the communication of a single row with the nearest neighbor is needed. This is realized by having additional ghost layers that contain the boundary data of the neighboring tasks. As the system is aperiodic, the outermost ranks communicate with single neighbor, and the inner ranks with the two neighbors.
6+
7+
Insert the proper MPI routines into skeleton code [skeleton.py](skeleton.py) (search for“TODO”s).
8+
9+
A schematic representation of decomposition looks like
10+
11+
![img](domain_decomposition.png)
12+
13+
Remember to update all ghost layers at each iteration.
48.3 KB
Loading

0 commit comments

Comments
 (0)