A simple example of the heat conduction equation solved using the PETSc library.
$ cmake .
$ make
$ ./heat_conduction -d 2 -t 0 -n 101 101
where
-d - number of dimensions (2 or 3)
-t - is problem steady-state (0) or transient (1)
-n - number of grid points in each dimension