Fortran runtime warning: Extension: $ descriptor

此生再无相见时 提交于 2020-01-04 14:01:43

问题


I am using a very old Fortran 77 code from third party (also very bugged). I have compiled with

FFLAGS=-O0 -Wall -g -fbacktrace -pedantic -Wextra

I am getting the warning in the title at runtime:

At line <number> of file <namefile>.f (unit=6, file='stdout')
Fortran runtime warning: Extension: $ descriptor

I would like to figure out what that means.


回答1:


You should always show the code line number in the error or warning message, to which the line points.

The role of $ in

write(*,'(a$)') "string"

is to avoid going to the next line after printing "string" on the screen.

However, the descriptor is non-standard and therefore you are warned about this by the compiler.

The standard way is to use non-advancing input/output:

write(*,'(a)', advance="no") "string"


来源:https://stackoverflow.com/questions/42832997/fortran-runtime-warning-extension-descriptor

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!