You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you save checkpoint files every 1000 steps say, but the log outputs every 100 steps. Then if your simulation stops between at say 3500, your last checkpoint will be at 3000, and your log will be at 3500. Then if you restart using the checkpoint, as append to the original log file, it appears you go back in time from timestep 3500 -> 3000. Perhaps the 5 lines between 3000 and 3500 need to be deleted at this stage?
The text was updated successfully, but these errors were encountered:
OpenMM doesn't have any unique concept of a log file. You might choose to open a file and write information to it, perhaps with StateDataReporter or perhaps in some other way. And when restarting a simulation, you might choose to open the file in append mode. But this is really up to you. If we tried, for example, to make StateDataReporter automatically parse your existing file and identify parts to delete, that could easily lead to bad behavior and information being lost. It also isn't safe to assume that just because someone is opening a file in append mode, they're necessarily resuming from a checkpoint. The user is the only one who really knows what they want.
The solution is a more sophisticated user script. The DCDReporter in append mode would have the same problem when the checkpoints are written less frequently than the trajectory frames.
If you save checkpoint files every 1000 steps say, but the log outputs every 100 steps. Then if your simulation stops between at say 3500, your last checkpoint will be at 3000, and your log will be at 3500. Then if you restart using the checkpoint, as append to the original log file, it appears you go back in time from timestep 3500 -> 3000. Perhaps the 5 lines between 3000 and 3500 need to be deleted at this stage?
The text was updated successfully, but these errors were encountered: