save and restart calculation automatically