![]() |
A question about compilation error
Hi,
I have a code written in fortran. When I compile it with gfortran, mpif90 or f95, I receive the following error: Quote:
Please guide me on this. |
From the looks of it, the open function does not allow you to specify a file name when using status='SCRATCH'
From: http://static.cray-cyber.org/Documen...F10E/OPEN.HTML if OLD or NEW is specified, the FILE= specifier must be designated. If SCRATCH is specified, the FILE= specifier cannot be specified. From: http://docs.oracle.com/cd/E19957-01/...naf/index.html 'SCRATCH' -- For a file opened with STATUS='SCRATCH', a temporary file with a name of the form tmp.FAAAxnnnnn is opened. Any other STATUS specifier without an associated file name results in opening a file named 'fort.n', where n is the specified logical unit number. By default, a scratch file is deleted when closed or during normal termination. If the program aborts, then the file may not be deleted. To prevent deletion, CLOSE with STATUS='KEEP'. Hope that helps, |
1 Attachment(s)
Hi, I have enclosed the code. With some manipulations, I am receiving a new error:
Quote:
I would be extremely thankful if anyone help to solve this problem. |
All times are GMT -5. The time now is 05:00 AM. |