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

This commit is contained in:
sjplimp
2011-09-23 18:06:55 +00:00
parent 2d99de131d
commit 19e8c92a90
468 changed files with 4628 additions and 5204 deletions

View File

@ -33,21 +33,21 @@ CreateBox::CreateBox(LAMMPS *lmp) : Pointers(lmp) {}
void CreateBox::command(int narg, char **arg)
{
if (narg != 2) error->all("Illegal create_box command");
if (narg != 2) error->all(FLERR,"Illegal create_box command");
if (domain->box_exist)
error->all("Cannot create_box after simulation box is defined");
error->all(FLERR,"Cannot create_box after simulation box is defined");
if (domain->dimension == 2 && domain->zperiodic == 0)
error->all("Cannot run 2d simulation with nonperiodic Z dimension");
error->all(FLERR,"Cannot run 2d simulation with nonperiodic Z dimension");
domain->box_exist = 1;
// region check
int iregion = domain->find_region(arg[1]);
if (iregion == -1) error->all("Create_box region ID does not exist");
if (iregion == -1) error->all(FLERR,"Create_box region ID does not exist");
if (domain->regions[iregion]->bboxflag == 0)
error->all("Create_box region does not support a bounding box");
error->all(FLERR,"Create_box region does not support a bounding box");
// if region not prism:
// setup orthogonal domain