From b3fcdf4d82a88357a81622277afeaaa643f11b0f Mon Sep 17 00:00:00 2001
From: sjplimp <sjplimp@f3b2605a-c512-4ea7-a41b-209d697bcdaa>
Date: Tue, 2 Oct 2007 23:09:15 +0000
Subject: [PATCH] git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@921
 f3b2605a-c512-4ea7-a41b-209d697bcdaa

---
 src/fix_langevin.cpp | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/fix_langevin.cpp b/src/fix_langevin.cpp
index 237b0b2b4b..4753845af7 100644
--- a/src/fix_langevin.cpp
+++ b/src/fix_langevin.cpp
@@ -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++) {
-- 
GitLab