store number of checkpoints in output file
added checkpoint output in net cdf files