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

This commit is contained in:
sjplimp
2008-06-24 23:24:37 +00:00
parent 923ee610fc
commit 80a3baf36c
2 changed files with 5 additions and 6 deletions

View File

@ -51,7 +51,8 @@ FixThermalConductivity::FixThermalConductivity(LAMMPS *lmp,
else error->all("Illegal fix thermal/conductivity command");
nbin = atoi(arg[5]);
if (nbin < 3) error->all("Illegal fix thermal/conductivity command");
if (nbin % 2 || nbin <= 2)
error->all("Illegal fix thermal/conductivity command");
// optional keywords
@ -105,8 +106,7 @@ void FixThermalConductivity::init()
// set bounds of 2 slabs in edim
// only necessary for static box, else re-computed in end_of_step()
// lo bin is always bottom bin
// if nbin even, hi bin is just above half height
// if nbin odd, hi bin straddles half height
// hi bin is just above half height
if (domain->box_change == 0) {
prd = domain->prd[edim];