The post_force callback should also be called during "setup"

This commit is contained in:
Axel Kohlmeyer
2024-07-11 13:32:56 -04:00
parent 9e917412c9
commit c1c1d32136
2 changed files with 8 additions and 0 deletions

View File

@ -105,6 +105,13 @@ void FixPythonInvoke::end_of_step()
/* ---------------------------------------------------------------------- */
void FixPythonInvoke::setup(int vflag)
{
post_force(vflag);
}
/* ---------------------------------------------------------------------- */
void FixPythonInvoke::post_force(int vflag)
{
if (update->ntimestep % nevery != 0) return;