24小时热门版块排行榜    

北京石油化工学院2026年研究生招生接收调剂公告
查看: 1290  |  回复: 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的回帖
相关版块跳转 我要订阅楼主 修炼天木 的主题更新
最具人气热帖推荐 [查看全部] 作者 回/看 最后发表
[考研] 265求调剂 +7 林深温澜 2026-04-01 9/450 2026-04-02 09:32 by kaiyanjie
[考研] 336求调剂 +5 kiyy 2026-04-01 5/250 2026-04-02 07:14 by chixmc
[考研] 271求调剂 +14 勒布朗@ 2026-03-31 19/950 2026-04-02 00:01 by 勒布朗@
[考研] 318求调剂,计算材料方向 +7 吸喵有害笙命 2026-04-01 8/400 2026-04-01 23:54 by 义文wang
[考研] 建环,能源,土木老师路过看一看!!! +4 嘿嘿uu 2026-04-01 4/200 2026-04-01 20:42 by 无懈可击111
[考研] 材料专业调剂 +5 啦啦啦哭 2026-03-31 6/300 2026-04-01 16:48 by JourneyLucky
[考研] 0703求调剂 +4 zizimo 2026-03-31 4/200 2026-04-01 16:04 by yanflower7133
[基金申请] esi高被引论文是不是能对中标有所加分和帮助呢 +3 redcom 2026-04-01 3/150 2026-04-01 15:44 by 443933501
[考研] 省双一流重点一本大学招收调剂 +4 wwwwffffff 2026-03-31 7/350 2026-04-01 15:23 by wwwwffffff
[考研] 一志愿 南京航空航天大学 ,080500材料科学与工程学硕 +7 @taotao 2026-03-30 7/350 2026-04-01 14:30 by chenqifeng666
[考研] 0855机械初试280求调剂 +3 kazenotori 2026-03-31 3/150 2026-04-01 10:08 by JourneyLucky
[考研] 土木304求调剂 +3 兔突突突, 2026-03-31 3/150 2026-04-01 09:42 by JourneyLucky
[考研] 085900土木水利336分求调剂 +3 Zhangjiangj 2026-03-31 5/250 2026-04-01 09:14 by Zhangjiangj
[考研] 复试调剂 +7 双马尾痞老板2 2026-03-31 7/350 2026-03-31 19:49 by Dyhoer
[考研] 一志愿中海洋材料357 +4 麦恩莉. 2026-03-30 4/200 2026-03-31 14:35 by 记事本2026
[考研] 一志愿食品科学与工程083200求调剂 +4 XQTJZ 2026-03-30 4/200 2026-03-31 04:10 by fmesaito
[考研] 297 地理学070500 复试求调剂 +3 小圆圈圈ooo 2026-03-30 3/150 2026-03-30 21:05 by 余震yz
[考研] 调剂 +4 GK72 2026-03-30 4/200 2026-03-30 20:32 by dick_runner
[考研] 一志愿北京理工大学本科211材料工程294求调剂 +8 mikasa的围巾 2026-03-28 8/400 2026-03-29 12:48 by 无际的草原
[考研] 295求调剂 +5 1428151015 2026-03-27 6/300 2026-03-28 04:04 by fmesaito
信息提示
请填处理意见