~ubuntu-branches/debian/sid/lammps/sid

« back to all changes in this revision

Viewing changes to src/improper.cpp

  • Committer: Package Import Robot
  • Author(s): Anton Gladky
  • Date: 2013-11-20 22:41:36 UTC
  • mfrom: (1.2.2)
  • Revision ID: package-import@ubuntu.com-20131120224136-tzx7leh606fqnckm
Tags: 0~20131119.git7162cf0-1
* [e65b919] Imported Upstream version 0~20131119.git7162cf0
* [f7bddd4] Fix some problems, introduced by upstream recently.
* [3616dfc] Use wrap-and-sort script.
* [7e92030] Ignore quilt dir

Show diffs side-by-side

added added

removed removed

Lines of Context:
36
36
  maxeatom = maxvatom = 0;
37
37
  eatom = NULL;
38
38
  vatom = NULL;
 
39
  setflag = NULL;
39
40
 
40
41
  datamask = ALL_MASK;
41
42
  datamask_ext = ALL_MASK;
55
56
 
56
57
void Improper::init()
57
58
{
58
 
  if (!allocated) error->all(FLERR,"Improper coeffs are not set");
 
59
  if (!allocated && atom->nimpropertypes) 
 
60
    error->all(FLERR,"Improper coeffs are not set");
59
61
  for (int i = 1; i <= atom->nimpropertypes; i++)
60
62
    if (setflag[i] == 0) error->all(FLERR,"All improper coeffs are not set");
61
63
}