CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > General Forums > Main CFD Forum

maximum output line length in fortran under linux

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 11, 2001, 06:42
Default maximum output line length in fortran under linux
  #1
Sergei Chernyshenko
Guest
 
Posts: n/a
Hi,

The following code

open(1,file='tw')

x=sin(1.0)

write(1,*) x,x,x,x,x,x,x,x,x

close(1)

stop

end

compiled with g77 or f2c and run under linux produces two lines instead of one in tw: the output line is wrapped somewhere about 80-th column. How to change this behaviour?

Thanks

Sergei
  Reply With Quote

Old   May 11, 2001, 08:15
Default Re: maximum output line length in fortran under li
  #2
stefan
Guest
 
Posts: n/a
Use a formatted output, e.g.

write(1,'(9e14.6)') x,x,x,x,x,x,x,x,x
  Reply With Quote

Old   May 11, 2001, 08:25
Default Re: maximum output line length in fortran under li
  #3
Sergei Chernyshenko
Guest
 
Posts: n/a
Thanks, Stefan,

I've just found it out myself 5 min ago .

Sergei
  Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
User fortran routines, DEBUG AND OUTPUT Bloshchitsyn Vladimir CFX 5 October 29, 2007 02:31
Fortran editor for Linux Praveen. C Main CFD Forum 15 August 27, 2007 22:50
read in line / fortran jojo Main CFD Forum 5 September 15, 2006 10:41
errors Fahad Main CFD Forum 0 March 23, 2004 14:20
Problems of Duns Codes! Martin J Main CFD Forum 8 August 15, 2003 00:19


All times are GMT -4. The time now is 14:18.