remark #8291: Recommended relationship between field width ‘W‘ and the number of fractional digits ‘

remark #8291: Recommended relationship between field width ‘W’ and the number of fractional digits ‘D’ in this edit descriptor is ‘W>=D+7’.

fortran .f 程序文件编译问题
remark #8291: Recommended relationship between field width ‘W’ and the number of fractional digits ‘D’ in this edit descriptor is ‘W>=D+7’.
W, D 是域宽的描述符
出现这个问题的原因是:语句没有按格式写
在这里插入图片描述
此为有问题的地方,固定格式为:语句应从第7列开始写

另一种情况
Q0010:【CVF / IVF 】 Recommended relationship between field width ‘W’ and the number of fractional digits ‘D’ in this edit descriptor is ‘W>=D+3’
原因:浮点数格式输出符中,W < D+3。
解决:由于浮点数输出时,需输出至少一位整数,一个小数点,(可能的)一个负号。所以,建议宽度 W 大于小数点后的 D + 3。比如 3.1415,格式为 F6.4,6只比4大2,如果遇到负数,就会无法输出负号。造成 ****** 出现。
注意,这只是一个警告,如果你确定不会有负数,则可以无需干涉。

同理,对于科学计数法,会有 W>=D+7 的要求。比如 3.1415E+35,格式为 ES10.4,10只比4大6,遇到负号无法输出。
参考:http://fcode.cn/guide-36-1.html


本文来自互联网用户投稿,文章观点仅代表作者本人,不代表本站立场,不承担相关法律责任。如若转载,请注明出处。 如若内容造成侵权/违法违规/事实不符,请点击【内容举报】进行投诉反馈!

相关文章

立即
投稿

微信公众账号

微信扫一扫加关注

返回
顶部