Solving the heat diffusion equation on a grid using OpenMP and MPI