在Fortran函数声明的第二行中找到Star *符号 [英] Star * symbol found on second line of Fortran function declaration

查看:142
本文介绍了在Fortran函数声明的第二行中找到Star *符号的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在检查一些传统Fortran代码时,我发现了一个子例程声明,如下所示:

  SUBROUTINE CLIP2G(fcut ,TIME,NUMS,NUMG,CLIPG,CLIPGL,CLIPGR,
* MODE,PHZ)

在这种情况下, * 是什么意思? * 是否意味着子程序声明跨越了两行而不是一行?

解决方案 div>

这是行延续标记。它标志着这条线是前一条的延续。它可以是任何Fortran公认的字符,但它必须放在第6列。有关固定和免费Fotran格式的续行更深入的讨论是 here


When examining some legacy Fortran code, I've found a subroutine declaration that is the following:

       SUBROUTINE CLIP2G (fcut,TIME,NUMS,NUMG,CLIPG,CLIPGL,CLIPGR,
     * MODE,PHZ)

What does the * signify in this context? Does the star * mean that the subroutine declaration spans two lines rather than one line?

解决方案

This is line continuation mark. It marks that this line is a continuation of the previous one. It may be any Fortran recognized character, but it must be placed in column 6. More thorough discussion of line continuations in fixed and free Fotran format is here.

这篇关于在Fortran函数声明的第二行中找到Star *符号的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆