CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Programming & Development

Formatting with Info

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 3, 2012, 07:51
Default Formatting with Info
  #1
New Member
 
Sune Niemann
Join Date: Aug 2011
Posts: 18
Rep Power: 14
Sune is on a distinguished road
Hello all

I would like to know if it is possible to include some kind of string formatting (like with printf, sprintf etc.) into the OpenFOAM standard output stream Info.

For the specific case I work on, I have some doubles I output with Info, with tabs to align the values. But due to the way Info works, the number of decimals shown is not constant, and once in a while if a long negative number is displayed everything shifts around due to the tabs.

I know it is cosmetics, but I would like the numbers to be aligned throughout the whole simulation.

I don't use printf since I've read Info is specially suited for parallel runs, and also fprintf(Info,"some str",values) is not possible.


Sune
Sune is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
How to give enough info to get help linnemann OpenFOAM 8 September 20, 2017 09:19
[ICEM] Mesh info for a particular Block vmlxb6 ANSYS Meshing & Geometry 1 May 2, 2011 05:53
OpenFOAM with Cygwin kitchener OpenFOAM Installation 6 April 24, 2006 23:09
Accessing Neighbouring Cell info Murali Siemens 1 December 9, 2002 06:10


All times are GMT -4. The time now is 16:19.