Skip to content

Instantly share code, notes, and snippets.

@andersx
Created December 28, 2016 13:59
Show Gist options
  • Save andersx/5033818476e63001cfc1d9091ab74595 to your computer and use it in GitHub Desktop.
Save andersx/5033818476e63001cfc1d9091ab74595 to your computer and use it in GitHub Desktop.
Print to std err/out from fortran
program test
use, intrinsic :: iso_fortran_env, only : stdout=>output_unit, &
stderr=>error_unit
implicit none
write (stdout, *) "Prints to stdout"
write (stderr, *) "Prints to stderr"
end program test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment