fix bug detected by static code analysis
This commit is contained in:
@ -771,12 +771,12 @@ void PairThreebodyTable::threebody(Param *paramijk, double rsq1, double rsq2, do
|
||||
swapped = true;
|
||||
}
|
||||
|
||||
//look up forces and energy in table belonging to parameter set paramijk
|
||||
// look up forces and energy in table belonging to parameter set paramijk
|
||||
|
||||
//only do lookup and add three-body interactions if r12 and r13 are both between rmin and rmax
|
||||
// only do lookup and add three-body interactions if r12 and r13 are both between rmin and rmax
|
||||
|
||||
if ((r12 >= (paramijk->mltable->rmin - 0.5 * dr)) &&
|
||||
(r13 <= (paramijk->mltable->rmax + 0.5 * dr)) &&
|
||||
(r12 <= (paramijk->mltable->rmax + 0.5 * dr)) &&
|
||||
(r13 >= (paramijk->mltable->rmin - 0.5 * dr)) &&
|
||||
(r13 <= (paramijk->mltable->rmax + 0.5 * dr))) {
|
||||
uf_lookup(paramijk, r12, r13, theta, f11, f12, f21, f22, f31, f32, u);
|
||||
|
||||
Reference in New Issue
Block a user