Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
04-02-2014, 05:20 AM
|
#1
|
Member
Registered: Feb 2013
Posts: 274
Rep:
|
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:
open (is1, file='tmpfil',form='formatted',status='SCRATCH')
1
Error: The STATUS specified in OPEN statement at (1) cannot have the value SCRATCH if a FILE specifier is present
|
I don't know if here is the place to ask this question or I should be diverted somewhere else.
Please guide me on this.
|
|
|
04-02-2014, 08:32 AM
|
#2
|
LQ Newbie
Registered: Mar 2011
Posts: 11
Rep:
|
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,
|
|
|
04-02-2014, 09:37 AM
|
#3
|
Member
Registered: Feb 2013
Posts: 274
Original Poster
Rep:
|
Hi, I have enclosed the code. With some manipulations, I am receiving a new error:
Quote:
At line 126 of file grid2cube.f (unit = 5, file = 'stdin')
Fortran runtime error: End of file
|
The input file of this code is generated by a bigger code and I can read the contents of the input to be able to see what is wrong with the input.
I would be extremely thankful if anyone help to solve this problem.
|
|
|
All times are GMT -5. The time now is 10:29 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|