ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/trunk/OOPSE/libmdtools/calc_gb.F90
(Generate patch)

Comparing trunk/OOPSE/libmdtools/calc_gb.F90 (file contents):
Revision 460 by chuckv, Fri Apr 4 22:22:30 2003 UTC vs.
Revision 483 by gezelter, Wed Apr 9 04:06:43 2003 UTC

# Line 352 | Line 352 | contains
352   #endif
353      
354      if (do_stress) then          
355 <       tau_Temp(1) = tau_Temp(1) + dUdx * d(1)
356 <       tau_Temp(2) = tau_Temp(2) + dUdx * d(2)
357 <       tau_Temp(3) = tau_Temp(3) + dUdx * d(3)
358 <       tau_Temp(4) = tau_Temp(4) + dUdy * d(1)
359 <       tau_Temp(5) = tau_Temp(5) + dUdy * d(2)
360 <       tau_Temp(6) = tau_Temp(6) + dUdy * d(3)
361 <       tau_Temp(7) = tau_Temp(7) + dUdz * d(1)
362 <       tau_Temp(8) = tau_Temp(8) + dUdz * d(2)
363 <       tau_Temp(9) = tau_Temp(9) + dUdz * d(3)
364 <       virial_Temp = virial_Temp + (tau_Temp(1) + tau_Temp(5) + tau_Temp(9))
355 >       if (molMembershipList(atom1) .ne. molMembershipList(atom2)) then
356 >          tau_Temp(1) = tau_Temp(1) + dUdx * d(1)
357 >          tau_Temp(2) = tau_Temp(2) + dUdx * d(2)
358 >          tau_Temp(3) = tau_Temp(3) + dUdx * d(3)
359 >          tau_Temp(4) = tau_Temp(4) + dUdy * d(1)
360 >          tau_Temp(5) = tau_Temp(5) + dUdy * d(2)
361 >          tau_Temp(6) = tau_Temp(6) + dUdy * d(3)
362 >          tau_Temp(7) = tau_Temp(7) + dUdz * d(1)
363 >          tau_Temp(8) = tau_Temp(8) + dUdz * d(2)
364 >          tau_Temp(9) = tau_Temp(9) + dUdz * d(3)
365 >          virial_Temp = virial_Temp + (tau_Temp(1) + tau_Temp(5) + tau_Temp(9))
366 >       endif
367      endif
368          
369      if (do_pot) then

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines