9 |
|
!! @author Matthew Meineke |
10 |
|
!! @author Christopher Fennel |
11 |
|
!! @author J. Daniel Gezelter |
12 |
< |
!! @version $Id: calc_sticky_pair.F90,v 1.2 2003-03-24 21:55:34 gezelter Exp $, $Date: 2003-03-24 21:55:34 $, $Name: not supported by cvs2svn $, $Revision: 1.2 $ |
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 |
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 |
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 |