FORTRAN常见错误
Fortran FAQ

1.1 FAQ之常见错误本文从编译错误,链接错误,运行时错误,计算结果错误等四个方面介绍了常见的错误及解决思路。
适合初学者阅读。
首先应该明确:错误有哪几种?我们当前遇到的是何种错误?阐述这些问题前,我们先讨论一下常规的应用程序开发的过程:1>>编写代码,使用一个或多个源代码文件。
2>>对第一步的每一个源代码文件执行编译操作。
得到一个或若干个目标代码。
3>>将目标代码,运行时库(Run-time Library)和其他使用到的函数库链接起来。
得到一个可执行文件(EXE 或其他)4>>编写程序的说明书,必要的(输入)数据文件5>>将上述得到的结果发布给用户。
(发布的方式可以是刻录成光盘,销售,放在网站上供别人下载,或者其他)6>>用户得到程序后,运行,输入数据,得到计算结果。
对于很多Fortran 程序员来说,可能用户就是自己,也可能仅仅是自己教研室的同事同学。
所以第4,5,6步骤很多时候不明显。
而如果使用集成开发环境(IDE)进行开发,第1,2,3步骤又可以一键完成。
因此,很多初学者就认为,写程序就是:输入代码,运行,得到结果。
这样的理解太狭义。
不管我们面对什么使用者来写代码,程序开发应该是上述的过程。
我们的编译器,编译环境,也是为这个过程而设计的。
于是,我们将错误分为四种:一. 编译错误(发生在第2步)编译错误,一般是源代码书写格式不正确,不符合语法要求。
二. 链接错误(发生在第3步)链接错误,一般是源代码结构不完整,运行时库或函数库使用不合理。
三. 运行时错误(发生在第6步)运行时错误,一般是执行代码时,遇到了事先未料及的错误。
比如内存不足了,磁盘空间不够了,输入文件格式不对了,输出文件写入失败了等等。
四. 计算结果不符合预期(程序代码不规范,或不符合你的设想)计算结果不符合预期,可能性就很多了。
语法与你的想法不一致,超出函数库的适用范围,执行流程控制不当等等。
fortran常见错误

FAQ之常见错误2014-02-02 13:45:35 来源:Fcode研讨团队评论:2点击:4419本文从编译错误,链接错误,运行时错误,计算结果错误等四个方面介绍了常见的错误及解决思路。
适合初学者阅读。
首先应该明确:错误有哪几种?我们当前遇到的是何种错误?阐述这些问题前,我们先讨论一下常规的应用程序开发的过程:1>>编写代码,使用一个或多个源代码文件。
2>>对第一步的每一个源代码文件执行编译操作。
得到一个或若干个目标代码。
3>>将目标代码,运行时库(Run-time Library)和其他使用到的函数库链接起来。
得到一个可执行文件(EXE 或其他)4>>编写程序的说明书,必要的(输入)数据文件5>>将上述得到的结果发布给用户。
(发布的方式可以是刻录成光盘,销售,放在网站上供别人下载,或者其他)6>>用户得到程序后,运行,输入数据,得到计算结果。
对于很多 Fortran 程序员来说,可能用户就是自己,也可能仅仅是自己教研室的同事同学。
所以第4,5,6步骤很多时候不明显。
而如果使用集成开发环境(IDE)进行开发,第1,2,3步骤又可以一键完成。
因此,很多初学者就认为,写程序就是:输入代码,运行,得到结果。
这样的理解太狭义。
不管我们面对什么使用者来写代码,程序开发应该是上述的过程。
我们的编译器,编译环境,也是为这个过程而设计的。
于是,我们将错误分为四种:一. 编译错误(发生在第2步)编译错误,一般是源代码书写格式不正确,不符合语法要求。
二. 链接错误(发生在第3步)链接错误,一般是源代码结构不完整,运行时库或函数库使用不合理。
三. 运行时错误(发生在第6步)运行时错误,一般是执行代码时,遇到了事先未料及的错误。
比如内存不足了,磁盘空间不够了,输入文件格式不对了,输出文件写入失败了等等。
四. 计算结果不符合预期(程序代码不规范,或不符合你的设想)计算结果不符合预期,可能性就很多了。
FORTRAN常见错误

FORTRAN常见错误41 Insufficient virtual memory 虚拟内存不足70 Integer overflow 整数溢出错误71 Integer divide by zero 整数除0错误72 Floating overflow 浮点数溢出错误73 Floating divide by zero 浮点数除0错误74 Floating underflow 浮点数下溢错误75 Floating point exception 浮点数异常错误77 Subscript out of range 数组定义超出边界95 Floating-point conversion failed 浮点数格式转换失败146 Null pointer error 空指针错误147 Stack overflow 堆栈溢出148 String length error 字符串长度超出允许范围149 Substring error 数组下标超出允许范围150 Range error 整数值超出允许范围151 Allocatable array is already allocated 数组重复定义161 Program Exception - array bounds exceeded 引用数组下标超出允许范围162 Program Exception - denormal floating-point operand 非法浮点数操作符163 Program Exception - floating stack check 浮点数堆栈检查164 Program Exception - integer divide by zero 整数除0错误165 Program Exception - integer overflow 整数溢出166 Program Exception - privileged instruction 非法执行特权指令168 Program Exception - illegal instruction 非法指令170 Program Exception - stack overflow 堆栈溢出540 Array or substring subscript expression out of range 数组下标低下数组定义下界或高于数组定义上界541 CHARACTER substring expression out of range 字符串非法表示542 Label not found in assigned GOTO list 不属于GOTO语句引用的标号543 INTEGER arithmetic overflow 整数运算结果出现溢出544 INTEGER overflow on input 输入的整数值超出允许范围545 Invalid INTEGER 非法整数值546 REAL indefinite (uninitialized or previous error) 产生非法实数547 Invalid REAL 非法实数548 REAL math overflow 实数值溢出549 No matching CASE found for SELECT CASE select case语句中缺少case项550 INTEGER assignment overflow 整数定义超出允许范围556 A edit descriptor expected for CHARACTER 字符型数据的格式化输入和输出需要A编辑符557 E, F, D, or G edit descriptor expected for REAL 实数型数据的格式化输入和输出需要E,F,D,G编辑符558 I edi t descriptor expected for INTEGER 整数型数据的格式化输入和输出需要I编辑符559 L edit descriptor expected for LOGICAL 逻辑型数据的格式化输入和输出需要L编辑符568 Multiple radix specifiers 输入或输出语句重复说明582 Array already allocated 数组已分配583 Array size zero or negative 数组大小为0或负数585 Array not allocated 没有被分配的数组610 Invalid argument 非法参数616 Invalid number in input 输入非法数字617 Invalid string in input 输入非法字符串618 Comma missing in COMPLEX input 输入的多个表达式之间缺少逗号619 T or F expected in LOGICAL read 输入的逻辑值必须是T或F622 Illegal character in hexadecimal input 输入非法的十六进制数637 Integer expected in format 格式语句中要求的整数638 Initial left parenthesis expected in format 格式语句中多余的左括号639 Positive integer expected in format 格式语句中要求用正整数641 Integer expected preceding H, X, or P edi t descriptor 在H、X、P编辑符前要求用整数644 '.' expected in format 在D、E、F、G编辑符中w和d域之间用'.'分隔645 Unexpected end of format 格式语句没有结束646 Unexpected character in format 格式语句中的非法字符647 M field exceeds W field in I edit descriptor 在I编辑符中M域的值大于W域的值648 Integer out of range in format 格式语句中的整数值超出允许范围650 Separator expected in format 格式语句中需要分隔符663 Out of range: substring starting position 'pos' is less than 1 子字符串的起始位置小于1664 Out of range: substring ending position 'pos' is greater than string length 'len' 子字符串的终止位置大于字符串长度672 Out of memory 内存不足718 Cannot allocate temporary array -- out of memory 由于内存不足不能分配临时数组727 Cannot ALLOCATE allocatable array -- out of memory 由于内存不足不能分配数组729 DEALLOCATE failure: ALLOCATABLE array is not ALLOCATED 释放没有被分配的数组。
Visual Fortran常见错误内容

Visual Fortran 常见运行错误信息41 Insufficient virtual memory 虚拟内存不足70 Integer overflow 整数溢出错误71 Integer divide by zero 整数除0错误72 Floating overflow 浮点数溢出错误73 Floating divide by zero 浮点数除0错误74 Floating underflow 浮点数下溢错误75 Floating point exception 浮点数异常错误77 Subscript out of range 数组定义超出边界95 Floating-point conversion failed 浮点数格式转换失败146 Null pointer error 空指针错误147 Stack overflow 堆栈溢出148 String length error 字符串长度超出允许范围149 Substring error 数组下标超出允许范围150 Range error 整数值超出允许范围151 Allocatable array is already allocated 数组重复定义161 Program Exception - array bounds exceeded 引用数组下标超出允许范围162 Program Exception - denormal floating-point operand 非法浮点数操作符163 Program Exception - floating stack check 浮点数堆栈检查164 Program Exception - integer divide by zero 整数除0错误165 Program Exception - integer overflow 整数溢出166 Program Exception - privileged instruction 非法执行特权指令168 Program Exception - illegal instruction 非法指令170 Program Exception - stack overflow 堆栈溢出540 Array or substring subscript expression out of range 数组下标低下数组定义下界或高于数组定义上界541 CHARACTER substring expression out of range 字符串非法表示542 Label not found in assigned GOTO list 不属于GOTO语句引用的标号543 INTEGER arithmetic overflow 整数运算结果出现溢出544 INTEGER overflow on input 输入的整数值超出允许范围545 Invalid INTEGER 非法整数值546 REAL indefinite (uninitialized or previous error) 产生非法实数547 Invalid REAL 非法实数548 REAL math overflow 实数值溢出549 No matching CASE found for SELECT CASE select case语句中缺少case项550 INTEGER assignment overflow 整数定义超出允许范围556 A edit descriptor expected for CHARACTER 字符型数据的格式化输入和输出需要A编辑符557 E, F, D, or G edit descriptor expected for REAL 实数型数据的格式化输入和输出需要E,F,D,G编辑符558 I edit descriptor expected for INTEGER 整数型数据的格式化输入和输出需要I编辑符559 L edit descriptor expected for LOGICAL 逻辑型数据的格式化输入和输出需要L编辑符568 Multiple radix specifiers 输入或输出语句重复说明582 Array already allocated 数组已分配583 Array size zero or negative 数组大小为0或负数585 Array not allocated 没有被分配的数组610 Invalid argument 非法参数616 Invalid number in input 输入非法数字617 Invalid string in input 输入非法字符串618 Comma missing in COMPLEX input 输入的多个表达式之间缺少逗号619 T or F expected in LOGICAL read 输入的逻辑值必须是T或F622 Illegal character in hexadecimal input 输入非法的十六进制数637 Integer expected in format 格式语句中要求的整数638 Initial left parenthesis expected in format 格式语句中多余的左括号639 Positive integer expected in format 格式语句中要求用正整数641 Integer expected preceding H, X, or P edit descriptor 在H、X、P编辑符前要求用整数644 '.' expected in format 在D、E、F、G编辑符中w和d域之间用'.'分隔645 Unexpected end of format 格式语句没有结束646 Unexpected character in format 格式语句中的非法字符647 M field exceeds W field in I edit descriptor 在I编辑符中M域的值大于W域的值648 Integer out of range in format 格式语句中的整数值超出允许范围650 Separator expected in format 格式语句中需要分隔符663 Out of range: substring starting position 'pos' is less than 1 子字符串的起始位置小于1664 Out of range: substring ending position 'pos' is greater than string length 'len' 子字符串的终止位置大于字符串长度672 Out of memory 内存不足718 Cannot allocate temporary array -- out of memory 由于内存不足不能分配临时数组727 Cannot ALLOCATE allocatable array -- out of memory 由于内存不足不能分配数组729 DEALLOCATE failure: ALLOCATABLE array is not ALLOCATED 释放没有被分配的数组。
fortran常见错误及其原因

fortran常见错误及其原因常见fortran错误1.Incrementally linked image--PC correlation disabled.!编译终止2. forrtl:severe(157):Program Exception - access violationbounds 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未定义。
fortran runtime end of file

fortran runtime end of file在Fortran编程中,"End of File"是一个常见的错误,通常发生在尝试从一个文件读取数据,但是已经到达文件的末尾时。
当程序尝试读取超出文件末尾的数据时,就会触发这个错误。
为了避免这个错误,你可以在读取文件之前检查是否已经到达文件的末尾。
在Fortran中,你可以使用EOF函数来检查是否到达文件末尾。
EOF函数返回一个逻辑值,如果已经到达文件末尾,那么它返回.TRUE.,否则返回.FALSE.。
下面是一个简单的例子,演示了如何在读取文件时使用EOF函数:fortran复制代码PROGRAM ReadFileIMPLICIT NONEINTEGER :: iosCHARACTER(LEN=100) :: lineOPEN('myfile.txt', STATUS='OLD', IOSTAT=ios)IF (ios /= 0) THENPRINT *, 'Error opening file'STOPEND IFDO WHILE (.NOT. EOF(1))READ(1, *, IOSTAT=ios) lineIF (ios /= 0) EXITPRINT *, lineEND DOCLOSE(1)END PROGRAM ReadFile在这个例子中,程序打开一个名为'myfile.txt'的文件,并在一个循环中逐行读取文件的内容。
每次读取一行之前,它都会检查是否已经到达文件的末尾。
如果已经到达文件的末尾,那么EOF(1)将返回.TRUE.,循环将结束,程序将关闭文件并退出。
如果在读取过程中发生任何错误,程序也会退出。
fortran90常见错误

1、运行fortran时出现forrt1:severe<59>:list-directed I/O syntax error,unit 1,file G:\1\1\meat.dat怎么办这是通道1 ,链接到文件meat.dat 的读写出错了。
这问题你得认真检查类似read( 1 , * ) 或write( 1 , * ) 这样的语句,错误原因挺多的。
比如二进制文件用了文本方式读取,比如变量列表与文件不匹配。
问:另外forrt1:severe<161>:program exception -array bounds exceeded是怎么回事?回答:数组越界,也是很常见的错误。
比如real a(100)如果你使用了a(101) 就会越界,因为a 数组只有100 个元素。
2、fortran运行提示error M6201:math-**,现将代码贴出,求高手帮忙看看,急求解答!我不能确定你的错误是怎么引起的。
可能咱们的编译器不同。
你的代码在我这里的问题是:虚参和实参精度不同。
在程序中,你定义了部分real*8,但是对应的虚参和返回值却定义为real。
比如主程序里的z1(双精度),传入函数g里面的x却定义为单精度。
主程序Do 死循环了。
z2_jiashe 和 z2_suan 每一次循环都没有发生改变,于是永远跳不出循环。
我给你的建议是:同一个程序,统一使用real*8 或real*4,尽量不要混用,除非你很自信能理清他们的关系。
检查Do 循环,尤其是z2_jiashe 和z2_suan,是否应该每次循环不同?fortran_排除错误(2012-04-20 23:22:44)安装好VISUAL FORTRAN后1、运行Developer studio即可开始编译FORTRAN程序2、选择File菜单中的New选项3、在弹出的对话框选择projects标签,其他标签不用管,projects格式选用Fortran console application;在project name里命名(最好英文名),点击“ok ”4、接下来画面中,选择“an empty project”,点击“finish”5、接下来画面点击“ok”6、再选择一次File菜单中的new7、对话框选用files标签,选择Fortran free format source file ,并在file里命名8、点击“ok”数Source Files 放源文件(.c、.cpp)程序的实现代码全放在这里Header Files 放头文件(.h)声明放在这里Resource Files 资源文件(.rc)放图标、图片、菜单、文字之类的,主要用来做界面的东东一般都放这里External Dependencies 除上三种以外的,程序编译时用到的文件全放这里fortran内部函数出错信息解释内部函数出错信息解释[sourcefile(line)]run-time error M62××MATH错误号函数级数学错误信息M6201 functionnames:DOMAIN error函数的自变量超出了约定的取值域,例如sqrt(-1)M6202 functionname:SING error无意义的变量。
fortran常见错误代码

fortran常见错误代码If you have installed the Parallel Software Environment and compiled a program for parallel execution, additional messages specific to parallel execution may appear (see the DIGITAL High Performance Fortran 90 HPF and PSE Manual).statement specified STATUS= 'NEW '(create new file) using I/O unit x. Make sure correct file name, directory path, unit, and so forth were specified in the source program. Decide whether to:Rename or remove the existing file before rerunning theprogram.Modify the source file to specify different filespecification, I/O unit, or OPEN statement STATUS.severe (19): Invalid reference to variable in NAMELIST inputFOR$IOS_INVREFVAR. One of the following conditions occurred: 19The variable was not a member of the namelist group.An attempt was made to subscript a scalar variable.A subscript of the array variable was out-of-bounds. An array variable was specified with too many or too few subscripts for the variable.An attempt was made to specify a substring of a noncharacter variable or array name.A substring specifier of the character variable wasout-of-bounds.A subscript or substring specifier of the variable was not an integer constant.An attempt was made to specify a substring by using an unsubscripted array variable.20 severe (20): REWIND errorFOR$IOS_REWERR. One of the following conditions occurred:The file was not a sequential file.The file was not opened for sequential or append access. The DIGITAL Fortran 90 RTL I/O system detected an error condition during execution of a REWIND statement.severe (24): End-of-file during readFOR$IOS_ENDDURREA. One of the following conditions occurred:A DIGITAL Fortran 90 RTL I/O system end-of-file conditionwas encountered during execution of a READ statement that did not contain an END, ERR, or IOSTAT specification.An end-of-file record written by the ENDFILE statement was encountered during execution of a READ statement that did not contain an END, ERR, or IOSTAT specification.An attempt was made to read past the end of an internal file character string or array during execution of a READ statement that did not contain an END, ERR, or IOSTATspecification.This error is returned by END and ERRSNS.27 severe (27): Too many records in I/O statementFOR$IOS_TOOMANREC. An attempt was made to do one of the following: Read or write more than one record with an ENCODE or DECODEstatement.Write more records than existed.condition is not one of the more common conditions for which specific error messages are provided. It can occur when an OPEN operation was attempted for one of the following:Segmented file that was not on a disk or a raw magnetic tape Standard I/O file that had been closed31 severe (31): Mixed file access modesFOR$IOS_MIXFILACC. An attempt was made to use any of the following combinations:Formatted and unformatted operations on the same unit An invalid combination of access modes on a unit, such as direct and sequentialA DIGITAL Fortran 90 RTL I/O statement on a logical unit that was opened by a program coded in another language33severe (33): ENDFILE errorFOR$IOS_ENDFILERR. One of the following conditions occurred: The file was not a sequential organization file with variable-length records.The file was not opened for sequential or append access.An unformatted file did not contain segmented records. The DIGITAL Fortran 90 RTL I/O system detected an error during execution of an ENDFILE statement.severe (46): Inconsistent OPEN/CLOSE parametersFOR$IOS_INCOPECLO. Specifications in an OPEN or CLOSE statement 46were inconsistent. Some invalid combinations follow:READONLY or ACTION= 'READ 'with STATUS= 'NEW 'or STATUS='SCRATCH 'READONLY with STATUS= 'REPLACE ', ACTION= 'WRITE ', or ACTION= 'READWRITE 'ACCESS= 'APPEND 'with READONLY, ACTION= 'READ ', STATUS= 'NEW ', or STATUS= 'SCRATCH ' DISPOSE= 'SAVE ', 'PRINT ', or 'SUBMIT 'with STATUS= 'SCRATCH 'DISPOSE= 'DELETE 'with READONLYCLOSE statement STATUS= 'DELETE 'with OPEN statement READONLYACCESS= 'APPEND 'with STATUS= 'REPLACE 'ACCESS= 'DIRECT 'or 'KEYED 'with POSITION= 'APPEND ', 'ASIS ', or 'REWIND 'error (75): Floating point exceptionFOR$IOS_SIGFPE. A floating-point exception occurred. Core dump file created. Possible causes include: Division by zeroOverflowInvalid operation, such as subtraction of infinite values, multiplication of zero by infinity (without signs), division of zero by zero or infinity by infinityConversion of floating-point to fixed-point format when an overflow prevents conversioninfo (95): Floating-point conversion failedFOR$IOS_FLOCONFAI. The attempted unformatted read or write of nonnative floating-point data failed because the floating-point value:Exceeded the allowable maximum value for the equivalentnative format and was set equal to infinity (plus or minus) Was infinity (plus or minus) and was set to infinity (plus or minus) Was invalid and was set to not a number (NaN)Very small numbers are set to zero (0). This error could be caused by the specified nonnative floating-point format not matching the floating-point format found in the specified file.Check the following:The correct file was specified.The record layout matches the format DIGITAL Fortran 90 is expecting.The ranges for the data being used (Chapter 9)The correct nonnative floating-point data format wasspecified (Chapter 10).。
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
FORTRAN常见错误
41 Insufficient virtual memory 虚拟内存不足
70 Integer overflow 整数溢出错误
71 Integer divide by zero 整数除0错误
72 Floating overflow 浮点数溢出错误
73 Floating divide by zero 浮点数除0错误
74 Floating underflow 浮点数下溢错误
75 Floating point exception 浮点数异常错误
77 Subscript out of range 数组定义超出边界
95 Floating-point conversion failed 浮点数格式转换失败
146 Null pointer error 空指针错误
147 Stack overflow 堆栈溢出
148 String length error 字符串长度超出允许范围
149 Substring error 数组下标超出允许范围
150 Range error 整数值超出允许范围
151 Allocatable array is already allocated 数组重复定义
161 Program Exception - array bounds exceeded 引用数组下标超出允许范围
162 Program Exception - denormal floating-point operand 非法浮点数操作符
163 Program Exception - floating stack check 浮点数堆栈检查
164 Program Exception - integer divide by zero 整数除0错误
165 Program Exception - integer overflow 整数溢出
166 Program Exception - privileged instruction 非法执行特权指令
168 Program Exception - illegal instruction 非法指令
170 Program Exception - stack overflow 堆栈溢出
540 Array or substring subscript expression out of range 数组下标低下数组定义
下界或高于数组定义上界
541 CHARACTER substring expression out of range 字符串非法表示
542 Label not found in assigned GOTO list 不属于GOTO语句引用的标号
543 INTEGER arithmetic overflow 整数运算结果出现溢出
544 INTEGER overflow on input 输入的整数值超出允许范围
545 Invalid INTEGER 非法整数值
546 REAL indefinite (uninitialized or previous error) 产生非法实数
547 Invalid REAL 非法实数
548 REAL math overflow 实数值溢出
549 No matching CASE found for SELECT CASE select case语句中缺少case项550 INTEGER assignment overflow 整数定义超出允许范围
556 A edit descriptor expected for CHARACTER 字符型数据的格式化输入和输出需要A编辑符
557 E, F, D, or G edit descriptor expected for REAL 实数型数据的格式化输入和输
出需要E,F,D,G编辑符
558 I edit descriptor expected for INTEGER 整数型数据的格式化输入和输出需要I编
辑符
559 L edit descriptor expected for LOGICAL 逻辑型数据的格式化输入和输出需要L编
辑符
568 Multiple radix specifiers 输入或输出语句重复说明
582 Array already allocated 数组已分配
583 Array size zero or negative 数组大小为0或负数
585 Array not allocated 没有被分配的数组
610 Invalid argument 非法参数
616 Invalid number in input 输入非法数字
617 Invalid string in input 输入非法字符串
618 Comma missing in COMPLEX input 输入的多个表达式之间缺少逗号
619 T or F expected in LOGICAL read 输入的逻辑值必须是T或F
622 Illegal character in hexadecimal input 输入非法的十六进制数
637 Integer expected in format 格式语句中要求的整数
638 Initial left parenthesis expected in format 格式语句中多余的左括号
639 Positive integer expected in format 格式语句中要求用正整数
641 Integer expected preceding H, X, or P edit descriptor 在H、X、P编辑符前要
求用整数
644 '.' expected in format 在D、E、F、G编辑符中w和d域之间用'.'分隔
645 Unexpected end of format 格式语句没有结束
646 Unexpected character in format 格式语句中的非法字符
647 M field exceeds W field in I edit descriptor 在I编辑符中M域的值大于W域的值
648 Integer out of range in format 格式语句中的整数值超出允许范围
650 Separator expected in format 格式语句中需要分隔符
663 Out of range: substring starting position 'pos' is less than 1 子字符串的
起始位置小于1
664 Out of range: substring ending position 'pos' is greater than string leng
th 'len' 子字符串的终止位置大于字符串长度
672 Out of memory 内存不足
718 Cannot allocate temporary array -- out of memory 由于内存不足不能分配临时
数组
727 Cannot ALLOCATE allocatable array -- out of memory 由于内存不足不能分配数组
729 DEALLOCATE failure: ALLOCATABLE array is not ALLOCATED 释放没有被分配的数组。