whitespace fixup with dynamic casts
This commit is contained in:
@ -86,7 +86,7 @@ void Hyper::command(int narg, char **arg)
|
||||
} else {
|
||||
int ifix = modify->find_fix(id_fix);
|
||||
if (ifix < 0) error->all(FLERR,"Could not find fix ID for hyper");
|
||||
fix_hyper = dynamic_cast<FixHyper *>( modify->fix[ifix]);
|
||||
fix_hyper = dynamic_cast<FixHyper *>(modify->fix[ifix]);
|
||||
int dim;
|
||||
int *hyperflag = (int *) fix_hyper->extract("hyperflag",dim);
|
||||
if (hyperflag == nullptr || *hyperflag == 0)
|
||||
@ -98,7 +98,7 @@ void Hyper::command(int narg, char **arg)
|
||||
|
||||
// create FixEventHyper class to store event and pre-quench states
|
||||
|
||||
fix_event = dynamic_cast<FixEventHyper *>( modify->add_fix("hyper_event all EVENT/HYPER"));
|
||||
fix_event = dynamic_cast<FixEventHyper *>(modify->add_fix("hyper_event all EVENT/HYPER"));
|
||||
|
||||
// create Finish for timing output
|
||||
|
||||
@ -109,7 +109,7 @@ void Hyper::command(int narg, char **arg)
|
||||
|
||||
int icompute = modify->find_compute(id_compute);
|
||||
if (icompute < 0) error->all(FLERR,"Could not find compute ID for hyper");
|
||||
compute_event = dynamic_cast<ComputeEventDisplace *>( modify->compute[icompute]);
|
||||
compute_event = dynamic_cast<ComputeEventDisplace *>(modify->compute[icompute]);
|
||||
compute_event->reset_extra_compute_fix("hyper_event");
|
||||
|
||||
// reset reneighboring criteria since will perform minimizations
|
||||
|
||||
Reference in New Issue
Block a user