add REQ_ONESIDED flag to neighbor requests
This commit is contained in:
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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
|
||||
}
|
||||
|
||||
|
||||
@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user