Download zip Select Archive Format
Name Last Update history
File empty ..
File txt Makefile Loading commit data...
File txt README Loading commit data...
File txt concat.sh Loading commit data...
File txt mpi_heat2D.c Loading commit data...
File txt omp_heat2D.c Loading commit data...
File txt plot.py Loading commit data...
File txt ser_heat2D.c Loading commit data...

README

/****************************************************************************
 * 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