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

Comparing trunk/OOPSE/libmdtools/calc_sticky_pair.F90 (file contents):
Revision 378 by mmeineke, Fri Mar 21 17:42:12 2003 UTC vs.
Revision 460 by chuckv, Fri Apr 4 22:22:30 2003 UTC

# Line 9 | Line 9
9   !! @author Matthew Meineke
10   !! @author Christopher Fennel
11   !! @author J. Daniel Gezelter
12 < !! @version $Id: calc_sticky_pair.F90,v 1.1.1.1 2003-03-21 17:42:12 mmeineke Exp $, $Date: 2003-03-21 17:42:12 $, $Name: not supported by cvs2svn $, $Revision: 1.1.1.1 $
12 > !! @version $Id: calc_sticky_pair.F90,v 1.4 2003-04-04 22:22:30 chuckv Exp $, $Date: 2003-04-04 22:22:30 $, $Name: not supported by cvs2svn $, $Revision: 1.4 $
13  
14   module sticky_pair
15  
16    use force_globals
17    use definitions
18 +  use simulation
19   #ifdef IS_MPI
20    use mpiSimulation
21   #endif
# Line 74 | Line 75 | contains
75      real (kind=dp), intent(inout) :: rij, r2
76      real (kind=dp), dimension(3), intent(in) :: d
77      real (kind=dp) :: pot
78 <    real (kind=dp), dimension(:,:) :: A
79 <    real (kind=dp), dimension(:,:) :: f
80 <    real (kind=dp), dimension(:,:) :: t
78 >    real (kind=dp), dimension(9,getNlocal()) :: A
79 >    real (kind=dp), dimension(3,getNlocal()) :: f
80 >    real (kind=dp), dimension(3,getNlocal()) :: t
81      logical, intent(in) :: do_pot, do_stress
82  
83      real (kind=dp) :: xi, yi, zi, xj, yj, zj, xi2, yi2, zi2, xj2, yj2, zj2
# Line 92 | Line 93 | contains
93      real (kind=dp) :: fxii, fyii, fzii, fxjj, fyjj, fzjj
94      real (kind=dp) :: fxij, fyij, fzij, fxji, fyji, fzji      
95      real (kind=dp) :: fxradial, fyradial, fzradial
96 +    real (kind=dp) :: rijtest, rjitest
97        
98      if (.not.sticky_initialized) then
99         write(*,*) 'Sticky forces not initialized!'
# Line 140 | Line 142 | contains
142      xj2 = xj*xj
143      yj2 = yj*yj
144      zj2 = zj*zj
145 <    
145 >  
146      call calc_sw_fnc(rij, s, sp, dsdr, dspdr)
147      
148      wi = 2.0d0*(xi2-yi2)*zi / r3
# Line 156 | Line 158 | contains
158      wip = zif*zif*zis*zis - SSD_w0
159      wjp = zjf*zjf*zjs*zjs - SSD_w0
160      wp = wip + wjp
159
161  
162      if (do_pot) then
163   #ifdef IS_MPI
# Line 240 | Line 241 | contains
241   #endif    
242      ! Now, on to the forces:
243      
244 +    write(*,'(a4,3es12.3)') 't1= ', t(1:3,atom1)
245 +    write(*,'(a4,3es12.3)') 't2= ', t(1:3,atom2)
246 +    write(*,*)
247 +
248      ! first rotate the i terms back into the lab frame:
249  
250   #ifdef IS_MPI    

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines