Added compile option to avoid writing output at checkpoints

Signed-off-by: Gaurav Kukreja <gaurav.kukreja@tum.de>