Skip to content
Snippets Groups Projects
Commit 91518acc authored by Xin Li's avatar Xin Li
Browse files

updated READMD for lab1

parent 4b04c4e4
No related branches found
No related tags found
No related merge requests found
...@@ -98,11 +98,11 @@ Hint: Although this can be done with different kinds of sends and receives, use ...@@ -98,11 +98,11 @@ Hint: Although this can be done with different kinds of sends and receives, use
One issue that you need to consider is that of internal domain boundaries. Figure 1 shows the "left-right" domain decomposition described above. Each cell needs information from all adjacent cells to determine its new state. With domain decomposition, some of the required cells no longer are available on the local processor. A common way to tackle this problem is through the use of ghost cells. In the current example, a column of ghost cells is added to the right side of the left domain, and a column is also added to the left side of the right domain (shown in Figure 2). After each time step, the ghost cells are filled by passing the appropriate data from the other processor. You may want to refer to the figure in the One issue that you need to consider is that of internal domain boundaries. Figure 1 shows the "left-right" domain decomposition described above. Each cell needs information from all adjacent cells to determine its new state. With domain decomposition, some of the required cells no longer are available on the local processor. A common way to tackle this problem is through the use of ghost cells. In the current example, a column of ghost cells is added to the right side of the left domain, and a column is also added to the left side of the right domain (shown in Figure 2). After each time step, the ghost cells are filled by passing the appropriate data from the other processor. You may want to refer to the figure in the
[background on the "Game of Life"](Game_of_life.md) to see how to fill the other ghost cells. [background on the "Game of Life"](Game_of_life.md) to see how to fill the other ghost cells.
<img src="lr_decomp.jpg" alt="Figure 1" width="400px"/>
Figure 1. Left-right domain decomposition. Figure 1. Left-right domain decomposition.
<img src="lr_decomp.jpg" alt="Figure 1" width="400px"/>
<img src="ghost.jpg" alt="Figure 2" width="400px"/>
Figure 2. Ghost cells. Figure 2. Ghost cells.
<img src="ghost.jpg" alt="Figure 2" width="400px"/>
**Your Challenge** **Your Challenge**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment