fortran常见错误及其原因.docxVIP

  • 47
  • 0
  • 约5.99千字
  • 约 9页
  • 2023-08-06 发布于湖北
  • 举报
PAGE PAGE 1 / 9 常见 fortran 错误 Incrementally linked image--PC correlation disabled. !编译终止 forrtl: severe (157): Program Exception - access violation bounds and /warn: argument_checking options set, to see if theproblem is an out-of-bounds memory reference or a argument mismatch that causes data to be treated as anaddress. Other causes of this error include: 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 窗口中的错误信息与程序中的有错语句对照起来检查, 可以双击错误列表中的某一行,此时该行被高亮显示,同时有一个小指针在编辑窗口内指向程序中对应该行错误的语句行.6C : \ abc.f90( 5 ) : error FOR229O : implicit type forx 即编译系统通告用户: 在程序“ C: 、abc . fgo ”中的第 5 行发现了错误,错误代号为“ error FoR229o,错误性质是“ implicit type forx (变量x 未经类型说明)。 7run 一 time error M6201 : MATH 一 sqrt : DOMAIN error 该错误为内部函数 sqrt 的定义域错误,即函数 sqrt 的参数不能为负数。8 边界点的值往区域内部移动 边界变量定义的维数小于实际维数9FortranPGM\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 exceed ImagePCRoutineLineSource TWODEULER.exe0041CBD4UnknownUnknown TWODEULER.exe0040CF57UnknownUnknown TWODEULER.exe004722B9UnknownUnknown TWOD EULER.exeUnknownUnknown kernel 32.dll7C816FE7UnknownUnknow Incrementally linked image--PC correlation disabled. Press any key to continue !超出数组的维数。(即变量的个数太大) Configuration: TWODEULER - Win32 Debug Compiling Fortran... D: \FortranPGM\EULER invisicid flow\TWODE

文档评论(0)

1亿VIP精品文档

相关文档