View previous topic :: View next topic |
Author |
Message |
Anonymous Guest
|
Posted: Wed Feb 08, 2006 12:54 am Post subject: Output results on Screen as well as file |
|
|
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
|
Posted: Wed Feb 08, 2006 2:10 am Post subject: Output results on Screen as well as file |
|
|
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 |
|
|
|