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

This commit is contained in:
sjplimp
2012-04-10 15:02:16 +00:00
parent e75bdb13f0
commit fb1c3d6019
8 changed files with 102 additions and 42 deletions

View File

@ -313,6 +313,15 @@ Lattice::~Lattice()
int Lattice::orthogonal()
{
double a = orientx[0]*orienty[0] + orientx[1]*orienty[1] +
orientx[2]*orienty[2];
double b = orienty[0]*orientz[0] + orienty[1]*orientz[1] +
orienty[2]*orientz[2];
double c = orientx[0]*orientz[0] + orientx[1]*orientz[1] +
orientx[2]*orientz[2];
printf("ABC %g %g %g\n",a,b,c);
if (orientx[0]*orienty[0] + orientx[1]*orienty[1] +
orientx[2]*orienty[2]) return 0;
if (orienty[0]*orientz[0] + orienty[1]*orientz[1] +