30inline Foam::label Foam::pairPotentialList::pairPotentialIndex
40 index = a*(2*nIds_ - a - 1)/2 +
b;
44 index =
b*(2*nIds_ -
b - 1)/2 + a;
47 if (index >
size() - 1)
50 <<
"Attempting to access a pairPotential with too high an index."
51 <<
nl <<
"a = " << a <<
", b = " <<
b <<
", index = " << index
52 <<
nl <<
"max index = " <<
size() - 1
76 return *electrostaticPotential_;
label size() const noexcept
The number of elements in the list.
scalar rCutMaxSqr() const
const pairPotential & electrostatic() const
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
errorManip< error > abort(error &err)
constexpr char nl
The newline '\n' character (0x0a)