c print '(20i4)',(itype(i),i=1,nres)
do i=1,nres
#ifdef PROCOR
- if (itype(i).eq.21 .or. itype(i+1).eq.21) then
+ if (itype(i).eq.ntyp1 .or. itype(i+1).eq.ntyp1) then
#else
- if (itype(i).eq.21) then
+ if (itype(i).eq.ntyp1) then
#endif
itel(i)=0
#ifdef PROCOR
#endif
nct=nres
cd print *,'NNT=',NNT,' NCT=',NCT
- if (itype(1).eq.21) nnt=2
- if (itype(nres).eq.21) nct=nct-1
+ if (itype(1).eq.ntyp1) nnt=2
+ if (itype(nres).eq.ntyp1) nct=nct-1
if (pdbref) then
if(me.eq.king.or..not.out1file)
& write (iout,'(a,i3)') 'nsup=',nsup
do i=1,dim
tablica(i)=default
enddo
+#ifdef G77
+ aux=lancuch(:ilen(lancuch))//"="
+ iread=index(rekord,aux)
+#else
iread=index(rekord,lancuch(:ilen(lancuch))//"=")
+#endif
if (iread.eq.0) return
iread=iread+ilen(lancuch)+1
read (rekord(iread:),*,end=10,err=10) (tablica(i),i=1,dim)
do i=1,dim
tablica(i)=default
enddo
+#ifdef G77
+ aux=lancuch(:ilen(lancuch))//"="
+ iread=index(rekord,aux)
+#else
iread=index(rekord,lancuch(:ilen(lancuch))//"=")
+#endif
if (iread.eq.0) return
iread=iread+ilen(lancuch)+1
read (rekord(iread:),*,end=10,err=10) (tablica(i),i=1,dim)
include "DIMENSIONS"
include "COMMON.IOUNITS"
character*(*) source
+ character* 256 tmpfile
integer ilen
external ilen
+ tmpfile=source(:ilen(source))
write (*,*) "Moving ",source(:ilen(source)),
& " from temporary directory to working directory"
- write (*,*) "/bin/mv "//source(:ilen(source))//" "//curdir
- call system("/bin/mv "//source(:ilen(source))//" "//curdir)
+ write (*,*) "/bin/mv "//tmpfile//" "//curdir
+ call system("/bin/mv "//tmpfile//" "//curdir)
return
end
c------------------------------------------------------------------------------