24小时热门版块排行榜    

查看: 1272  |  回复: 1

修炼天木

新虫 (初入文坛)

[求助] 关于Fortran编程遇到的问题

我是一个初学者,有大神的话可以私聊,我将程序发给您,请您帮忙解答。
受篇幅所限,这个只是一部分程序,如果需要更多,烦请私聊我

program caphere

dimension porerho(3000),porethta(3000),porephi(3000),porerad(3000)

real inclrho(8000),inclthta(8000),inclphi(8000),inclrad(8000)

integer nsurf(100),nsepd(100)

dimension ashsum(100),ashsum2(100),bshsum(100),bshsum2(100)

real az(100),surfbin(100,15),sepdbin(100,15)

common /inclusion/ inclrho, inclthta, inclphi, inclrad

common /pores/ porerho, porethta, porephi, porerad

common /dimensions/ radchar, radpore, radincl

common /parameters/ iupper, ilower, issed, delz

common /bins/ az, surfbin, sepdbin, nsurf, neepd

common /sums/ ashsum, ashsum2, bshsum, bshsum2

open(5, file='csin')

open(7, file='csout1')

open(8, file='csout2')

read(5,*)nruns,mruns

read(5,*)iseed

read(5,*)radchar, delz

do 10 ik=1,nruns

read(5,*)radpore, radincl

read(5,*)fvpore, fvincl

npores=fvpore*(radchar/radpore)**3

nincls=fvincl*(radchar/radincl)**3

650 format(20x,'mruns=',i8)

800 format(14x'char radius=',f16.1)

325 format(/10x'number of pores=',i8/5x,'number of inclusions=',i8)

600 format(//5x,45('*')

$ /5x,'**** results from the continuous model ****'

$ /5x,45('*')//)

750 format(20x,'iseed=',i12)

do 5 i=1,100

nsurf(i)=0 nsepd(i)=0 ashsum(i)=0. ashsum2(i)=0. bshsum(i)=0. bshsum2(i)=0. do 6 j=1,15 surfbin(i,j)=0 sepdbin(i,j)=0

6 continue

5 continue

do 15 j=1,mruns

vfrpore=0 vfrincl=0 npores=fvpore*(radchar/radpore)**3 write(6,*)'Starting the run no.',j,'......'

call distribn(j,npores,nincls,vfrpore,vfrincl)

if(npores.ne.0)then call sort(1,npores)

endif call sort(2,nincls) call reaction(iz,npores,nincls)

call results(vfrpore,vfrincl,nincls) 这一行报错

write(6,*)'Finished the run no.',j,'......'

15 continue

call results(iz,mruns,vfrpore,vfrincl,nincls)

10 continue stop end

错误如下、 error #6631: A non-optional actual argument must be present when invoking a procedure with an explicit interface. [NINCLS]

error #6631: A non-optional actual argument must be present when invoking a procedure with an explicit interface. [VFRINCL]

error #6633: The type of the actual argument differs from the type of the dummy argument. [NINCLS]

error #6633: The type of the actual argument differs from the type of the dummy argument. [VFRINCL]

error #6633: The type of the actual argument differs from the type of the dummy argument. [VFRPORE]
回复此楼
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

修炼天木

新虫 (初入文坛)

2楼2019-06-02 08:37:06
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖
相关版块跳转 我要订阅楼主 修炼天木 的主题更新
最具人气热帖推荐 [查看全部] 作者 回/看 最后发表
[考研] 0857 资源与环境 285分 +3 未名考生 2026-03-09 3/150 2026-03-10 23:25 by rock_sdust
[考研] 298求调剂 +3 Vv呀! 2026-03-10 3/150 2026-03-10 22:40 by 剑诗杜康
[考博] 26申博求助 +3 跳跃饼干 2026-03-10 4/200 2026-03-10 21:15 by Tntcnn
[考研] 一志愿天津大学材料与化工275求调剂 10+5 穿只靴子 2026-03-07 19/950 2026-03-10 19:35 by zeng1010
[考研] 315食品工程求调剂 +4 Oreov0 2026-03-06 7/350 2026-03-10 18:56 by 清风月
[考研] 308求调剂 +4 是Lupa啊 2026-03-08 7/350 2026-03-10 18:25 by 清风月
[考研] 一志愿中科大材料与化工。353分能调剂到哪? +4 MayUxw1 2026-03-08 6/300 2026-03-10 17:09 by MayUxw1
[考研] 一志愿东北大学080500,英一数二343分求调剂 +8 Seele_v5 2026-03-04 8/400 2026-03-10 14:51 by ruiyingmiao
[考研] 278求调剂 +8 Gale1314 2026-03-06 8/400 2026-03-10 14:18 by Linda Hu
[考研] 材料与化工,291,求调剂 +12 咕噜咕噜123123 2026-03-05 13/650 2026-03-10 13:50 by allen-yin
[考博] 26年博士申请 +4 科研狗111 2026-03-07 4/200 2026-03-08 21:56 by 0611517sll
[考研] 301求调剂 +11 朝天椒的双马尾 2026-03-05 11/550 2026-03-08 21:50 by 知足常乐的乐
[考研] 第一志愿上海大学,专业化学工程与技术,总分288,求调剂 +3 1829197082 2026-03-07 3/150 2026-03-07 19:14 by houyaoxu
[考研] 求调剂 +4 呼呼?~+123456 2026-03-06 4/200 2026-03-06 23:11 by L135790
[考研] 316求调剂 +3 林小星发大财 2026-03-05 5/250 2026-03-06 09:05 by Iveryant
[考研] 求调剂 +5 danyyyy 2026-03-04 5/250 2026-03-06 08:16 by Leeding1356
[考研] 328求调剂 +6 vuzhdkfjkx 2026-03-04 7/350 2026-03-05 23:28 by Leeding1356
[考研] 求材料调剂 +4 berdmond 2026-03-05 4/200 2026-03-05 19:45 by 黑衣馒头人
[考研] 293求调剂 +3 是乐渝哇 2026-03-04 3/150 2026-03-04 23:12 by wutongshun
[考研] 能动297求调剂,本科川大 +4 邵11 2026-03-04 4/200 2026-03-04 15:29 by lylylyheart
信息提示
请填处理意见