only allow "lj" and "real" units for now
This commit is contained in:
@ -289,6 +289,8 @@ void FixPolarizeBEMGMRES::setup(int /*vflag*/)
|
|||||||
epsilon0e2q = 1.0;
|
epsilon0e2q = 1.0;
|
||||||
if (strcmp(update->unit_style, "real") == 0)
|
if (strcmp(update->unit_style, "real") == 0)
|
||||||
epsilon0e2q = 0.0795776 / force->qqrd2e;
|
epsilon0e2q = 0.0795776 / force->qqrd2e;
|
||||||
|
else if (strcmp(update->unit_style, "lj") != 0)
|
||||||
|
error->all(FLERR, "Only unit styles 'real' and 'lj' are supported");
|
||||||
|
|
||||||
first = 1;
|
first = 1;
|
||||||
compute_induced_charges();
|
compute_induced_charges();
|
||||||
|
|||||||
@ -195,6 +195,8 @@ void FixPolarizeBEMICC::setup(int /*vflag*/)
|
|||||||
epsilon0e2q = 1.0;
|
epsilon0e2q = 1.0;
|
||||||
if (strcmp(update->unit_style, "real") == 0)
|
if (strcmp(update->unit_style, "real") == 0)
|
||||||
epsilon0e2q = 0.0795776 / force->qqrd2e;
|
epsilon0e2q = 0.0795776 / force->qqrd2e;
|
||||||
|
else if (strcmp(update->unit_style, "lj") != 0)
|
||||||
|
error->all(FLERR, "Only unit styles 'lj' and 'real' are supported");
|
||||||
|
|
||||||
compute_induced_charges();
|
compute_induced_charges();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user