Thread Closed

Turn off writing to screen in Fortran 90

 
Share Thread Thread Tools
Jun7-10, 02:50 AM   #1
 

Turn off writing to screen in Fortran 90


Hi,
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
PhysOrg.com
PhysOrg
science news on PhysOrg.com

>> King Richard III found in 'untidy lozenge-shaped grave'
>> Google Drive sports new view and scan enhancements
>> Researcher admits mistakes in stem cell study
Jun7-10, 08:22 AM   #2
 
Mentor
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
 
nice, thanks!

And if I use a windows system? (I have linux at home, but my university uses windows)
Thread Closed

Tags
fortran 90, screen, write
Thread Tools


Similar Threads for: Turn off writing to screen in Fortran 90
Thread Forum Replies
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