The information in this article applies to:
SYMPTOMSAn application that uses a NAMELIST-directed READ statement to initialize an array of COMPLEX values generates incorrect results. CAUSEThis error occurs when the data in the input file has one element per line. RESOLUTIONTo work around this problem, modify the data in the input file to place the data for all array elements on one line. STATUSMicrosoft has confirmed this to be a problem in FORTRAN version 5.0 for MS-DOS and OS/2. This problem was corrected in FORTRAN version 5.1 for MS-DOS and OS/2. MORE INFORMATIONThe following code example reads the NAMELIST data file TEST.DAT. Sample Code
NAMELIST Input File #1
Using NAMELIST Input File #1, the code example produces the following
output.
(1.000000,3.000000) (5.000000,7.000000)The output should be as follows. (1.000000,2.000000) (3.000000,4.000000)To work around this problem, rearrange the data in the input file to place all the elements on one line. The following input file demonstrates this solution. NAMELIST Input File #2
Note: A data file can contain repeat factors if the data contains more
than one element with the same value. The following input file
demonstrates this technique.
NAMELIST Input File #3
Additional query words: 5.00 buglist5.00 fixlist5.10
Keywords : |
Last Reviewed: November 2, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |