- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I have a basic question about creating and opening a file in a new directory under Linux Intel Fortran compiler.
I used to be able to do this by specifying the path and having STATUS='unknown' under windows CVF compiler. But it seems the Intel compiler has a differnt support for this feature?
This is the part of the fortran code that is relevant to the problem:
part of my code is:
filename = '/output/lat'//trim(adjust(clat))//'_lon'//trim(adjust(clon))//'_CT7'
OPEN(UNIT=77,FILE=trim(filename),STATUS='UNKNOWN')
and the error is:
forrtl: No such file or directory
forrtl: severe (29): file not found, unit 77, file /output/lat89_lon200_CT7
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
mecej4 wrote:Thank you so much!! the problem solved.Whether on Windows or Linux, you must first create the directory (if it does not already exist) before creating a file in the directory.
To create a root-level directory such as /output you may require filesystem permissions that ordinary users are not usually in possession of.

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page