1 subroutine rms_nac_nnc(rms,frac,frac_nn,co,lprn)
2 implicit real*8 (a-h,o-z)
5 include 'COMMON.CONTACTS'
6 include 'COMMON.IOUNITS'
7 double precision przes(3),obr(3,3)
9 c call fitsq(rms,c(1,nstart_seq),cref(1,nstart_sup),nsup,przes,
13 call contact(.false.,ncont,icont,co)
14 frac=contact_fract(ncont,ncont_ref,icont,icont_ref)
15 frac_nn=contact_fract_nn(ncont,ncont_ref,icont,icont_ref)
16 if (lprn) write (iout,'(a,f8.3/a,f8.3/a,f8.3/a,f8.3)')
17 & 'RMS deviation from the reference structure:',rms,
18 & ' % of native contacts:',frac*100,
19 & ' % of nonnative contacts:',frac_nn*100,
20 & ' contact order:',co
24 c---------------------------------------------------------------------------
26 implicit real*8 (a-h,o-z)
31 include 'COMMON.CHAIN'
32 include 'COMMON.IOUNITS'
33 include 'COMMON.INTERACT'
34 include 'COMMON.CONTROL'
36 double precision przes(3),obrot(3,3)
37 double precision ccopy(3,maxres2+2),crefcopy(3,maxres2+2)
44 c print *,"nz_start",nz_start," nz_end",nz_end
45 c if (symetr.le.1) then
47 c do i=nz_start,nz_end
51 c ccopy(k,iatom)=c(k,i+nstart_seq-nstart_sup)
52 c crefcopy(k,iatom,kkk)=cref(k,i,kkk)
54 c if (iz_sc.eq.1.and.iti.ne.10) then
57 c ccopy(k,iatom)=c(k,nres+i+nstart_seq-nstart_sup)
58 c crefcopy(k,iatom,kkk)=cref(k,nres+i,kkk)
69 ccopy(k,iatom)=c(k,i+nstart_seq-nstart_sup)
70 crefcopy(k,iatom)=cref(k,i,kkk)
72 if (iz_sc.eq.1.and.iti.ne.10) then
75 ccopy(k,iatom)=c(k,nres+i+nstart_seq-nstart_sup)
76 crefcopy(k,iatom)=cref(k,nres+i,kkk)
85 c write (iout,*) 'Ccopy and CREFcopy'
86 c print '(i5,3f10.5,5x,3f10.5)',(k,(ccopy(j,k),j=1,3),
87 c & (crefcopy(j,k),j=1,3),k=1,iatom)
88 c write (iout,'(i5,3f10.5,5x,3f10.5)') (k,(ccopy(j,k),j=1,3),
89 c & (crefcopy(j,k),j=1,3),k=1,iatom)
91 c ----- end diagnostics
93 call fitsq(roznica,ccopy(1,1),crefcopy(1,1),iatom,
94 & przes,obrot,non_conv)
96 print *,'Problems in FITSQ!!! rmsd'
97 write (iout,*) 'Problems in FITSQ!!! rmsd'
98 print *,'Ccopy and CREFcopy'
99 write (iout,*) 'Ccopy and CREFcopy'
100 print '(i5,3f10.5,5x,3f10.5)',(k,(ccopy(j,k),j=1,3),
101 & (crefcopy(j,k),j=1,3),k=1,iatom)
102 write (iout,'(i5,3f10.5,5x,3f10.5)') (k,(ccopy(j,k),j=1,3),
103 & (crefcopy(j,k),j=1,3),k=1,iatom)
105 c call mpi_abort(mpi_comm_world,ierror,ierrcode)
111 c write (iout,*) "roznica", roznica,kkk
112 if (roznica.le.rminroz) rminroz=roznica
114 drms=dsqrt(dabs(rminroz))
116 c write (iout,*) "nperm,symetr", nperm,symetr
117 c ---- end diagnostics
121 c--------------------------------------------
122 subroutine rmsd_csa(drms)
123 implicit real*8 (a-h,o-z)
128 include 'COMMON.CHAIN'
129 include 'COMMON.IOUNITS'
130 include 'COMMON.INTERACT'
132 double precision przes(3),obrot(3,3)
133 double precision ccopy(3,maxres2+2),crefcopy(3,maxres2+2)
140 ccopy(k,iatom)=c(k,i)
141 crefcopy(k,iatom)=crefjlee(k,i)
143 if (iz_sc.eq.1.and.iti.ne.10) then
146 ccopy(k,iatom)=c(k,nres+i)
147 crefcopy(k,iatom)=crefjlee(k,nres+i)
152 call fitsq(roznica,ccopy(1,1),crefcopy(1,1),iatom,
153 & przes,obrot,non_conv)
155 print *,'Problems in FITSQ!!! rmsd_csa'
156 write (iout,*) 'Problems in FITSQ!!! rmsd_csa'
157 print *,'Ccopy and CREFcopy'
158 write (iout,*) 'Ccopy and CREFcopy'
159 print '(i5,3f10.5,5x,3f10.5)',(k,(ccopy(j,k),j=1,3),
160 & (crefcopy(j,k),j=1,3),k=1,iatom)
161 write (iout,'(i5,3f10.5,5x,3f10.5)') (k,(ccopy(j,k),j=1,3),
162 & (crefcopy(j,k),j=1,3),k=1,iatom)
164 call mpi_abort(mpi_comm_world,ierror,ierrcode)
169 drms=dsqrt(dabs(roznica))