- 博客(1)
- 收藏
- 关注
原创 Fortran将可变数组传入自定义子程序问题
在使用Fortran语言写程序时,经常会将经常使用到的功能写成自定义函数或子程序,使用时直接调用,有时需要传递数组,但传递前不知道数组的具体大小,需要子程序来进行确定,所以实现子程序参数是可变数组的功能要将子程序放在module中,具体如下。 module m_ceshi implicit none contains subroutine ceshi(array) implicit none integer,allocatable::array(:) ...
2020-07-07 11:26:56
1757
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人