Fortran return statement

前端 未结 3 1638
情书的邮戳
情书的邮戳 2021-01-20 10:36

I\'m trying to get some code compiled under gfortran that compiles fine under g77. The problem seems to be from a return statement:

ffuncs.f:934.13:

         


        
3条回答
  •  北恋
    北恋 (楼主)
    2021-01-20 11:30

    In a Fortran function one returns the value, by assigning the value to a fake variable which is the same name as the function. Once you do that, simply return.

提交回复
热议问题