2 implicit real*8 (a-h,o-z)
4 include 'DIMENSIONS.ZSCOPT'
5 include 'DIMENSIONS.COMPAR'
6 include 'COMMON.IOUNITS'
8 include 'COMMON.SBRIDGE'
9 include 'COMMON.CONTROL'
10 include 'COMMON.COMPAR'
11 include 'COMMON.CHAIN'
12 include 'COMMON.HEADER'
13 include 'COMMON.CONTACTS1'
14 include 'COMMON.PEPTCONT'
16 write (iout,*) "proc_cont: nlevel",nlevel
18 write (iout,*) "call define_fragments"
21 write (iout,*) "call secondary2"
22 call secondary2(.true.,.false.,ncont_pept_ref,icont_pept_ref,
25 write (iout,'(80(1h=))')
26 write (iout,*) "Electrostatic contacts"
27 call contacts_between_fragments(.true.,0,ncont_pept_ref,
28 & icont_pept_ref,ncont_frag_ref(1),icont_frag_ref(1,1,1))
29 write (iout,'(80(1h=))')
30 write (iout,*) "Side chain contacts"
31 call contacts_between_fragments(.true.,0,ncont_ref,
32 & icont_ref,nsccont_frag_ref(1),isccont_frag_ref(1,1,1))
37 if (istruct(i).le.1) then
38 len_cut=max0(len_frag(i,1)*4/5,3)
39 else if (istruct(i).eq.2 .or. istruct(i).eq.4) then
40 len_cut=max0(len_frag(i,1)*2/5,3)
42 write (iout,*) "i",i," istruct",istruct(i)," ncont_frag",
43 & ncont_frag_ref(ind)," len_cut",len_cut,
44 & " icont_single",icont_single," iloc_single",iloc_single
46 if (iloc(i).gt.0) write (iout,*)
47 & "Local structure used to compare structure of fragment",i,
49 if (istruct(i).ne.3 .and. istruct(i).ne.0
50 & .and. icont_single.gt.0 .and.
51 & ncont_frag_ref(ind).ge.len_cut) then
52 write (iout,*) "Electrostatic contacts used to compare",
53 & " structure of fragment",i," to native."
56 else if (icont_single.gt.0 .and. nsccont_frag_ref(ind)
58 write (iout,*) "Side chain contacts used to compare",
59 & " structure of fragment",i," to native."
63 write (iout,*) "Contacts not used to compare",
64 & " structure of fragment",i," to native."
69 if (irms_single.gt.0 .or. isccont(i,1).eq.0
70 & .and. ielecont(i,1).eq.0) then
71 write (iout,*) "RMSD used to compare",
72 & " structure of fragment",i," to native."
75 write (iout,*) "RMSD not used to compare",
76 & " structure of fragment",i," to native."
81 if (nlevel.lt.-1) then
84 if (nlevel.gt.3) nlevel=3
97 else if (nlevel.eq.-1) then
102 isnfrag(i+1)=isnfrag(i)+nfrag(i)
106 ndigit=ndigit+2*nfrag(i)
108 write (iout,*) "ndigit",ndigit
109 if (.not.binary .and. ndigit.gt.30) then
110 write (iout,*) "Highest class too large; switching to",
111 & " binary representation."
114 write (iout,*) "isnfrag",(isnfrag(i),i=1,nlevel+1)
115 write(iout,*) "rmscut_base_up",rmscut_base_up,
116 & " rmscut_base_low",rmscut_base_low," rmsup_lim",rmsup_lim
122 length_frag=length_frag+ifrag(2,k,j)-ifrag(1,k,j)+1
126 length_frag=length_frag+len_frag(ipiece(k,j,i),1)
129 len_frag(j,i)=length_frag
130 rmscutfrag(1,j,i)=rmscut_base_up*length_frag
131 rmscutfrag(2,j,i)=rmscut_base_low*length_frag
132 if (rmscutfrag(1,j,i).lt.rmsup_lim)
133 & rmscutfrag(1,j,i)=rmsup_lim
134 if (rmscutfrag(1,j,i).gt.rmsupup_lim)
135 & rmscutfrag(1,j,i)=rmsupup_lim
138 write (iout,*) "Level",1," number of fragments:",nfrag(1)
140 write (iout,*) npiece(j,1),(ifrag(1,k,j),ifrag(2,k,j),
141 & k=1,npiece(j,1)),len_frag(j,1),rmscutfrag(1,j,1),
142 & rmscutfrag(2,j,1),n_shift(1,j,1),n_shift(2,j,1),
143 & ang_cut(j)*rad2deg,ang_cut1(j)*rad2deg,frac_min(j),
144 & nc_fragm(j,1),nc_req_setf(j,1),istruct(j)
147 write (iout,*) "Level",i," number of fragments:",nfrag(i)
149 write (iout,*) npiece(j,i),(ipiece(k,j,i),
150 & k=1,npiece(j,i)),len_frag(j,i),rmscutfrag(1,j,i),
151 & rmscutfrag(2,j,i),n_shift(1,j,i),n_shift(2,j,i),
152 & nc_fragm(j,i),nc_req_setf(j,i)