X-Git-Url: http://mmka.chem.univ.gda.pl/gitweb/?a=blobdiff_plain;f=source%2Fxdrfpdb%2Fsrc%2Fxdrf2pdb-m.F;h=1fbf5af92caae2464c823cf435da997782f6a7cb;hb=52187c9365594597457799445140ea830f1141a3;hp=a12edb8b3753927f8c5e1ff262c273c11e092792;hpb=aebadf9023e437f497f92dfcf2303c16f60917c1;p=unres.git diff --git a/source/xdrfpdb/src/xdrf2pdb-m.F b/source/xdrfpdb/src/xdrf2pdb-m.F index a12edb8..1fbf5af 100644 --- a/source/xdrfpdb/src/xdrf2pdb-m.F +++ b/source/xdrfpdb/src/xdrf2pdb-m.F @@ -10,17 +10,22 @@ character*3 sequenc(maxres) character*50 tytul character*8 onethree,cfreq,cntraj,citraj + character*3 licz character*8 ucase external ucase +<<<<<<< HEAD + logical oneletter,iblnk +======= logical oneletter, iblnk +>>>>>>> aebadf9023e437f497f92dfcf2303c16f60917c1 integer rescode external rescode ifreq=1 - if (iargc().lt.3) then + if (iargc().lt.5) then print '(2a)', - & "Usage: xdrf2pdb-m one/three seqfile cxfile [freq] [pdbfile] ", - & " [ntraj] [itraj]" + & "Usage: xdrf2pdb-m one/three seqfile cxfile ntraj itraj", + & " [pdbfile] [freq]" stop endif call getarg(1,onethree) @@ -61,7 +66,7 @@ c do while (.not.(iblnk(sequenc(i+1)(1:1)) == 0)) itype(i)=rescode(i,sequenc(i),0) enddo print *,nres - print '(a3,1x)',(sequenc(i),i=1,nres) + print '(20(a3,1x))',(sequenc(i),i=1,nres) endif call getarg(3,arg) iext = index(arg,'.cx') - 1 @@ -69,28 +74,21 @@ c do while (.not.(iblnk(sequenc(i+1)(1:1)) == 0)) print *,"Error - not a cx file" stop endif - if (iargc().gt.3) then - call getarg(4,cfreq) - read (cfreq,*) ifreq - endif - if (iargc().gt.4) then - call getarg(5,pdbfile) - else - pdbfile=arg(:iext)//'.pdb' - endif + call getarg(4,cntraj) + read (cntraj,*) ntraj + call getarg(5,citraj) + read (citraj,*) itraj if (iargc().gt.5) then - call getarg(6,cntraj) - read (cntraj,*) ntraj + call getarg(6,pdbfile) else - ntraj=1 + write(licz,'(bz,i3.3)') itraj + pdbfile=arg(:iext)//'_'//licz//'.pdb' endif if (iargc().gt.6) then - call getarg(7,citraj) - read (citraj,*) itraj - else - itraj=1 + call getarg(7,cfreq) + read (cfreq,*) ifreq endif - print *,"ifreq",ifreq," ntraj",ntraj," itraj",itraj +c print *,"ifreq",ifreq," ntraj",ntraj," itraj",itraj open(9,file=pdbfile) nnt = 1 if (itype(1).eq.21) nnt = 2