forums.silverfrost.com Forum Index forums.silverfrost.com
Welcome to the Silverfrost forums
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

ftn95 handling of IO units?

 
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> General
View previous topic :: View next topic  
Author Message
Zrblm



Joined: 21 Jun 2005
Posts: 2

PostPosted: Tue Jun 21, 2005 12:27 pm    Post subject: ftn95 handling of IO units? Reply with quote

Does FTN95 handle IO units in some unusual way? I'm testing the compiler by attempting to port over some code written using Sun's f95, and I'm getting a result that doesn't make sense to me. Specifically, I have an IO unit open for writing to an output file:

open(unit=iounit2,file=tracename,status='unknown')
write (*,*) 'Output file opened'

and then when I write to standard output further down in the code, it ends up in my output file instead. Am I doing something subtly wrong?
Back to top
View user's profile Send private message
PaulLaidler
Site Admin


Joined: 21 Feb 2005
Posts: 7916
Location: Salford, UK

PostPosted: Wed Jun 22, 2005 12:30 am    Post subject: ftn95 handling of IO units? Reply with quote

The value of iounit2 must not be 2 or 6.
For simplicity user values for IO units should be greater than 6.
Back to top
View user's profile Send private message AIM Address
Zrblm



Joined: 21 Jun 2005
Posts: 2

PostPosted: Wed Jun 22, 2005 10:12 am    Post subject: ftn95 handling of IO units? Reply with quote

Aha, that'd be why. Reserved unit numbers seem to be compiler-dependent. Thanks!
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> General All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group