How can I left-justify numerical output in fortran?
Posted
by
mishaF
on Stack Overflow
See other posts from Stack Overflow
or by mishaF
Published on 2010-12-28T21:49:26Z
Indexed on
2010/12/28
21:54 UTC
Read the original article
Hit count: 161
I am writing some simple output in fortran, but I want whitespace delimiters. If use the following statement, however:
format(A20,ES18.8,A12,ES18.8)
I get output like this:
p001t0000 3.49141273E+01obsgp_oden 1.00000000E+00
I would prefer this:
p001t0000 3.49141273E+01 obsgp_oden 1.00000000E+00
I tried using negative values for width (like in Python) but no dice. So, is there a way to left-justify the numbers?
Many thanks in advance!
© Stack Overflow or respective owner