refactor/simplify code due to changes in Modify

This commit is contained in:
Axel Kohlmeyer
2021-08-06 21:30:32 -04:00
parent f23b04f9b6
commit 68c15ebf04
11 changed files with 43 additions and 79 deletions

View File

@ -121,8 +121,7 @@ void Min::init()
// create fix needed for storing atom-based quantities
// will delete it at end of run
modify->add_fix("MINIMIZE all MINIMIZE");
fix_minimize = (FixMinimize *) modify->fix[modify->nfix-1];
fix_minimize = (FixMinimize *) modify->add_fix("MINIMIZE all MINIMIZE");
// clear out extra global and per-atom dof
// will receive requests for new per-atom dof during pair init()