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

This commit is contained in:
sjplimp
2007-10-05 17:22:29 +00:00
parent f55630f39b
commit f213705e7f
2 changed files with 5 additions and 2 deletions

View File

@ -1294,7 +1294,10 @@ void Thermo::compute_etail()
void Thermo::compute_vol() void Thermo::compute_vol()
{ {
dvalue = domain->xprd * domain->yprd * domain->zprd; if (domain->dimension == 3)
dvalue = domain->xprd * domain->yprd * domain->zprd;
else
dvalue = domain->xprd * domain->yprd;
} }
/* ---------------------------------------------------------------------- */ /* ---------------------------------------------------------------------- */

View File

@ -26,7 +26,7 @@ using namespace LAMMPS_NS;
Universe::Universe(LAMMPS *lmp, MPI_Comm communicator) : Pointers(lmp) Universe::Universe(LAMMPS *lmp, MPI_Comm communicator) : Pointers(lmp)
{ {
version = (char *) "22 Jun 2007"; version = (char *) "5 Oct 2007";
uworld = communicator; uworld = communicator;
MPI_Comm_rank(uworld,&me); MPI_Comm_rank(uworld,&me);