1 implicit real*8 (a-h,o-z)
2 integer ihpb(100),jhpb(100)
4 real*4 prec,potE,efree,rmsdev,qfrag(100)
7 character*8 ucase,cfreq
14 if (iargc().lt.2) then
16 & "Usage: xdrf2x1 cxfile conf [pdbfile]"
20 iext = index(arg,'.cx') - 1
22 print *,"Error - not a cx file"
29 if (iargc().gt.2) then
30 call getarg(3,pdbfile)
32 xfile=arg(:iext)//'.x'
36 call xdrfopen(ixdrf,arg, "r", iret)
42 call xdrf3dfcoord(ixdrf, coord, isize, prec, iret)
43 call xdrfint(ixdrf, nss, iret)
45 call xdrfint(ixdrf, ihpb(j), iret)
46 call xdrfint(ixdrf, jhpb(j), iret)
48 call xdrffloat(ixdrf, potE, iret)
51 call xdrffloat(ixdrf, efree, iret)
52 call xdrffloat(ixdrf, rmsdev, iret)
53 call xdrfint(ixdrf, iscor, iret)
55 print *,"pote",pote," efree",efree," rmsdev",rmsdev
59 write (9,'(e15.8,2e15.5,f12.5,$)') time,potE,uconst,t_bath
60 write (9,'(i4,$)') nss,(ihpb(j),jhpb(j),j=1,nss)
61 write (9,'(i4,20f7.4)') nfrag,(qfrag(i),i=1,nfrag)
62 write (9,'(8f10.5)') ((coord(k,j),k=1,3),j=1,isize)