| ²é¿´: 2820 | »Ø¸´: 6 | |||
astringentͳæ (ÖøÃûдÊÖ)
|
[½»Á÷]
¡¾ÇóÖú¡¿ÔÚ±àÒëʱ³ö´í ÒÑÓÐ5È˲ÎÓë
|
|
when i execute the program, the following error appear: At line 111 of file readmd.f90 (unit = 20, file = 'TRAJ1') Fortran runtime error: I/O past end of record on unformatted file How can solve this, please help me, thanks. |
» ²ÂÄãϲ»¶
[¸´ÊÔµ÷¼Á]Î÷ÄϿƼ¼´óѧ¹ú·À/²ÄÁϵ¼Ê¦ÍƼö
ÒѾÓÐ6È˻ظ´
»¯Ñ§¹¤³Ì321·ÖÇóµ÷¼Á
ÒѾÓÐ12È˻ظ´
211±¾£¬11408Ò»Ö¾Ô¸ÖпÆÔº277·Ö£¬ÔøÔÚÖпÆÔº×Ô¶¯»¯Ëùʵϰ
ÒѾÓÐ4È˻ظ´
²ÄÁÏר˶326Çóµ÷¼Á
ÒѾÓÐ5È˻ظ´
¶«ÄÏ´óѧ364Çóµ÷¼Á
ÒѾÓÐ5È˻ظ´
¹ú×Ô¿ÆÃæÉÏ»ù½ð×ÖÌå
ÒѾÓÐ7È˻ظ´
ҩѧ383 Çóµ÷¼Á
ÒѾÓÐ4È˻ظ´
286Çóµ÷¼Á
ÒѾÓÐ5È˻ظ´
085601Çóµ÷¼Á
ÒѾÓÐ3È˻ظ´
302Çóµ÷¼Á
ÒѾÓÐ5È˻ظ´
» ±¾Ö÷ÌâÏà¹Ø¼ÛÖµÌùÍÆ¼ö£¬¶ÔÄúͬÑùÓаïÖú:
msi2lmpµ¼ÈëMSÄ£ÐͽøÈëlammpsʱ³ö´í¡°bash: msi2lmp.exe: command not found¡±
ÒѾÓÐ0È˻ظ´
VASP5.2±àÒë³ö´íÇóÖú ¿ÒÇëÖ¸µã£¡²»Ê¤¸Ð¼¤¡«
ÒѾÓÐ2È˻ظ´
¡¾ÇóÖú¡¿½ô¼±ÇóÖúFORTRANÔËÐÐÎÊÌâ
ÒѾÓÐ2È˻ظ´
¡¾ÇóÖú¡¿Siesta°²×°±¨´í
ÒѾÓÐ3È˻ظ´
¡¾ÇóÖú¡¿VASP¼ÆËã³ö´í--ÐÂÄêµÚÒ»Ìû
ÒѾÓÐ1È˻ظ´
¡¾ÇóÖú¡¿molden±àÒë³ö´í£¬ÇóÖ¸µã
ÒѾÓÐ1È˻ظ´
¡¾ÇóÖú¡¿¿ÆÑÐÐèÒª£¬ÇëÈ˱àÁ½¸ö¹ØÓÚһάradial distribution function matlabС³ÌÐò
ÒѾÓÐ1È˻ظ´
¡¾ÇóÖú¡¿Çë½ÌÒ»¸ö¸³ÖµµÄÎÊÌ⡾ÒÑÍê½á¡¿
ÒѾÓÐ3È˻ظ´
¡¾ÇóÖú¡¿±àÒëAbinit6.4.1³ö´í
ÒѾÓÐ5È˻ظ´
¡¾ÇóÖú¡¿linuxϵͳϱàÖÆ³ÌÐòºó£¬ÔÚÁ´½ÓÉú³É¿ÉÖ´ÐÐÎļþʱ³ö´íÔõô»ØÊ£¿
ÒѾÓÐ1È˻ظ´
¡¾ÕûÀí¡¿¡¶ÌáÎʵÄÖǻۡ·¡ª¡ªÏ׸øÄÇЩ²»»áÌáÎʵÄÈË
ÒѾÓÐ78È˻ظ´
¡¾ÇóÖú¡¿FORTRANÖÐÔö¼Ó¼ÆËãÇøÓòºó³ö´í£¬
ÒѾÓÐ5È˻ظ´
¡¾ÇóÖú¡¿VASP±àÒë³ö´í
ÒѾÓÐ5È˻ظ´
¡¾ÇóÖú¡¿vasp°²×°ÎÊÌâ
ÒѾÓÐ27È˻ظ´
¡¾ÇóÖú¡¿mkl+ifort+openmpi+siesta3.²¢Ðа²×°³ö´í
ÒѾÓÐ8È˻ظ´
¡¾neweroica¸öÈËÎ¿×îаævaspmo (v0.1) ¨D¨D¿ÉÊÓ»¯VASP·Ö×Ó¹ìµÀ
ÒѾÓÐ103È˻ظ´
zyj8119
ľ³æ (ÖøÃûдÊÖ)
- Ó¦Öú: 65 (³õÖÐÉú)
- ¹ó±ö: 0.003
- ½ð±Ò: 915.1
- É¢½ð: 1440
- ºì»¨: 35
- Ìû×Ó: 2936
- ÔÚÏß: 1329.4Сʱ
- ³æºÅ: 664177
- ×¢²á: 2008-11-29
- ÐÔ±ð: GG
- רҵ: ÀíÂۺͼÆË㻯ѧ

2Â¥2010-11-15 22:02:38
astringent
ͳæ (ÖøÃûдÊÖ)
- Ó¦Öú: 16 (СѧÉú)
- ½ð±Ò: 2210.7
- É¢½ð: 1233
- ºì»¨: 4
- Ìû×Ó: 1180
- ÔÚÏß: 354.8Сʱ
- ³æºÅ: 900839
- ×¢²á: 2009-11-12
- רҵ: ÀíÂۺͼÆË㻯ѧ
|
Õâ¸öÊÇÔ´Îļþ open(nin,file='TRAJ1',status='old',form & ='unformatted') open(nout,file='csbw.out') do istep=1, nstep call readmdinit (mdtype,nin) call readmd & (mdtype,nattot,nin,atomname,xxx,yyy,zzz,cell) ! loop over all waters do i=1, nattot if (('atomname'.eq.'O').and.('resname'.eq.'WAT')) then io = i ih1 = io+1 ih2 = io+2 call test & (io,ih1,ia1,xxx,yyy,zzz,nattot,cell,atomname,resname,ihbnum) if (ihbnum.eq.1) then acc(j)=ia1 call test & (io,ih2,ia2,xxx,yyy,zzz,nattot,cell, & atomname,resname,ihbnum) if (ihbnum.eq.1) then if (resindex(ia1).eq.resindex(ia2)+1 & .or. resindex(ia1).eq. resindex(ia2)-1) then write(*,*) 'not find a cswb' else write(*,*) 'find a cswb' nhb=nhb+1 endif endif endif endif enddo sum=sum+nhb do j=1,nattot write (nout,"('acceptor is',i2)" acc(j)enddo enddo avgnhb=sum/nstep write (nout,"('avergaed number is',i2)" avgnhbclose(nout) end |
3Â¥2010-11-16 03:01:44
astringent
ͳæ (ÖøÃûдÊÖ)
- Ó¦Öú: 16 (СѧÉú)
- ½ð±Ò: 2210.7
- É¢½ð: 1233
- ºì»¨: 4
- Ìû×Ó: 1180
- ÔÚÏß: 354.8Сʱ
- ³æºÅ: 900839
- ×¢²á: 2009-11-12
- רҵ: ÀíÂۺͼÆË㻯ѧ
|
astringent гæ (СÓÐÃûÆø) ³ÌÐòÇ¿Ìû: 0 ½ð±Ò: 72.5 Ìû×Ó: 112 ÔÚÏß: 14.9Сʱ ³æºÅ: 900839 ×¢²á: 2009-11-12 ״̬: ÔÚÏß ÏÂÃæÊǸ÷¸ö×Ó³ÌÐò subroutine findhbond & (io,ih,iat,xxx,yyy,zzz,nattot,cell,ihbnum) implicit none include 'constants.h' integer io,ih,iat,nattot,ihbnum double precision xxx(nattot),yyy(nattot),zzz(nattot) double precision cell(3) double precision theta,thetamax,roamax,rhamax double precision dx0,dy0,dz0,r0 double precision dx1,dy1,dz1,r1 double precision dx2,dy2,dz2,r2 thetamax = 30.d0 roamax = 3.5d0 rhamax = 2.45d0 ihbnum = 0 call bondcalculation(io,ih,xxx,yyy,zzz,nattot,cell,dx0,dy0,dz0,r0) call bondcalculation(io,iat,xxx,yyy,zzz,nattot,cell,dx1,dy1,dz1,r1) if (r1.lt.roamax) then theta = dacos(dx0*dx1+dy0*dy1+dz0*dz1) if(theta.lt.thetamax) then call bondcalculation & (ih,iat,xxx,yyy,zzz,nattot,cell,dx2,dy2,dz2,r2) if (r2.lt.rhamax) then ihbnum = 1 endif endif endif return end subroutine test & (io,ih,ia,xxx,yyy,zzz,nattot,cell,atomname,resname,ihbnum) implicit none include 'constants.h' integer io,ih,ia,nattot,ihbnum double precision xxx(nattot),yyy(nattot),zzz(nattot) double precision cell(*) character*4 atomname(nattot),resname(nattot) integer iat ia = 0 ihbnum = 0 do iat=1, nattot if((('resname'.eq.'DC5').or.('resname'.eq.'DC')).and.& ('atomname'.eq.'N1'.or.'atomname'.eq.'N4'.or.'atomname'.eq.'N3'& &.or.'atomname'.eq.'O2')) then call findhbond & (io,ih,iat,xxx,yyy,zzz,nattot,cell,ihbnum) elseif (('resname'.eq.'DG3'.or.'resname'.eq.'DG').and.& &('atomname'.eq.'N9'.or.'atomname'.eq.'N7'.or.'atomname'.eq.& &'O6'.or.'atomname'.eq.'N1'.or.'atomname'.eq.'N2'& &.or.'atomname'.eq.'N3')) then call findhbond & (io,ih,iat,xxx,yyy,zzz,nattot,cell,ihbnum) elseif (('resname'.eq.'DA').and.('atomname'.eq.'N9'.or.& 'atomname'.eq.'N7'.or.'atomname'.eq. & 'N6'.or.'atomname'.eq.'N1'& &.or.'atomname'.eq.'N3')) then call findhbond & (io,ih,iat,xxx,yyy,zzz,nattot,cell,ihbnum) elseif (('resname'.eq.'DT').and.('atomname'.eq.'N1'.or. & 'atomname'.eq.'O4'.or.'atomname' & .eq.'N3'.or.'atomname'.eq.'O2')) then call findhbond & (io,ih,iat,xxx,yyy,zzz,nattot,cell,ihbnum) endif if (ihbnum.eq.1) then ia=iat endif enddo return end subroutine bondcalculation & (i1,i2,xxx,yyy,zzz,nattot,cell,dx,dy,dz,roh) implicit none integer i1,i2,nattot double precision xxx(nattot),yyy(nattot),zzz(nattot) double precision cell(3),dx,dy,dz double precision xo,yo,zo,xh,yh,zh,roh xo = xxx(i1) yo = yyy(i1) zo = zzz(i1) xh = xxx(i2) yh = yyy(i2) zh = zzz(i2) dx = xh - xo dy = yh - yo dz = zh - zo dx = dx - anint(dx/cell(1))*cell(1) dy = dy - anint(dy/cell(2))*cell(2) dz = dz - anint(dz/cell(3))*cell(3) roh = dsqrt(dx**2+dy**2+dz**2) dx = dx / roh dy = dy / roh dz = dz / roh return end subroutine readmd & (mdtype,nattot,nin,atomname,xxx,yyy,zzz,cell) implicit none integer mdtype,nattot,nin double precision :: xxx(nattot),yyy(nattot),zzz(nattot) real*4 :: x_dcd(nattot),y_dcd(nattot),z_dcd(nattot) double precision cell(3) character*4 atomname(nattot) integer iatm,i double precision xtable(6) integer ::npdb=70 if (mdtype.eq.0) then ! original TINKER read(nin,*) do iatm=1, nattot read(nin,'(i6,2x,a2,x,3f12.6)')i,atomname(iatm),xxx(iatm),& yyy(iatm),zzz(iatm) enddo elseif (mdtype.eq.1) then ! modified TINKER read(nin,*) read(nin,*) do iatm=1, nattot read(nin,'(a2,9x,6f12.4)')atomname(iatm),xxx(iatm), & yyy(iatm), zzz(iatm) enddo elseif ((mdtype.eq.2).or.(mdtype.eq.3)) then ! DLPOLY read(nin,*) read(nin,*) read(nin,*) read(nin,*) do iatm=1, nattot read(nin,'(a2,x,6f10.5)')atomname(iatm),xxx(iatm), & yyy(iatm), zzz(iatm) enddo elseif (mdtype.eq.4) then ! Orsay - FX COUDERT read(nin,*) read(nin,*) do iatm=1, nattot read(nin,'(2x,a2,6x,3f14.5)')atomname(iatm),xxx(iatm),& yyy(iatm),zzz(iatm) enddo elseif (mdtype.eq.5) then ! xyz read(nin,*) read(nin,*) do iatm=1, nattot read(nin,'(a2,8x,3f12.4)')atomname(iatm),xxx(iatm),& yyy(iatm),zzz(iatm) enddo elseif (mdtype.eq.6) then ! dcd binary read(nin) (xtable(i),i=1,6) read(nin) (x_dcd(i),i=1,nattot) read(nin) (y_dcd(i),i=1,nattot) read(nin) (z_dcd(i),i=1,nattot) cell(1)=xtable(1) cell(2)=xtable(3) cell(3)=xtable(6) OPEN(npdb,file='system.pdb',status='old') call read_pdb(atomname,npdb,nattot) CLOSE(npdb) ! send from single precision to double do i=1,nattot xxx(i)=x_dcd(i) yyy(i)=y_dcd(i) zzz(i)=z_dcd(i) enddo endif return end subroutine readmdinit(mdtype,nin) implicit none integer mdtype,nin ! local variables -------------- integer ntitle,nset,istart,icntrl(6),jcntrl(9) character*80 title(10) character*4 hdr double precision delta integer i,nfr,dfr,natms if (mdtype.eq.3) then read(nin,*) read(nin,*) elseif(mdtype.eq.6) then read(nin) hdr,nfr,istart,dfr,(icntrl(i),i=1,6),delta,(jcntrl(i) & ,i=1,9) read(nin) ntitle,(title(i),i=1,ntitle) read(nin) natms endif return end subroutine read_pdb(atomname,n,nattot) integer ::n,nattot character(len=4),dimension(nattot),intent(inout) ::atomname character(len=4),dimension(nattot) ::resname character(len=4),dimension(nattot) ::itmp integer,dimension(nattot) ::resindex,label !--- local variables ------------------- integer :: i do i=1,nattot read(n,1000,err=20,end=20) itmp,label(i),atomname(i),resname(i),& resindex(i) enddo 20 CONTINUE 1000 format(3x,a4,6x,i5,a4,x,a4,3x,i5) |
4Â¥2010-11-16 03:22:17
gd88
½ð³æ (СÓÐÃûÆø)
- ³ÌÐòÇ¿Ìû: 2
- Ó¦Öú: 0 (Ó×¶ùÔ°)
- ½ð±Ò: 556.6
- Ìû×Ó: 110
- ÔÚÏß: 18.4Сʱ
- ³æºÅ: 122658
- ×¢²á: 2005-12-04
- רҵ: Policy Assessment
¡ï ¡ï ¡ï
Сľ³æ(½ð±Ò+0.5):¸ø¸öºì°ü£¬Ð»Ð»»ØÌû½»Á÷
nono2009(½ð±Ò+2):¹ÄÀøÓ¦Öú 2010-11-17 10:14:06
Сľ³æ(½ð±Ò+0.5):¸ø¸öºì°ü£¬Ð»Ð»»ØÌû½»Á÷
nono2009(½ð±Ò+2):¹ÄÀøÓ¦Öú 2010-11-17 10:14:06
|
LZ£¬½ñÌìFortranµÄÎÊÌâС±¬·¢Å¶¡£ ´Ó´íÎóÐÅÏ¢À´¿´£¬TRAJ1Õâ¸öÎļþ£¬¸ñʽ´íÎó¡£ Áí£¬Äã¶ÁÈ¡Êý¾ÝµÄ³ÌÐò£¬ÓÃF90µÄÂ𣿠ÄÇô£¬open(nin,file='TRAJ1',status='old' ÀïÃæµÄ old FortranµÄ±ê×¼Õâô¶àÄê¿ÉÒÔÊDZ仯µÄ£¬ ÄãÏÈÁ˽âһϠf90 ºÍ f77 µÄ²»Í¬°Ñ£¬¸ñʽ·½Ãæ¡£ |
5Â¥2010-11-17 02:03:42
cean
½ð³æ (Ö°Òµ×÷¼Ò)
ŒÅÉþÒ»Ìõ
- Ó¦Öú: 23 (СѧÉú)
- ½ð±Ò: 53.1
- É¢½ð: 2045
- ºì»¨: 2
- Ìû×Ó: 3442
- ÔÚÏß: 578.8Сʱ
- ³æºÅ: 1147499
- ×¢²á: 2010-11-15
- רҵ: ¹«¹²¹ØÏµÑ§
¡ï ¡ï
Сľ³æ(½ð±Ò+0.5):¸ø¸öºì°ü£¬Ð»Ð»»ØÌû½»Á÷
nono2009(½ð±Ò+1):¹ÄÀø²ÎÓë 2010-11-21 07:15:28
Сľ³æ(½ð±Ò+0.5):¸ø¸öºì°ü£¬Ð»Ð»»ØÌû½»Á÷
nono2009(½ð±Ò+1):¹ÄÀø²ÎÓë 2010-11-21 07:15:28
|
¡°Fortran runtime error: I/O past end of record on unformatted file¡± There is not enough data to be read. |

6Â¥2010-11-20 20:39:35
yangdafaok
Ìú¸Ëľ³æ (ÕýʽдÊÖ)
- Ó¦Öú: 0 (Ó×¶ùÔ°)
- ½ð±Ò: 5636.3
- É¢½ð: 365
- ºì»¨: 10
- Ìû×Ó: 544
- ÔÚÏß: 481.9Сʱ
- ³æºÅ: 957902
- ×¢²á: 2010-02-28
- ÐÔ±ð: GG
- רҵ: ¿ÉÔÙÉúÓëÌæ´úÄÜÔ´ÀûÓÃÖеÄ

7Â¥2010-11-20 20:47:24













»Ø¸´´ËÂ¥
acc(j)
5