add REQ_ONESIDED flag to neighbor requests

This commit is contained in:
Steve Plimpton
2024-07-09 01:31:09 -06:00
parent e03f0ac54e
commit dc86c3b3a1
4 changed files with 8 additions and 4 deletions

View File

@ -523,9 +523,10 @@ void PairLineGranHookeHistory::init_style()
// need a granular neighbor list
if (history)
neighbor->add_request(this, NeighConst::REQ_SIZE | NeighConst::REQ_HISTORY);
neighbor->add_request(this,NeighConst::REQ_SIZE | NeighConst::REQ_ONESIDED |
NeighConst::REQ_HISTORY);
else
neighbor->add_request(this, NeighConst::REQ_SIZE);
neighbor->add_request(this, NeighConst::REQ_SIZE | NeighConst::REQ_ONESIDED);
// if history is stored and first init, create Fix to store history
// it replaces FixDummy, created in the constructor

View File

@ -512,9 +512,10 @@ void PairTriGranHookeHistory::init_style()
// need a granular neighbor list
if (history)
neighbor->add_request(this, NeighConst::REQ_SIZE | NeighConst::REQ_HISTORY);
neighbor->add_request(this, NeighConst::REQ_SIZE | NeighConst::REQ_ONESIDED |
NeighConst::REQ_HISTORY);
else
neighbor->add_request(this, NeighConst::REQ_SIZE);
neighbor->add_request(this, NeighConst::REQ_SIZE | NeighConst::REQ_ONESIDED);
// if history is stored and first init, create Fix to store history
// it replaces FixDummy, created in the constructor

View File

@ -277,6 +277,7 @@ void NeighRequest::apply_flags(int flags)
if (flags & REQ_RESPA_INOUT) { respainner = respaouter = 1; }
if (flags & REQ_RESPA_ALL) { respainner = respamiddle = respaouter = 1; }
if (flags & REQ_SSA) { ssa = 1; }
if (flags & REQ_ONESIDED) { granonesided = 1; }
// clang-format on
}

View File

@ -349,6 +349,7 @@ namespace NeighConst {
REQ_NEWTON_ON = 1 << 8,
REQ_NEWTON_OFF = 1 << 9,
REQ_SSA = 1 << 10,
REQ_ONESIDED = 1 << 11
};
} // namespace NeighConst