Create writeGradP.H