forums.silverfrost.com Forum Index forums.silverfrost.com
Welcome to the Silverfrost forums
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

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

 
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> Support
View previous topic :: View next topic  
Author Message
DanRRight



Joined: 10 Mar 2008
Posts: 2819
Location: South Pole, Antarctica

PostPosted: Tue Apr 29, 2008 11:17 am    Post subject: Is there a Fortran Standard on Write(*,*) Reply with quote

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
View user's profile Send private message
PaulLaidler
Site Admin


Joined: 21 Feb 2005
Posts: 7928
Location: Salford, UK

PostPosted: Tue Apr 29, 2008 12:31 pm    Post subject: Reply with quote

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
View user's profile Send private message AIM Address
JohnCampbell



Joined: 16 Feb 2006
Posts: 2554
Location: Sydney

PostPosted: Wed Apr 30, 2008 1:33 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> Support All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group