 Stencil code

Stencil codes are a class of iterative kernels
which update array elements according to some fixed pattern, called a stencil.They are most commonly found in the codes of computer simulations, e.g.