ATB-UQ / PyThinFilm

GNU General Public License v3.0
7 stars 1 forks source link

Move cycle logic into a member function #7

Closed ssande7 closed 1 year ago

ssande7 commented 1 year ago

This patch moves the cycle code into a member function to make it simple and convenient to run cycle-by-cycle from other code which might be doing extra things between cycles (e.g. in my case a job server which might want to finish the current cycle cleanly to possibly resume later, but switch to a different simulation if the user has changed their config).

It also includes a typo fix for termostat_*_list -> thermostat_*_list variables in the .mdp template. Note this could be breaking for people with a custom .mdp template (they'd also need to fix the typo in their file), so maybe a version bump is warranted.

Tests all passing.