must not set to unique if request is for skip list. only check for smallest pair cutoff.
This commit is contained in:
@ -1193,9 +1193,8 @@ void Neighbor::morph_unique()
|
|||||||
for (int i = 0; i < nrequest; i++) {
|
for (int i = 0; i < nrequest; i++) {
|
||||||
irq = requests[i];
|
irq = requests[i];
|
||||||
|
|
||||||
// if cut flag set by requestor and cutoff is different than default,
|
// if cut flag set by requestor and cutoff is larger than minimum for default,
|
||||||
// or pair-wise cutoff is different for different pairs of atoms types
|
// and the list is not a skip list, set unique flag; otherwise unset cut flag
|
||||||
// set unique flag, otherwise unset cut flag
|
|
||||||
// this forces Pair,Stencil,Bin styles to be instantiated separately
|
// this forces Pair,Stencil,Bin styles to be instantiated separately
|
||||||
// also add skin to cutoff of perpetual lists
|
// also add skin to cutoff of perpetual lists
|
||||||
|
|
||||||
@ -1203,7 +1202,7 @@ void Neighbor::morph_unique()
|
|||||||
if (!irq->occasional)
|
if (!irq->occasional)
|
||||||
irq->cutoff += skin;
|
irq->cutoff += skin;
|
||||||
|
|
||||||
if ((irq->cutoff != cutneighmax) || (cutneighmin != cutneighmax)) {
|
if ((irq->cutoff > cutneighmin) && !irq->skip) {
|
||||||
irq->unique = 1;
|
irq->unique = 1;
|
||||||
} else {
|
} else {
|
||||||
irq->cut = 0;
|
irq->cut = 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user