Beispiel #1
0
void ImbalanceVar::init()
{
  Error *error = _lmp->error;
  Variable *variable = _lmp->input->variable;

  if (_name) {
    _id = variable->find(_name);
    if (_id < 0) {
      error->all(FLERR,"Variable name for balance weight does not exist");
    } else {
      if (variable->atomstyle(_id) == 0)
        error->all(FLERR,"Variable for balance weight has invalid style");
    }
  }
}