modernize access for fixes and computes
This commit is contained in:
@ -69,10 +69,8 @@ void ComputeClusterAtom::init()
|
||||
|
||||
neighbor->add_request(this, NeighConst::REQ_FULL | NeighConst::REQ_OCCASIONAL);
|
||||
|
||||
int count = 0;
|
||||
for (int i = 0; i < modify->ncompute; i++)
|
||||
if (strcmp(modify->compute[i]->style, "cluster/atom") == 0) count++;
|
||||
if (count > 1 && comm->me == 0) error->warning(FLERR, "More than one compute cluster/atom");
|
||||
if (modify->get_compute_by_style(style).size() > 1)
|
||||
if (comm->me == 0) error->warning(FLERR, "More than one compute {}", style);
|
||||
}
|
||||
|
||||
/* ---------------------------------------------------------------------- */
|
||||
|
||||
Reference in New Issue
Block a user