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

This commit is contained in:
sjplimp
2008-03-18 20:20:01 +00:00
parent d260cccc86
commit 4ca648bb1e
7 changed files with 66 additions and 10 deletions

View File

@ -209,8 +209,8 @@ Lattice::Lattice(LAMMPS *lmp, int narg, char **arg) : Pointers(lmp)
error->all("Lattice orient vectors are not orthogonal");
if (!right_handed())
error->all("Lattice orient vectors are not right-handed");
if (colinear())
error->all("Lattice primitive vectors are colinear");
if (collinear())
error->all("Lattice primitive vectors are collinear");
if (dimension == 2) {
if (origin[2] != 0.0)
@ -321,10 +321,10 @@ int Lattice::right_handed()
}
/* ----------------------------------------------------------------------
check colinearity of each pair of primitive vectors
check collinearity of each pair of primitive vectors
------------------------------------------------------------------------- */
int Lattice::colinear()
int Lattice::collinear()
{
double vec[3];
cross(a1,a2,vec);