mirror of https://github.com/lammps/lammps.git
git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@921 f3b2605a-c512-4ea7-a41b-209d697bcdaa
This commit is contained in:
parent
54aba63443
commit
b3fcdf4d82
|
@ -108,6 +108,9 @@ int FixLangevin::setmask()
|
|||
|
||||
void FixLangevin::init()
|
||||
{
|
||||
if (atom->mass == NULL)
|
||||
error->all("Cannot use fix langevin without per-type mass defined");
|
||||
|
||||
// set force prefactors
|
||||
|
||||
for (int i = 1; i <= atom->ntypes; i++) {
|
||||
|
|
Loading…
Reference in New Issue