24小时热门版块排行榜    

查看: 1019  |  回复: 1
【悬赏金币】回答本帖问题,作者修炼天木将赠送您 15 个金币

修炼天木

新虫 (初入文坛)

[求助] 关于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的回帖
相关版块跳转 我要订阅楼主 修炼天木 的主题更新
不应助 确定回帖应助 (注意:应助才可能被奖励,但不允许灌水,必须填写15个字符以上)
最具人气热帖推荐 [查看全部] 作者 回/看 最后发表
[硕博家园] 博三一直没文章怎么办 +26 133456 2024-05-17 42/2100 2024-05-21 11:57 by zlx040628
[基金申请] 审不上青基又非升即走的青椒 和 牢里踩缝纫机的犯人哪个活的更舒服一点? +11 非非飞远了 2024-05-20 12/600 2024-05-21 11:54 by zhangjxnu
[论文投稿] 论文一审意见回来后发现实验程序编错了论证分析部分可能要大改 5+4 hshhenb 2024-05-20 5/250 2024-05-21 11:03 by bnullh
[基金申请] 这个模块怎么成了烧香拜佛的地方了 +7 shrz98 2024-05-18 7/350 2024-05-21 10:26 by lancet0903
[论文投稿] SENSORS AND ACTUATORS B-CHEMICAL 15+4 荣小撇 2024-05-20 4/200 2024-05-21 10:07 by ca0yan9
[硕博家园] 又见奇葩学生,可咋办 +25 appleapple2 2024-05-17 30/1500 2024-05-21 09:13 by qyws
[基金申请] 基金委也是打工的 +25 wsjing 2024-05-16 34/1700 2024-05-21 08:31 by mrKiller
[教师之家] 白天不懂夜的黑,90后青椒与60后老板 +5 zylfront 2024-05-18 6/300 2024-05-21 07:32 by 战狼?
[找工作] 绍兴文理学院怎么样?有没有坑啊 +9 zhaojiang427 2024-05-16 23/1150 2024-05-20 21:44 by 高敖曹
[基金申请] bless bless bless bless bless bless +5 chenwenqnig 2024-05-19 5/250 2024-05-20 16:42 by mingxu
[基金申请] 基金评审 +4 阿呆不呆 2024-05-20 4/200 2024-05-20 15:10 by 一路向东
[考博] 25年博士申请 +6 lixinmiao9 2024-05-18 6/300 2024-05-20 11:19 by 裴先生533
[基金申请] 有知道工材e01情况的吗? +13 xiaopang8958 2024-05-17 19/950 2024-05-20 09:52 by 蜕变123~
[教师之家] 执念 +7 459582015 2024-05-16 8/400 2024-05-19 18:22 by Quakerbird
[论文投稿] 求推荐期刊 20+3 好困好困a 2024-05-18 4/200 2024-05-19 11:30 by nono2009
[基金申请] 河北省基金 +11 3101251516 2024-05-16 18/900 2024-05-18 11:41 by 晓晓爱翠翠
[留学DIY] 求助:医生想润 +7 safrina 2024-05-15 7/350 2024-05-17 18:50 by 卡皮吧啦123
[基金申请] 青基 +3 变成超人 2024-05-15 4/200 2024-05-17 12:42 by ssxclkj
[硕博家园] 中国科学院大学李海艳老师课题组诚招硕/博研究生和博士后,诚聘客座本/硕/博学生 +4 ucaszmh 2024-05-14 5/250 2024-05-16 19:51 by 我是小班
[考博] 深度学习申博 +4 酸菜鱼. 2024-05-15 4/200 2024-05-16 11:12 by 安塔瓦拉多
信息提示
请填处理意见