git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@492 f3b2605a-c512-4ea7-a41b-209d697bcdaa

This commit is contained in:
sjplimp
2007-04-19 23:26:48 +00:00
parent aba05c2cf9
commit 4f1710bfcf
4 changed files with 107 additions and 3 deletions

View File

@ -21,6 +21,8 @@
using namespace LAMMPS_NS;
enum{INDEX,LOOP,EQUAL,WORLD,UNIVERSE,ULOOP,ATOM}; // also in variable.cpp
/* ---------------------------------------------------------------------- */
ComputeVariableAtom::ComputeVariableAtom(LAMMPS *lmp, int narg, char **arg) :
@ -53,13 +55,11 @@ ComputeVariableAtom::~ComputeVariableAtom()
void ComputeVariableAtom::init()
{
// set ivariable used by this compute
// set ivariable used by this compute and check if it exists
ivariable = input->variable->find(varname);
if (ivariable < 0)
error->all("Could not find compute variable name");
// test if variable of correct ATOM type
}
/* ---------------------------------------------------------------------- */