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'
35 double precision przes(3),obrot(3,3)
36 double precision ccopy(3,maxres2+2),crefcopy(3,maxres2+2)
39 c print *,"nz_start",nz_start," nz_end",nz_end
44 ccopy(k,iatom)=c(k,i+nstart_seq-nstart_sup)
45 crefcopy(k,iatom)=cref(k,i)
47 if (iz_sc.eq.1.and.iti.ne.10) then
50 ccopy(k,iatom)=c(k,nres+i+nstart_seq-nstart_sup)
51 crefcopy(k,iatom)=cref(k,nres+i)
57 c write (iout,*) 'Ccopy and CREFcopy'
58 c print '(i5,3f10.5,5x,3f10.5)',(k,(ccopy(j,k),j=1,3),
59 c & (crefcopy(j,k),j=1,3),k=1,iatom)
60 c write (iout,'(i5,3f10.5,5x,3f10.5)') (k,(ccopy(j,k),j=1,3),
61 c & (crefcopy(j,k),j=1,3),k=1,iatom)
62 c ----- end diagnostics
64 call fitsq(roznica,ccopy(1,1),crefcopy(1,1),iatom,
65 & przes,obrot,non_conv)
67 print *,'Problems in FITSQ!!! rmsd'
68 write (iout,*) 'Problems in FITSQ!!! rmsd'
69 print *,'Ccopy and CREFcopy'
70 write (iout,*) 'Ccopy and CREFcopy'
71 print '(i5,3f10.5,5x,3f10.5)',(k,(ccopy(j,k),j=1,3),
72 & (crefcopy(j,k),j=1,3),k=1,iatom)
73 write (iout,'(i5,3f10.5,5x,3f10.5)') (k,(ccopy(j,k),j=1,3),
74 & (crefcopy(j,k),j=1,3),k=1,iatom)
76 c call mpi_abort(mpi_comm_world,ierror,ierrcode)
82 drms=dsqrt(dabs(roznica))
84 c write (iout,*) "rms",drms
85 c ---- end diagnostics
89 c--------------------------------------------
90 subroutine rmsd_csa(drms)
91 implicit real*8 (a-h,o-z)
96 include 'COMMON.CHAIN'
97 include 'COMMON.IOUNITS'
98 include 'COMMON.INTERACT'
100 double precision przes(3),obrot(3,3)
101 double precision ccopy(3,maxres2+2),crefcopy(3,maxres2+2)
108 ccopy(k,iatom)=c(k,i)
109 crefcopy(k,iatom)=crefjlee(k,i)
111 if (iz_sc.eq.1.and.iti.ne.10) then
114 ccopy(k,iatom)=c(k,nres+i)
115 crefcopy(k,iatom)=crefjlee(k,nres+i)
120 call fitsq(roznica,ccopy(1,1),crefcopy(1,1),iatom,
121 & przes,obrot,non_conv)
123 print *,'Problems in FITSQ!!! rmsd_csa'
124 write (iout,*) 'Problems in FITSQ!!! rmsd_csa'
125 print *,'Ccopy and CREFcopy'
126 write (iout,*) 'Ccopy and CREFcopy'
127 print '(i5,3f10.5,5x,3f10.5)',(k,(ccopy(j,k),j=1,3),
128 & (crefcopy(j,k),j=1,3),k=1,iatom)
129 write (iout,'(i5,3f10.5,5x,3f10.5)') (k,(ccopy(j,k),j=1,3),
130 & (crefcopy(j,k),j=1,3),k=1,iatom)
132 call mpi_abort(mpi_comm_world,ierror,ierrcode)
137 drms=dsqrt(dabs(roznica))