int smear (minout, nx, ny, nsmear) SMEAR.C Level 3
 
float *minout The input array. Returned as the smeared  output array.
int nx, ny The x and y dimensions of the array.
int nsmear The number of times the smearing process should be performed.
 
This routine  smears an input matrix nsmear times. This technique can be used to make discontinuous data suitable for contour plotting. However, smearing may not yield scientifically correct resultsójust smoother ones. On output, the smeared matrix is always copied to minout

The algorithm used is as follows:
   1/2  of the value of each grid point remains at the point.
   1/12 of the value of each grid point is placed on the nearest 4 grid points.
   1/24 of the value of each grid point is placed on the next nearest 4 grid points.
At the borders, ghost points are used so that the integral over the entire matrix will be preserved.