Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

how can I flush write(*,*)?

Gabriele_B_
Beginner
1,342 Views

hi,

I read this topic about the flush https://software.intel.com/en-us/forums/intel-fortran-compiler-for-linux-and-mac-os-x/topic/269255

But what if I want to flush a write(*,*) like this? Which argument should I give?

Thanks

GB

0 Kudos
1 Solution
Steven_L_Intel1
Employee
1,342 Views

use, intrinsic :: iso_fortran_env
...
flush(OUTPUT_UNIT)

Be sure to compile with -standard-semantics (or, a smaller hammer, -assume noold_unit_star)

View solution in original post

0 Kudos
2 Replies
Steven_L_Intel1
Employee
1,343 Views

use, intrinsic :: iso_fortran_env
...
flush(OUTPUT_UNIT)

Be sure to compile with -standard-semantics (or, a smaller hammer, -assume noold_unit_star)

0 Kudos
Gabriele_B_
Beginner
1,342 Views

thanks, it works

0 Kudos
Reply