View previous topic :: View next topic |
Author |
Message |
DanRRight
Joined: 10 Mar 2008 Posts: 2819 Location: South Pole, Antarctica
|
Posted: Tue Apr 29, 2008 11:17 am Post subject: Is there a Fortran Standard on Write(*,*) |
|
|
or Print* ? Many compilers do such format output very differently. Is it because there is no strict requirement for this format?
Here is how unix fortran made print* output
nam= 4 ll= 4 uu= 4
(for those who do not see that precisely, there is
two spaces before the number and one after)
and here is how Salford FTN95 made it
nam= 4 ll= 4 uu= 4
(11 spaces before the number and zero after) |
|
Back to top |
|
|
PaulLaidler Site Admin
Joined: 21 Feb 2005 Posts: 7928 Location: Salford, UK
|
Posted: Tue Apr 29, 2008 12:31 pm Post subject: |
|
|
List-directed output is compiler dependent.
For portability you should use formatted output.
i.e. the Standard does not specify the details for list-directed output. |
|
Back to top |
|
|
JohnCampbell
Joined: 16 Feb 2006 Posts: 2554 Location: Sydney
|
Posted: Wed Apr 30, 2008 1:33 am Post subject: |
|
|
For exporting information from fortran to other packages, I typically use text files where the information is either tab delimeted (.txt) or comma delimited (.csv).
These can be reaily imported into excel or most other packages. |
|
Back to top |
|
|
|