1 subroutine bxread(nazwa,islice,ii,jj,kk,ll,mm,iR,ib,iparm)
4 include "DIMENSIONS.ZSCOPT"
5 include "DIMENSIONS.FREE"
8 integer IERROR,ERRCODE,STATUS(MPI_STATUS_SIZE)
11 include "COMMON.CHAIN"
12 include "COMMON.IOUNITS"
13 include "COMMON.PROTFILES"
14 include "COMMON.NAMES"
17 include "COMMON.ENEPS"
19 include "COMMON.INTERACT"
21 include "COMMON.SBRIDGE"
22 real*4 csingle(3,maxres2)
23 character*64 nazwa,bprotfile_temp
25 integer i,is,ie,j,ii,jj,k,kk,l,ll,mm,if
26 integer nrec,nlines,iscor,islice
27 double precision energ
30 double precision rmsdev,energia(0:max_ene),efree,eini,temp
31 double precision prop(maxQ)
32 integer ntot_all(0:maxprocs-1)
33 integer iparm,ib,iib,ir,nprop,nthr,nrec_slice
34 double precision etot,time
36 nrec_slice=(rec_end(iR,ib,iparm)-rec_start(iR,ib,iparm)+1)/nslice
37 is=rec_start(iR,ib,iparm)+(islice-1)*nrec_slice
38 ie=rec_start(iR,ib,iparm)+islice*nrec_slice-1
39 write (iout,*) "bxread: islice",islice," nslice",nslice,
40 & " nrec_slice",nrec_slice
41 write (iout,*) "is",is," ie",ie,"rec_start",
42 & rec_start(iR,ib,iparm)," rec_end",rec_end(iR,ib,iparm)
44 read(ientin,rec=i+1,err=101)
45 & ((csingle(l,k),l=1,3),k=1,nres),
46 & ((csingle(l,k+nres),l=1,3),k=nnt,nct),
47 & nss,(ihpb(k),jhpb(k),k=1,nss),
48 & eini,efree,rmsdev,(prop(j),j=1,nQ),iscor
51 if (mod(kk,isampl(iparm)).eq.0) then
54 & ((csingle(l,k),l=1,3),k=1,nres),
55 & ((csingle(l,k+nres),l=1,3),k=nnt,nct),
56 & nss,(ihpb(k),jhpb(k),k=1,nss),
57 & eini,efree,rmsdev,(prop(j),j=1,nQ),iR,ib,iparm
64 call int_from_cart1(.false.)
65 write (iout,*) "Writing conformation, record",jj
66 write (iout,*) "Cartesian coordinates"
67 write (iout,'(8f10.5)') ((c(j,i),j=1,3),i=1,nres)
68 write (iout,'(8f10.5)') ((c(j,i+nres),j=1,3),i=nnt,nct)
69 write (iout,*) "Internal coordinates"
70 write (iout,'(8f10.4)') (vbld(k),k=nnt+1,nct)
71 write (iout,'(8f10.4)') (vbld(k),k=nres+nnt,nres+nct)
72 write (iout,'(8f10.4)') (rad2deg*theta(k),k=3,nres)
73 write (iout,'(8f10.4)') (rad2deg*phi(k),k=4,nres)
74 write (iout,'(8f10.4)') (rad2deg*alph(k),k=2,nres-1)
75 write (iout,'(8f10.4)') (rad2deg*omeg(k),k=2,nres-1)
76 write (iout,'(16i5)') nss,(ihpb(k),jhpb(k),k=1,nss)
77 write (iout,'(f10.5,i5)') rmsdev,iscor
83 write (iout,*) ii," conformations read from DA file ",
85 write (iout,*) kk," conformations read so far, slice",islice
86 write (iout,*) jj," conformations stored so far, slice",islice