24小时热门版块排行榜    

北京石油化工学院2026年研究生招生接收调剂公告
查看: 297  |  回复: 0

astringent

铜虫 (著名写手)

[交流] 【求助】运行出错

请大家帮忙看看,为什么运行时会出现这个错误?
findcswb.f90:77.10:

          enddo
          1
Error: Syntax error in WRITE statement at (1)
findcswb.f90:84.10:

          end
          1
Error: END DO statement expected at (1)
Error: Unexpected end of file in 'findcswb.f90'

program main
----

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
                     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
                            acc1(nhb)=ia1
                            acc2(nhb)=ia2
                            endif
                        endif

endif
                 endif
              enddo
          do j=1,nhb
          write (nout,100) 'acc1:',label(acc1(j)),atomename(acc1(j)),&
             resname(acc1(j)),resindex(acc1(j)), &
               &'acc2:',label(acc2(j)),atomename(acc2(j)),&
             resname(acc2(j)),resindex(acc2(j))&
          enddo
          sum=sum+nhb
          enddo
          avgnhb=sum/nstep
          write (nout,"('avergaed number is',i2)" avgnhb
100       format(2(a5,1x,i4,3x,a4,3x,a3,2x,i2))
          close(nout)
          end
回复此楼

» 猜你喜欢

已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖
相关版块跳转 我要订阅楼主 astringent 的主题更新
普通表情 高级回复 (可上传附件)
最具人气热帖推荐 [查看全部] 作者 回/看 最后发表
[考研] 一志愿211,335分,0856,求调剂院校和导师 +15 倾____萧 2026-03-27 16/800 2026-04-02 22:50 by JourneyLucky
[考研] 一志愿深大085601材料工程专业(专硕)300分可以调剂去哪 +7 10160315 2026-04-02 7/350 2026-04-02 22:48 by liveagain126
[考研] 295求调剂 +6 愿旅途永远坦然 2026-04-02 6/300 2026-04-02 21:57 by macy2011
[考研] 343求调剂085601 +5 要努力学习x 2026-03-29 6/300 2026-04-02 21:18 by 1104338198
[考研] 279求调剂 +5 傅文秋 2026-04-02 5/250 2026-04-02 18:10 by 笔落锦州
[考研] 调剂 +3 好好读书。 2026-04-01 6/300 2026-04-02 15:49 by liumengping
[考研] 一志愿厦门大学材料工程专硕354找调剂!!! +7 贝呗钡钡 2026-03-30 7/350 2026-04-02 12:19 by 1753564080
[考研] 0805求调剂 +8 是水分 2026-03-31 8/400 2026-04-02 10:46 by guanxin1001
[考研] 一志愿北交大材料工程总分358 +8 cs0106 2026-04-01 9/450 2026-04-02 10:36 by 不吃魚的貓
[考研] 289求调剂 +23 新时代材料 2026-03-27 26/1300 2026-04-02 10:29 by oooqiao
[考研] 284求调剂 +12 小熊~~ 2026-03-31 12/600 2026-04-01 20:23 by 花??
[考研] 303分 0807学硕求调剂 +3 TYC3632 2026-04-01 3/150 2026-04-01 19:24 by lwk2004
[考研] 省双一流重点一本大学招收调剂 +4 wwwwffffff 2026-03-31 7/350 2026-04-01 15:23 by wwwwffffff
[考研] 08工科275求调剂,可跨考。 +5 AaAa7420 2026-03-31 5/250 2026-04-01 15:21 by 159357hjz
[考研] 301求调剂 +8 axibli 2026-04-01 8/400 2026-04-01 09:51 by 我的船我的海
[考研] 求调剂:085600材料与化工,考材科基,总分319 +17 678lucky 2026-03-31 21/1050 2026-04-01 01:40 by 1018329917
[考研] 调剂求院校招收 +7 鹤鲸鸽 2026-03-28 7/350 2026-03-31 11:21 by oooqiao
[考研] 抱歉 +4 田洪有 2026-03-30 4/200 2026-03-30 21:26 by mumin1990
[考研] 348求调剂 +6 小懒虫不懒了 2026-03-28 6/300 2026-03-30 10:29 by Evan_Liu
[考研] 求佛 +7 迷人的哈哈 2026-03-28 7/350 2026-03-28 16:47 by 催化大白
信息提示
请填处理意见