常见的fortran错误

1. Incrementally linked image--PC correlation disabled.

!编译终止

2. forrtl: severe (157): Program Exception - access violation

!The program tried to read from or write to a virtual address for which it does not have the appropriate access. Try recompiling with the /check:bounds and /warn:argument_checking options set, to see if the problem is an out-of-bounds memory reference or a argument mismatch that causes data to be treated as an address.
Other causes of this error include:
Mismatches in C vs. STDCALL calling mechanisms, causing the stack to become corrupted
References to unallocated pointers Attempting to access a protected (for example, read-only) address

3 "forrtl: severe (64): input conversion error, unit 2, file D:\FORTRAN2\testi

!文件testi正在读写,直到读写到2时错误。举例:程序想读写整数,却碰到变量故终止。

4 error LNKZOOI : unresolved external symbol _ SN @ 4 fatal error LNKllZO : 1 unresolved externals

! 出现了未指定的外部函数符号 Sn 。这是因为在函数子程序中错把函数名 Sn 写成了 ns 。根据错误信息中的提示,用户在编辑窗口寻找有错位置进行修改。连接错误往往出现在有函数调用或子程序调用的程序中,常见的错误性质有:未定的函数符号、找不到主程序或子程序、实参与虚参的个数不一致等。注意:连接错误只给出错误代号和错误性质,不给出具体语句的行号。

5 :: error FOR229O : implicit type for 1 detected between 1 and = C : \ abc .

: error FOR33Og : undefined label 10

编译系统提示用户:在程序的第 5 行,变量 i 未经类型说明;在程序的第 H 行,标号 10 未定义。为了便于将 output 窗口中的错误信息与程序中的有错语句对照起来检查,可以双击错误列表中的某一行,此时该行被高亮显示,同时有一个小指针在编辑窗口内指向程序中对应该行错误的语句行.

6 C : \ abc .f90( 5 ) : error FOR229O : implicit type forx

即编译系统通告用户:在程序“ C :、 abc . fgo ”中的第 5 行发现了错误,错误代号为“ error FoR229o " ,错误性质是“ implicit type forx " (变量 x 未经类型说明)。

7 run 一 time error M62OI : MATH 一 sqrt : DOMAIN error

该错误为内部函数 sqrt 的定义域错误,即函数 sqrt 的参数不能为负数。

8 边界点的值往区域内部移动

边界变量定义的维数小于实际维数

9 FortranPGM\EULER invisicid flow\TWODEULER.F90(737) : Warning: In the call to CUCVCUV, there is no actual argument corresponding to the dummy argument TTT.
CALL CUCVCUV(MP1,NP1,M,N,DELX,DELY,U,V,CU,CV,CUS,CVS,&------^

!调用子程序中,存在一个不存在的哑元变量TTT,建议对其修改。

10 forrtl: severe (161): Program Exception - array bounds exceeded
Image PC

Routine Line Source
TWODEULER.exe 0041CBD4 Unknown Unknown Unknown
TWODEULER.exe 0040CF57 Unknown Unknown Unknown
TWODEULER.exe 004722B9 Unknown Unknown Unknown
TWOD EULER.exe 00466264 Unknown Unknown Unknown
kernel32.dll 7C816FE7 Unknown Unknown Unknow

Incrementally linked image--PC correlation disabled.
Press any key to continue

!超出数组的维数。(即变量的个数太大)

11 --------------------Configuration: TWODEULER - Win32 Debug--------------------
Compiling Fortran...
D:\FortranPGM\EULER invisicid flow\TWODEULER.F90

TWODEULER.OBJ - 0 error(s), 0 warning(s)

!源程序编译,生成一个目标文件。这TWODEULER.OBJ 是一个二进制文件,便于机器执行。这一点是与matlab的本质区别。

12 D:\FortranPGM\EULER invisicid flow\TWODEULER.F90(5) : Error: This name cannot be assigned this data type because it conflicts with prior uses of the name. [N]
INTEGER MP1,NP1,M,N,I,J,KP,KH,KVEL
---------------------^
Error executing df.exe. TWODEULER.OBJ - 2 error(s), 0 warning(s)

! PARAMETER 中属性指定后,不能再定义成变量。


相关文档
最新文档