automatically enable intel neighbor list request property for intel pair styles
This commit is contained in:
@ -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");
|
||||
|
||||
Reference in New Issue
Block a user