问一个micro fabrication 的问题!bow!!# EE - 电子工程
x*3
1 楼
现在有一个比较大的Fortran程序,好几百个个common块被在不同组合后,被好几百个
子程序使用,现在需要改写这个程序,每次这些common块都比较麻烦,改变一个往往的
一个一个子程序找着挨个儿改。想用module封装一下,可是觉得这样做了之后觉得每个
module里就列出几十个全局变量,似乎也没有好很多。而且工作量似乎很大,因为每个
common块在不同子程序中的变量名可能不一样,比如
在子程序A: common /blk1/ v1,v2,v3
在子程序B: common /blk1/ u1,u2,u3
这样一来,觉得动作还是比较大的,不知道有没有好的办法,大家给指点一下。谢谢了
。
子程序使用,现在需要改写这个程序,每次这些common块都比较麻烦,改变一个往往的
一个一个子程序找着挨个儿改。想用module封装一下,可是觉得这样做了之后觉得每个
module里就列出几十个全局变量,似乎也没有好很多。而且工作量似乎很大,因为每个
common块在不同子程序中的变量名可能不一样,比如
在子程序A: common /blk1/ v1,v2,v3
在子程序B: common /blk1/ u1,u2,u3
这样一来,觉得动作还是比较大的,不知道有没有好的办法,大家给指点一下。谢谢了
。