1、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). Table 8-2 Run-Time Error Messages and ExplanationsNumber
2、 Severity Level, Number, and Message Text; Condition Symbol and Explanation None 1 info: Fortran error message number is nnn The DIGITAL Fortran 90 message catalog file was not found on this system. For information about the message file location, see Section 8.1.2 or your DIGITAL Fortran installati
3、on guide. This error has no condition symbol. None 1 warning: Could not open message catalog: for_msg.cat The DIGITAL Fortran 90 message catalog file was not found on this system. See Section 8.1.2 or your DIGITAL Fortran installation guide for further information. This error has no condition symbol
4、. None 1 info: Check environment variable NLSPATH and protection of path-name/for_msg.dat The DIGITAL Fortran 90 message catalog file was not found. For more information, see Section 8.1.2 or your DIGITAL Fortran installation guide. This error has no condition symbol. None 1 Insufficient memory to o
5、pen Fortran RTL catalog: message 41 The DIGITAL Fortran 90 message catalog file could not be opened because of insufficient virtual memory. To overcome this problem, increase the per-process data limit by using the limit (C shell) or ulimit (Bourne and Korn shells) commands (see Section 1.1) before
6、running the program again. For more information, see error 41. This error has no condition symbol. 1 1 severe (1): Not a Fortran-specific error FOR$IOS_NOTFORSPE. An error in the user program or in the RTL was not a DIGITAL Fortran 90-specific error and was not reportable through any other DIGITAL F
7、ortran 90 run-time messages. If you call ERRSNS, an error of this kind returns a value of 1 (for more information on the ERRSNS subroutine, see the DIGITAL Fortran Language Reference Manual). 8 severe (8): Internal consistency check failure FOR$IOS_BUG_CHECK. Internal error. Please check that the pr
8、ogram is correct. Recompile if an error existed in the program. If this error persists, submit an SPR. 9 severe (9): Permission to access file denied FOR$IOS_PERACCFIL. Check the mode (protection) of the specified file. Make sure the correct file was being accessed. Change the protection, specified
9、file, or process used before rerunning program. 10 severe (10): Cannot overwrite existing file FOR$IOS_CAOVEEXI. Specified file xxx already exists when OPEN statement specified STATUS= NEW (create new file) using I/O unit x. Make sure correct file name, directory path, unit, and so forth were specif
10、ied in the source program. Decide whether to: Rename or remove the existing file before rerunning the program. Modify the source file to specify different file specification, I/O unit, or OPEN statement STATUS. 11 info (11) 1: Unit not connected FOR$IOS_UNINOTCON. The specified unit was not open at
11、the time of the attempted I/O operation. Check if correct unit number was specified. If appropriate, use an OPEN statement to explicitly open the file (connect the file to the unit number). 17 severe (17): Syntax error in NAMELIST input FOR$IOS_SYNERRNAM. The syntax of input to a namelist-directed R
12、EAD statement was incorrect. 18 severe (18): Too many values for NAMELIST variable FOR$IOS_TOOMANVAL. An attempt was made to assign too many values to a variable during a namelist READ statement. 19 severe (19): Invalid reference to variable in NAMELIST input FOR$IOS_INVREFVAR. One of the following
13、conditions occurred: The 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 su
14、bstring of a noncharacter variable or array name. A substring specifier of the character variable was out-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): RE
15、WIND error FOR$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. 21 severe (21): Duplicate file s
16、pecifications FOR$IOS_DUPFILSPE. Multiple attempts were made to specify file attributes without an intervening close operation. A DEFINE FILE statement was followed by another DEFINE FILE statement or an OPEN statement 22 severe (22): Input record too long FOR$IOS_INPRECTOO. A record was read that e
17、xceeded the explicit or default record length specified when the file was opened. To read the file, use an OPEN statement with a RECL= value (record length) of the appropriate size. 23 severe (23): BACKSPACE error FOR$IOS_BACERR. The DIGITAL Fortran 90 RTL I/O system detected an error condition duri
18、ng execution of a BACKSPACE statement. 24 1 severe (24): End-of-file during read FOR$IOS_ENDDURREA. One of the following conditions occurred: A DIGITAL Fortran 90 RTL I/O system end-of-file condition was encountered during execution of a READ statement that did not contain an END, ERR, or IOSTAT spe
19、cification. 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 stateme
20、nt that did not contain an END, ERR, or IOSTAT specification. This error is returned by END and ERRSNS. 25 severe (25): Record number outside range FOR$IOS_RECNUMOUT. A direct access READ, WRITE, or FIND statement specified a record number outside the range specified when the file was opened. 26 sev
21、ere (26): OPEN or DEFINE FILE required FOR$IOS_OPEDEFREQ. A direct access READ, WRITE, or FIND statement was attempted for a file when no prior DEFINE FILE or OPEN statement with ACCESS= DIRECT was performed for that file. 27 severe (27): Too many records in I/O statement FOR$IOS_TOOMANREC. An attem
22、pt was made to do one of the following: Read or write more than one record with an ENCODE or DECODE statement. Write more records than existed. 28 severe (28): CLOSE error FOR$IOS_CLOERR. An error condition was detected by the DIGITAL Fortran 90 RTL I/O system during execution of a CLOSE statement.
23、29 severe (29): File not found FOR$IOS_FILNOTFOU. A file with the specified name could not be found during an open operation. 30 severe (30): Open failure FOR$IOS_OPEFAI. An error was detected by the DIGITAL Fortran 90 RTL I/O system while attempting to open a file in an OPEN, INQUIRE, or other I/O
24、statement. This message is issued when the error 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 fi
25、le that had been closed 31 severe (31): Mixed file access modes FOR$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 sequential A DIGITAL Fortran 90
26、RTL I/O statement on a logical unit that was opened by a program coded in another language 32 severe (32): Invalid logical unit number FOR$IOS_INVLOGUNI. A logical unit number greater than 2,147,483,647 or less than zero was used in an I/O statement. 33 severe (33): ENDFILE error FOR$IOS_ENDFILERR.
27、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 execu
28、tion of an ENDFILE statement. 34 severe (34): Unit already open FOR$IOS_UNIALROPE. A DEFINE FILE statement specified a logical unit that was already opened. 35 severe (35): Segmented record format error FOR$IOS_SEGRECFOR. An invalid segmented record control data word was detected in an unformatted s
29、equential file. The file was probably either created with RECORDTYPE= FIXED or VARIABLE in effect, or was created by a program written in a language other than Fortran or Fortran 90. 36 severe (36): Attempt to access non-existent record FOR$IOS_ATTACCNON. A direct-access READ or FIND statement attem
30、pted to access beyond the end of a relative file (or a sequential file on disk with fixed-length records) or access a record that was previously deleted in a relative file. 37 severe (37): Inconsistent record length FOR$IOS_INCRECLEN. An attempt was made to open a direct access file without specifyi
31、ng a record length. 38 severe (38): Error during write FOR$IOS_ERRDURWRI. The DIGITAL Fortran 90 RTL I/O system detected an error condition during execution of a WRITE statement. 39 severe (39): Error during read FOR$IOS_ERRDURREA. The DIGITAL Fortran 90 RTL I/O system detected an error condition du
32、ring execution of a READ statement. 40 severe (40): Recursive I/O operation FOR$IOS_RECIO_OPE. While processing an I/O statement for a logical unit, another I/O operation on the same logical unit was attempted, such as a function subprogram that performs I/O to the same logical unit that was referenced in an expression in an I/O list
copyright@ 2008-2023 冰点文库 网站版权所有
经营许可证编号:鄂ICP备19020893号-2