33 double shift,
double offset,
35 double lam,
double delta,
37 double e1,
double e2,
double b1,
double b2)
38 : eps{epsilon}, sig{sigma}, cut{cutoff}, shift{shift}, offset{offset},
40 lambda{lam}, softrad{delta},
42 a1{e1}, a2{e2}, b1{b1}, b2{b2} {
44 throw std::domain_error(
"Generic LJ parameter 'epsilon' has to be >= 0");
47 throw std::domain_error(
"Generic LJ parameter 'sigma' has to be >= 0");
50 throw std::domain_error(
"Generic LJ parameter 'cutoff' has to be >= 0");
54 throw std::domain_error(
"Generic LJ parameter 'delta' has to be >= 0");
56 if (lam < 0. or lam > 1.) {
57 throw std::domain_error(
58 "Generic LJ parameter 'lam' has to be in the range [0, 1]");