/****************************************************************************
* DESCRIPTION:
* Serial HEAT2D Example - C Version
* This example is based on a simplified
* two-dimensional heat equation domain decomposition. The initial
* temperature is computed to be high in the middle of the domain and
* zero at the boundaries. The boundaries are held at zero throughout
* the simulation. During the time-stepping, an array containing two
* domains is used; these domains alternate between old data and new data.
*
* The physical region, and the boundary conditions, are suggested
by this diagram;
u = 0
+------------------+
| |
u = 100 | | u = 100
| |
+------------------+
u = 100
Interrior point :
u[Central] = (1/4) * ( u[North] + u[South] + u[East] + u[West] )
****************************************************************************/
Available version:
1-Serial
2-Parallel OpenMP
3-Parallel MPI