9 |
|
!! @author Matthew Meineke |
10 |
|
!! @author Christopher Fennel |
11 |
|
!! @author J. Daniel Gezelter |
12 |
< |
!! @version $Id: calc_sticky_pair.F90,v 1.11 2003-07-17 20:32:24 gezelter Exp $, $Date: 2003-07-17 20:32:24 $, $Name: not supported by cvs2svn $, $Revision: 1.11 $ |
12 |
> |
!! @version $Id: calc_sticky_pair.F90,v 1.13 2003-08-27 16:16:01 tim Exp $, $Date: 2003-08-27 16:16:01 $, $Name: not supported by cvs2svn $, $Revision: 1.13 $ |
13 |
|
|
14 |
|
module sticky_pair |
15 |
|
|
32 |
|
real( kind = dp ), save :: SSD_ru = 0.0_dp |
33 |
|
real( kind = dp ), save :: SSD_rlp = 0.0_dp |
34 |
|
real( kind = dp ), save :: SSD_rup = 0.0_dp |
35 |
+ |
real( kind = dp ), save :: SSD_rbig = 0.0_dp |
36 |
|
|
37 |
|
public :: check_sticky_FF |
38 |
|
public :: set_sticky_params |
63 |
|
SSD_ru = sticky_ru |
64 |
|
SSD_rlp = sticky_rlp |
65 |
|
SSD_rup = sticky_rup |
66 |
+ |
|
67 |
+ |
if (SSD_ru .gt. SSD_rup) then |
68 |
+ |
SSD_rbig = SSD_ru |
69 |
+ |
else |
70 |
+ |
SSD_rbig = SSD_rup |
71 |
+ |
endif |
72 |
|
|
73 |
|
sticky_initialized = .true. |
74 |
|
return |
111 |
|
real (kind=dp) :: rijtest, rjitest |
112 |
|
real (kind=dp) :: radcomxi, radcomyi, radcomzi |
113 |
|
real (kind=dp) :: radcomxj, radcomyj, radcomzj |
114 |
+ |
integer :: id1, id2 |
115 |
|
|
108 |
– |
|
116 |
|
if (.not.sticky_initialized) then |
117 |
|
write(*,*) 'Sticky forces not initialized!' |
118 |
|
return |
119 |
|
endif |
120 |
|
|
121 |
< |
if ( rij .LE. SSD_rup ) then |
121 |
> |
if ( rij .LE. SSD_rbig ) then |
122 |
|
|
123 |
|
r3 = r2*rij |
124 |
|
r5 = r3*r2 |
345 |
|
f(3,atom2) = f(3,atom2) - fzradial |
346 |
|
#endif |
347 |
|
|
348 |
+ |
#ifdef IS_MPI |
349 |
+ |
id1 = tagRow(atom1) |
350 |
+ |
id2 = tagColumn(atom2) |
351 |
+ |
#else |
352 |
+ |
id1 = atom1 |
353 |
+ |
id2 = atom2 |
354 |
+ |
#endif |
355 |
+ |
|
356 |
|
if (do_stress) then |
357 |
< |
if (molMembershipList(atom1) .ne. molMembershipList(atom2)) then |
357 |
> |
if (molMembershipList(id1) .ne. molMembershipList(id2)) then |
358 |
|
|
359 |
|
! because the d vector is the rj - ri vector, and |
360 |
|
! because fxradial, fyradial, and fzradial are the |