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

This commit is contained in:
sjplimp
2009-07-02 20:53:24 +00:00
parent f4cc5550f7
commit 6346e48601
5 changed files with 7 additions and 62 deletions

View File

@ -174,10 +174,9 @@ double ComputePressure::compute_scalar()
double t;
if (keflag) {
if (!(temperature->invoked_flag & INVOKED_SCALAR)) {
if (temperature->invoked_scalar == update->ntimestep)
t = temperature->compute_scalar();
temperature->invoked_flag |= INVOKED_SCALAR;
} else t = temperature->scalar;
else t = temperature->scalar;
}
if (dimension == 3) {
@ -216,10 +215,8 @@ void ComputePressure::compute_vector()
double *ke_tensor;
if (keflag) {
if (!(temperature->invoked_flag & INVOKED_VECTOR)) {
if (temperature->invoked_vector != update->ntimestep)
temperature->compute_vector();
temperature->invoked_flag |= INVOKED_VECTOR;
}
ke_tensor = temperature->vector;
}