|Jun7-10, 02:50 AM||#1|
Turn off writing to screen in Fortran 90
Is there a command available that makes the compiler ignore all write(*,*) statements?!
The thing is, I'm working on a code which will eventually run for several hours (perhaps days) to complete a single run. At the moment I'm testing so I write a lot of data to the screen in order to 'follow the program', but once I start do production runs the screen writing will probably take valuable time so then I want to turn it off.
Of course I can write if..then statements around each write(*,*) such that I can use a variable to switch writing on or off, but I was wondering if there might be a compiler command to suppress write(*,*) statements?!
Thanks in advance
|Jun7-10, 08:22 AM||#2|
If you're using a Unix-based system, you can redirect standard output to /dev/null:
% myprogram > /dev/null
|Jun7-10, 08:24 AM||#3|
And if I use a windows system? (I have linux at home, but my university uses windows)
|fortran 90, screen, write|
|Similar Threads for: Turn off writing to screen in Fortran 90|
|Fortran; Calling an executable that in turn runs an input file||Programming & Comp Sci||1|
|Accessing Fortran Modules within a Fortran library from Fortran||Programming & Comp Sci||0|
|Fortran v.s. Visual Fortran||Programming & Comp Sci||0|
|Rate Of Turn and Turn Radius of an aircraft||Introductory Physics Homework||2|
|Simple question about writing a log--how does the root go turn to divison?||Introductory Physics Homework||2|