Silverfrost Forums

Welcome to our forums

Is there a Fortran Standard on Write(*,*)

29 Apr 2008 10:17 #3088

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)

29 Apr 2008 11:31 #3089

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.

30 Apr 2008 12:33 #3092

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.

Please login to reply.