GOMC-WSU / GOMC

GOMC - GPU Optimized Monte Carlo is a parallel molecular simulation code designed for high-performance simulation of large systems
https://gomc-wsu.org
MIT License
75 stars 36 forks source link

Adds the CheckpointFreq option #455

Closed GregorySchwing closed 2 years ago

GregorySchwing commented 2 years ago

To allow the user the flexibility of choosing the ability to roughly continue or exactly continue a simulation, RestartFreq and CheckpointFreq are now separate options. However, CheckpointFreq must equal RestartFreq and one cannot use CheckpointFreq without also setting RestartFreq.

The following cases were tested:

Initial Run - Restart False Checkpoint False intitialLog.txt in.conf.txt

Continue Initial Run with Restart only - Restart True Checkpoint False; XSC/COOR files provided; Basis vectors removed from conf file restBinLog.txt rest.conf.txt

Continue Initial Run with Restart only - Restart True Checkpoint False; XSC/COOR files not provided; Basis vectors removed from conf file restNoBin.conf.txt restNoBinLog.txt

Continue Initial Run with Checkpoint - Restart True Checkpoint True chkLog.txt chk.conf.txt

Errors: Restart False Checkpoint True chkErrLog.txt chkErr.conf.txt RestartFreq != CheckpointFreq

freqErrLog.txt freqErr.conf.txt