Type * error in gfortran

对着背影说爱祢 提交于 2019-12-02 17:58:00

问题


When I run my code I get the following error for all the statements that have the following format. Is there any problem with the type statement? If yes kindly provide me with a solution. I running my code on a Ubuntu 14.10 system. The program is very long hence I am not posting it now however if required I can surely send it.

recfunk_ascii.f:622.12:

  type *,'enter back-azimuth limits ib1,ib2 (integers!)'            
        1
Error: Invalid character in name at (1)

回答1:


Type is an obsolete and completely non-standard statement (see http://docs.oracle.com/cd/E19957-01/805-4939/6j4m0vnbi/index.html). It is not portable because many compilers do not recognize it. It should be changed to a PRINT statement, as @francescalus suggest in the comment.

print *,'enter back-azimuth limits ib1,ib2 (integers!)'


来源:https://stackoverflow.com/questions/31593579/type-error-in-gfortran

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