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