1 subroutine pdbout(ii,temp,efree,etot,entropy,rmsdev)
2 implicit real*8 (a-h,o-z)
4 include 'DIMENSIONS.ZSCOPT'
6 include 'COMMON.INTERACT'
8 include 'COMMON.IOUNITS'
9 include 'COMMON.HEADER'
10 include 'COMMON.SBRIDGE'
12 character*1 chainid(10) /'A','B','C','D','E','F','G','H','I','J'/
14 write(ipdb,'("REMARK CONF",i8," TEMPERATURE",f7.1," RMS",0pf7.2)')
16 write (ipdb,'("REMARK DIMENSIONLESS FREE ENERGY",1pe15.5)')
18 write (ipdb,'("REMARK ENERGY",1pe15.5," ENTROPY",1pe15.5)')
28 write (ipdb,'(a)') 'TER'
33 write (ipdb,10) iatom,restyp(iti),chainid(ichain),
37 write (ipdb,20) iatom,restyp(iti),chainid(ichain),
38 & ires,(c(j,nres+i),j=1,3)
42 write (ipdb,'(a)') 'TER'
44 if (itype(i).eq.21) cycle
45 if (itype(i).eq.10 .and. itype(i+1).ne.21) then
46 write (ipdb,30) ica(i),ica(i+1)
47 else if (itype(i).ne.10 .and. itype(i+1).ne.21) then
48 write (ipdb,30) ica(i),ica(i+1),ica(i)+1
49 else if (itype(i).ne.10 .and. itype(i+1).eq.21) then
50 write (ipdb,30) ica(i),ica(i)+1
53 if (itype(nct).ne.10) then
54 write (ipdb,30) ica(nct),ica(nct)+1
57 write (ipdb,30) ica(ihpb(i)-nres)+1,ica(jhpb(i)-nres)+1
59 write (ipdb,'(a6)') 'ENDMDL'
60 10 FORMAT ('ATOM',I7,' CA ',A3,1X,A1,I4,4X,3F8.3,f15.3)
61 20 FORMAT ('ATOM',I7,' CB ',A3,1X,A1,I4,4X,3F8.3,f15.3)
62 30 FORMAT ('CONECT',8I5)
65 c------------------------------------------------------------------------------
66 subroutine MOL2out(etot,tytul)
67 C Prints the Cartesian coordinates of the alpha-carbons in the Tripos mol2
69 implicit real*8 (a-h,o-z)
71 include 'DIMENSIONS.ZSCOPT'
72 include 'COMMON.CHAIN'
73 include 'COMMON.INTERACT'
74 include 'COMMON.NAMES'
75 include 'COMMON.IOUNITS'
76 include 'COMMON.HEADER'
77 include 'COMMON.SBRIDGE'
80 character*6 res_num,pom,ucase
86 write (imol2,'(a)') '#'
88 & '# Creating user name: unres'
89 write (imol2,'(2a)') '# Creation time: ',
91 write (imol2,'(/a)') '\@<TRIPOS>MOLECULE'
92 write (imol2,'(a)') tytul
93 write (imol2,'(5i5)') nct-nnt+1,nct-nnt+nss+1,nct-nnt+nss+1,0,0
94 write (imol2,'(a)') 'SMALL'
95 write (imol2,'(a)') 'USER_CHARGES'
96 write (imol2,'(a)') '\@<TRIPOS>ATOM'
99 pom=ucase(restyp(itype(i)))
100 res_num = pom(:3)//liczba(2:)
101 write (imol2,10) i,(c(j,i),j=1,3),i,res_num,0.0
103 write (imol2,'(a)') '\@<TRIPOS>BOND'
105 write (imol2,'(i5,2i6,i2)') i-nnt+1,i-nnt+1,i-nnt+2,1
108 write (imol2,'(i5,2i6,i2)') nct-nnt+i,ihpb(i),jhpb(i),1
110 write (imol2,'(a)') '\@<TRIPOS>SUBSTRUCTURE'
113 pom = ucase(restyp(itype(i)))
114 res_num = pom(:3)//liczba(2:)
115 write (imol2,30) i-nnt+1,res_num,i-nnt+1,0
117 10 FORMAT (I7,' CA ',3F10.4,' C.3',I8,1X,A,F11.4,' ****')
118 30 FORMAT (I7,1x,A,I14,' RESIDUE',I13,' **** ****')
121 c------------------------------------------------------------------------
123 implicit real*8 (a-h,o-z)
125 include 'DIMENSIONS.ZSCOPT'
126 include 'COMMON.IOUNITS'
127 include 'COMMON.CHAIN'
129 include 'COMMON.LOCAL'
130 include 'COMMON.INTERACT'
131 include 'COMMON.NAMES'
133 write (iout,'(/a)') 'Geometry of the virtual chain.'
134 write (iout,'(7a)') ' Res ',' Dpep',' Theta',
135 & ' Phi',' Dsc',' Alpha',' Omega'
138 write (iout,'(a3,i4,6f10.3)') restyp(iti),i,vbld(i+1),
140 & rad2deg*phi(i),vbld(nres+i),rad2deg*alph(i),rad2deg*omeg(i)
144 c---------------------------------------------------------------------------
145 subroutine briefout(it,ener)
146 implicit real*8 (a-h,o-z)
148 include 'DIMENSIONS.ZSCOPT'
149 include 'COMMON.IOUNITS'
150 include 'COMMON.CHAIN'
152 include 'COMMON.LOCAL'
153 include 'COMMON.INTERACT'
154 include 'COMMON.NAMES'
156 include 'COMMON.SBRIDGE'
157 print '(a,i5)',intname,igeom
158 #if defined(AIX) || defined(PGI)
159 open (igeom,file=intname,position='append')
161 open (igeom,file=intname,access='append')
166 WRITE (igeom,180) IT,ENER,NSS,(IHPB(I),JHPB(I),I=1,NSS)
168 WRITE (igeom,180) IT,ENER,NSS,(IHPB(I),JHPB(I),I=1,9)
169 WRITE (igeom,190) (IHPB(I),JHPB(I),I=10,NSS)
171 c IF (nvar.gt.nphi) WRITE (igeom,200) (RAD2DEG*THETA(I),I=3,NRES)
172 WRITE (igeom,200) (RAD2DEG*THETA(I),I=3,NRES)
173 WRITE (igeom,200) (RAD2DEG*PHI(I),I=4,NRES)
174 c if (nvar.gt.nphi+ntheta) then
175 write (igeom,200) (rad2deg*alph(i),i=2,nres-1)
176 write (igeom,200) (rad2deg*omeg(i),i=2,nres-1)
179 180 format (I5,F12.3,I2,9(1X,2I3))
180 190 format (3X,11(1X,2I3))