28 inline Foam::label Foam::pairPotentialList::pairPotentialIndex
38 index = a*(2*nIds_ - a - 1)/2 +
b;
43 index =
b*(2*nIds_ -
b - 1)/2 + a;
46 if (index >
size() - 1)
49 <<
"Attempting to access a pairPotential with too high an index."
50 <<
nl <<
"a = " << a <<
", b = " <<
b <<
", index = " << index
51 <<
nl <<
"max index = " <<
size() - 1
75 return electrostaticPotential_;
label size() const
Return the number of elements in the UPtrList.
scalar rCutMaxSqr() const
const pairPotential & electrostatic() const
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
errorManip< error > abort(error &err)