Loading...
You are not logged-in Login/Register





  • Posts   Search Threads
  • jesperseJuly 10, 2009 9:46 AM PDT   
    How to flush output written to *

    Given an existing code that writes to * a lot.  I'm trying to force all those writes to be flushed,
    to help tracking down a problem (code is being run  under a batch system, so writes to *
    do not come to the screen).
    I've tried "FLUSH(6)" and "FLUSH(UNIT=6)" but they fail at runtime with the message
    "Unit 6 is not connected".  Also "FLUSH(*)" and "FLUSH(UNIT=*)" fail at compile time,
    while as you might expect "FLUSH('*')" and "FLUSH(UNIT='*')" fail at run time.
    This is compiler version 11.1.038.
    What's a good way to get standard output (written to *) flushed?

    Steve Lionel (Intel)July 10, 2009 10:01 AM PDT
    Rate
     
    Re: How to flush output written to *

    Compile with -assume noold_unit_star and then use FLUSH(6).


    Steve

    Attaching or including files in a post
    Doctor Fortran blog
    @DoctorFortran on Twitter

Forum jump:  

Intel Software Network Forums Statistics

16,367 users have contributed to 46,339 threads and 163,926 posts to date.

In the past 24 hours, we have 27 new thread(s) 145 new posts(s), and 83 new user(s).

In the past 3 days, the most popular thread for everyone has been Formula for the intersection of straight lines The most posts were made to Take a look at John Burkhard&# The post with the most views is \"-check none\" generates error

Please welcome our newest member dozo1971


For more complete information about compiler optimizations, see our Optimization Notice.