-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcoordination.f
More file actions
43 lines (34 loc) · 912 Bytes
/
Copy pathcoordination.f
File metadata and controls
43 lines (34 loc) · 912 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
subroutine coordination(i)
include 'common.f'
z(i)=zz(i)
c +----------------------------+
c | Setup neighbours of atom i |
c +----------------------------+
do jj=1,num(i)
if ((dr(i,jj).gt.zlow).and.(dr(i,jj).lt.zhigh)) then
finiteforce(jj)=.true.
else
finiteforce(jj)=.false.
end if
do ind=1,3
dzdx(jj,ind)=dzz(i,jj)*dxdr(i,jj,ind)
end do
end do
c +-------------------------------------+
c | Setup neighbours-of-neighbours of i |
c +-------------------------------------+
do jj=1,num(i)
do kk=1,num(near(i,jj))
finiteforce2(jj,kk)=.false.
do ind=1,3
dzdxx(jj,kk,ind)=0.0d0
end do
end do
end do
c +-------------------------------+
c | Call sp/sp2 terms if required |
c +-------------------------------+
call dihedral(i)
call repulsion(i)
call linear(i)
end