adapt some more styles to use the new neighbor list request API

This commit is contained in:
Axel Kohlmeyer
2022-03-08 15:18:51 -05:00
parent fd73d1376a
commit 55f8bf9c51
24 changed files with 117 additions and 207 deletions

View File

@ -204,10 +204,8 @@ void ComputeRDF::init()
// (until next reneighbor), so it needs to contain atoms further
// than cutoff_user apart, just like a normal neighbor list does
if (cutflag)
neighbor->add_request(this,NeighConst::REQ_OCCASIONAL)->set_cutoff(mycutneigh);
else
neighbor->add_request(this,NeighConst::REQ_OCCASIONAL);
auto req = neighbor->add_request(this, NeighConst::REQ_OCCASIONAL);
if (cutflag) req->set_cutoff(mycutneigh);
}
/* ---------------------------------------------------------------------- */