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 

Output results on Screen as well as file

 
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> Support
View previous topic :: View next topic  
Author Message
Anonymous
Guest





PostPosted: Wed Feb 08, 2006 12:54 am    Post subject: Output results on Screen as well as file Reply with quote

If anybody wants to see results of output on screen as well as on output file , what is to be done. It is noticed that after giving a command for opening an output file , there is no output on screen. What command shall be used to get output on screen as well.
Back to top
Anonymous
Guest





PostPosted: Wed Feb 08, 2006 2:10 am    Post subject: Output results on Screen as well as file Reply with quote

Fortran units go to only one place -- either the screen or a file in this case. It is as if you had redirected output via a standard redirection

e.g.

myprog >res.txt

sends all the screen output to res.txt.

The standard way to approach what you want to do is to use a subroutine to write to screen and then have the subroutine write to both places. I know this can be easier said than done if you have write statements with 50 arguments...
Back to top
Display posts from previous:   
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> Support 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