simplify more code for creating fix instances using the improved APIs

This commit is contained in:
Axel Kohlmeyer
2021-08-07 09:45:02 -04:00
parent 68c15ebf04
commit 42625a82d1
6 changed files with 24 additions and 182 deletions

View File

@ -101,8 +101,7 @@ void Hyper::command(int narg, char **arg)
// create FixEventHyper class to store event and pre-quench states
modify->add_fix("hyper_event all EVENT/HYPER");
fix_event = (FixEventHyper *) modify->fix[modify->nfix-1];
fix_event = (FixEventHyper *) modify->add_fix("hyper_event all EVENT/HYPER");
// create Finish for timing output