I am trying to print a long line of integer
type variables.
If I do:
print *, tape_data(i)%ts%year, tape_data(i)%ts%month, tape_data(i)%ts%day, &
tape_data(i)%ts%hour, tape_data(i)%ts%minute, tape_data(i)%ts%second, &
tape_data(i)%value1, tape_data(i)%value2
I get:
2010 12 30 23 0 1
125550 1
If I do:
print *, tape_data(i)%ts%year, tape_data(i)%ts%month, tape_data(i)%ts%day, &
tape_data(i)%value1, tape_data(i)%value2
Then I get everything in the same line:
2010 12 30 125550 1
So it seems like print
adds a new line at a certain width.
Is that the case? If so, how can I put everything in the same line?
I am using flang
and trying to use Fortran 95
(although I do not know how to enforce that in flang
).
Note: as it has been asked a few times, I am using Fortran 95 because I want to learn that standard and have a couple of books I am following that cover that standard, once learnt I will probably move to the next one. I also like to understand differences between standards.