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

This commit is contained in:
sjplimp
2006-11-13 22:17:52 +00:00
parent 458ec376dd
commit ecaf8734e1
13 changed files with 164 additions and 478 deletions

View File

@ -15,6 +15,7 @@
#include "string.h"
#include "region.h"
#include "domain.h"
#include "lattice.h"
#include "error.h"
/* ---------------------------------------------------------------------- */
@ -70,13 +71,13 @@ void Region::options(int narg, char **arg)
// setup scaling
if (scaleflag && strcmp(domain->lattice_style,"none") == 0)
if (scaleflag && domain->lattice == NULL)
error->all("Use of region with undefined lattice");
if (scaleflag) {
xscale = domain->xlattice;
yscale = domain->ylattice;
zscale = domain->zlattice;
xscale = domain->lattice->xlattice;
yscale = domain->lattice->ylattice;
zscale = domain->lattice->zlattice;
}
else xscale = yscale = zscale = 1.0;
}