nano part 3
[unres.git] / source / cluster / unres / src / initialize.f
1       subroutine initialize
2
3 C Define constants and zero out tables.
4 C
5       include 'DIMENSIONS'
6       include 'COMMON.IOUNITS'
7       include 'COMMON.CHAIN'
8       include 'COMMON.INTERACT'
9       include 'COMMON.GEO'
10       include 'COMMON.LOCAL'
11       include 'COMMON.TORSION'
12       include 'COMMON.FFIELD'
13       include 'COMMON.SBRIDGE'
14       include 'COMMON.MCM'
15       include 'COMMON.MINIM' 
16       include 'COMMON.DERIV'
17 C
18 C The following is just to define auxiliary variables used in angle conversion
19 C
20       pi=4.0D0*datan(1.0D0)
21       dwapi=2.0D0*pi
22       dwapi3=pi/3.0D0
23       pipol=0.5D0*pi
24       deg2rad=pi/180.0D0
25       rad2deg=1.0D0/deg2rad
26       angmin=10.0D0*deg2rad
27 C Assign virtual-bond length
28       vbl=3.8D0
29       vblinv=1.0D0/vbl
30       vblinv2=vblinv*vblinv
31 C
32 C Define I/O units.
33 C
34       inp=    1
35       iout=   2
36       ipdbin= 3
37       ipdb=   7
38       igeom=  8
39       intin=  9
40       istat= 17
41       imol2= 18
42       jplot= 19
43       jstatin=10
44       jstatout=11
45 C
46 C Zero out tables.
47 C
48       do i=1,maxres2
49         do j=1,3
50           c(j,i)=0.0D0
51           dc(j,i)=0.0D0
52         enddo
53       enddo
54       do i=1,maxres
55         do j=1,3
56           xloc(j,i)=0.0D0
57         enddo
58       enddo
59 C Initialize the bridge arrays
60       ns=0
61       nss=0 
62       nhpb=0
63       do i=1,maxss
64         iss(i)=0
65       enddo
66       do i=1,maxdim
67         dhpb(i)=0.0D0
68       enddo
69       do i=1,maxres
70         ihpb(i)=0
71         jhpb(i)=0
72       enddo
73 C
74 C Initialize timing.
75 C
76       call set_timers
77       return
78       end
79 c-------------------------------------------------------------------------
80       block data chuj
81       include 'DIMENSIONS'
82       include 'COMMON.NAMES'
83       include 'COMMON.FFIELD'
84       data restyp /
85      &'CYS','MET','PHE','ILE','LEU','VAL','TRP','TYR','ALA','GLY','THR',
86      &'SER','GLN','ASN','GLU','ASP','HIS','ARG','LYS','PRO','D'/
87       data onelet /
88      &'C','M','F','I','L','V','W','Y','A','G','T',
89      &'S','Q','N','E','D','H','R','K','P','X'/
90       data potname /'LJ','LJK','BP','GB','GBV'/
91       end