- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The FORTRAN code I'm working on writes its main output to unit 6. It also uses a number of STOP statements when trapping for errors.
When I previously used the Lahey compiler the strings associated with the STOP statements were written to the terminal window, not unit 6. However, since moving to Intel the STOP strings are written to unit 6 instead of the terminal window.
Any ideas of how I can revert to the STOP strings being written to the terminal window?
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
In Intel Fortran, STOP writes to the "standard error" stream. By default that's going to be the same console that is open on unit 6.
Are you explicitly opening unit 6? My experiment is that if you do that, the STOP output still goes to the console.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Yes, I'm explicitly opening unit 6.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Not seeing it.
[sblionel@f90srv35 ~/project]$ cat U508724.f90 open (unit=6,file='test.txt',form='formatted') write (6,*) "This is unit 6" stop "The World" end [sblionel@f90srv35 ~/project]$ ifort -V U508724.f90 Intel(R) Fortran Compiler XE for applications running on IA-32, Version 14.0.0.080 Build 20130728 Copyright (C) 1985-2013 Intel Corporation. All rights reserved. Intel(R) Fortran 14.0-1565 GNU ld version 2.17.50.0.6-20.el5 20061020 [sblionel@f90srv35 ~/project]$ ./a.out The World [sblionel@f90srv35 ~/project]$ cat test.txt This is unit 6 [sblionel@f90srv35 ~/project]$

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