korintje / dftbplus_restarter

Scripts to easily prepare input files to restart DFTB+ MD simulations
Creative Commons Zero v1.0 Universal
3 stars 1 forks source link

Nose-Hoover with MDRestartFrequency > 1 #5

Closed bhourahine closed 2 years ago

bhourahine commented 2 years ago

Hello,

If this thermostat is not written at every iteration:

MDRestartFrequency = 2

there is a problem with:

66, in load_thermostat iter_lines = iter_lines_list[self.iter_num] IndexError: list index out of range

korintje commented 2 years ago

Thanks for the report. I have fixed the bug in the commit https://github.com/korintje/dftbplus_restarter/commit/948441744a1521ff305c4cd457c0d6ec01717c3d and https://github.com/korintje/dftbplus_restarter/commit/11fabad686a8733961391d22cc833121d62bcb85


Tested:

bhourahine commented 2 years ago

Thanks, this seems to be fixed.