christophe petit wrote:Each process "owns" a subdomain of cells, for which it will compute updated values. The process has storage not only for these cells, which it owns, but also for a perimeter of cells, whose values need to be fetched from nearby processes. So, there are two steps. In "updateBound", processes communicate so that each supplies boundary values to neighbors and gets boundary values from neighbors. In "Explicit", the computation (stencil operation) is performed. When UpdateBound is called, neighboring processes are implicitly synchronized via the MPI_Sendrecv() calls. The computational domain is distributed among all processes. Each cell must be updated with the stencil operation. So, each process calls that computation for the cells that it owns. You should be able to get better interactivity at your school than on this mailing list. Further, your questions at school would help the instructor get feedback from the students. |
- [OMPI users] Need Help for understand heat equation 2D mp... christophe petit
- Re: [OMPI users] Need Help for understand heat equat... Eugene Loh