automatically enable intel neighbor list request property for intel pair styles

This commit is contained in:
Axel Kohlmeyer
2022-03-09 21:04:09 -05:00
parent 9bbd1df57b
commit 2e2bd37883
17 changed files with 34 additions and 78 deletions

View File

@ -392,13 +392,8 @@ void PairLJCutIntel::eval(const int offload, const int vflag,
void PairLJCutIntel::init_style()
{
PairLJCut::init_style();
auto request = neighbor->find_request(this);
if (force->newton_pair == 0) {
request->half = 0;
request->full = 1;
}
request->intel = 1;
if (force->newton_pair == 0)
neighbor->find_request(this)->enable_full();
fix = static_cast<FixIntel *>(modify->get_fix_by_id("package_intel"));
if (!fix) error->all(FLERR, "The 'package intel' command is required for /intel styles");