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

Comparing trunk/OOPSE/libmdtools/do_Forces.F90 (file contents):
Revision 571 by gezelter, Tue Jul 1 22:39:53 2003 UTC vs.
Revision 572 by mmeineke, Wed Jul 2 21:26:55 2003 UTC

# Line 4 | Line 4
4  
5   !! @author Charles F. Vardeman II
6   !! @author Matthew Meineke
7 < !! @version $Id: do_Forces.F90,v 1.16 2003-07-01 22:39:53 gezelter Exp $, $Date: 2003-07-01 22:39:53 $, $Name: not supported by cvs2svn $, $Revision: 1.16 $
7 > !! @version $Id: do_Forces.F90,v 1.17 2003-07-02 21:26:55 mmeineke Exp $, $Date: 2003-07-02 21:26:55 $, $Name: not supported by cvs2svn $, $Revision: 1.17 $
8  
9   module do_Forces
10    use force_globals
# Line 608 | Line 608 | contains
608         if( .not.boxIsOrthorhombic ) then
609            ! calc the scaled coordinates.
610            
611 <          scaled = matmul(d, HmatInv)
611 >          scaled = matmul(HmatInv, d)
612            
613            ! wrap the scaled coordinates
614  
615 <          do i = 1, 3
616 <             scaled(i) = scaled(i) - anint(scaled(i))
617 <          enddo
615 >          scaled = scaled  - anint(scaled)
616 >          
617  
618            ! calc the wrapped real coordinates from the wrapped scaled
619            ! coordinates
620  
621 <          d = matmul(scaled,Hmat)
621 >          d = matmul(Hmat,scaled)
622  
623         else
624            ! calc the scaled coordinates.

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines