Added the ghost cell handling and cell advancing to the fortran