Fortran Coder

查看: 9035|回复: 3
打印 上一主题 下一主题

[求助] 求助,关于Fortran开头program+(tape)的用法

[复制链接]

13

帖子

4

主题

0

精华

入门

F 币
74 元
贡献
43 点
跳转到指定楼层
楼主
发表于 2015-12-26 15:12:04 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
[Fortran] 纯文本查看 复制代码
!Master plane
    program Bok1(input,output,tape10=input,tape12=output,tape2,tape4,tape6,tape8)
    dimension title(12)

    common/Contro/npoin,nelem,nnode,ndofn,ndime,nstre,ntype,ngaus,nprop,nmats,nvfix,nevab,&
                   icase,ncase,itemp,iprob,nprob
    common/Lgdata/coord(80,2),props(10,5),presc(40,2),asdis(160),eload(25,16),strin(4,225),&
                   nofix(40),ifpre(40,2),lnods(25,8),matno(25)
    common/Work/elcod(2,8),shape(8),deriv(2,8),dmatx(3,3),cartd(2,8),dbmat(3,16),bmatx(3,16),&
                 smatx(3,16,9),posgp(3),weigp(3),gpcod(2,9),neror(24)


!**********************************************************
!  program for the solution of plane
!   frameworks
!**********************************************************
!
!  this segment controls the calling,in order, of all subroutines
! 
    !call Openfile
    read(10,900) nprob
 900 format(i5)
    write(12,905) nprob
 905 format(1ho,5x,23htotal no. of problems =,i5)
    do 20 iprob=1,nprob
    rewind 2
    rewind 4
    rewind 6
    rewind 8
    read(10,910) title
 910 format(12a6)
    write(12,915) iprob,title
 915 format(/////,6x,12hproblem no. ,i3,10x,12a6)
!
!  call the subroutine which reads most of 
!  the problem data
! 
    call Input
!
!  next create the element stiffness file
!
    call Stifps
    do 10 icase=1,ncase
!
!  compute loads, after reading the relevant
!  extra data
!
    call Loadps
!
!  merge and solve the resulting equations
!  by the prontal solver
! 
    call Front
!
!  compute the stresses in all the elements
!
    call Streps
 10 continue
 20 continue
    stop
  end
分享到:  微信微信
收藏收藏 点赞点赞 点踩点踩

798

帖子

2

主题

0

精华

大宗师

F 币
3793 元
贡献
2268 点
沙发
发表于 2015-12-26 16:56:45 | 只看该作者
fortran 的主程序是不能带参数的,没见过这种用法。

13

帖子

4

主题

0

精华

入门

F 币
74 元
贡献
43 点
板凳
 楼主| 发表于 2015-12-27 09:37:57 | 只看该作者
这是Fortran以前老版本的程序,估计Fortran77有这种用法~

1963

帖子

12

主题

5

精华

论坛跑堂

臭石头雪球

F 币
1357 元
贡献
574 点

美女勋章热心勋章星光勋章新人勋章贡献勋章管理勋章帅哥勋章爱心勋章规矩勋章元老勋章水王勋章

地板
发表于 2015-12-27 11:15:08 | 只看该作者
F77 也没有这种用法。应该是古老编译器的扩展用法。我记得似乎 NDP fortran 有这种写法。
您需要登录后才可以回帖 登录 | 极速注册

本版积分规则

捐赠本站|Archiver|关于我们 About Us|小黑屋|Fcode ( 京ICP备18005632-2号 )

GMT+8, 2024-4-27 13:18

Powered by Tencent X3.4

© 2013-2024 Tencent

快速回复 返回顶部 返回列表