Skip to content

Commit b73355e

Browse files
CHG: automatically remove checkpoint file once done to save disk space
1 parent 0907848 commit b73355e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/c/classes/FemModel.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -654,6 +654,10 @@ void FemModel::RestartAD(int step){ /*{{{*/
654654
/*Read files*/
655655
this->Restart(1);
656656

657+
/*Delete checkpoint file to save disk space*/
658+
_printf0_(" == deleting file "<<restartfilename<<"\n");
659+
std::remove(restartfilename);
660+
657661
/*Clean up and return*/
658662
xDelete<char>(restartfilename);
659663
}/*}}}*/

0 commit comments

Comments
 (0)