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

Two questions concerning formatting and structure

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

Reply
 
LinkBack Thread Tools Display Modes
Old   May 23, 2008, 12:40
Default Dear Maintainers, Good even
  #1
Senior Member
 
lakeat's Avatar
 
Daniel WEI (老魏)
Join Date: Mar 2009
Location: South Bend, IN, USA
Posts: 688
Blog Entries: 9
Rep Power: 12
lakeat is on a distinguished road
Send a message via Skype™ to lakeat
Dear Maintainers,

Good evening!
1. How to post double spaces? it's annoying every time I tried to post some code, many spaces are shorten to one space!

2. Can the topic structure be modified to a more detailed way.
eg.,
devided
OpenFOAM Message Board: OpenFOAM: Installation
into
Installation--Windows;
Installation--Linux;
Installation--Mac;
Installation--Unix;
...
or some places for dummy.

Daniel
__________________
~
Daniel WEI
-------------
NatHaz Modeling Laboratory
Department of Civil & Environmental Engineering & Earth Sciences
University of Notre Dame, USA
Email || My Personal CFD Blog
lakeat is offline   Reply With Quote

Old   May 23, 2008, 19:42
Default Hi Daniel, @1: I use
 
			         
  #2
Super Moderator
 
Takuya OSHIMA
Join Date: Mar 2009
Location: Niigata City, Japan
Posts: 518
Blog Entries: 1
Rep Power: 11
7islands is on a distinguished road
Hi Daniel,

@1: I use <pre> - </pre> tags to format code retaining indents as in this post. You have to escape closing brace (}) with a prepending \ (i. e. "\}"). This seems to be an undocumented feature by the way.

Takuya
7islands is offline   Reply With Quote

Old   May 23, 2008, 20:48
Default Great! Thank you, Takuya. Here
  #3
Senior Member
 
lakeat's Avatar
 
Daniel WEI (老魏)
Join Date: Mar 2009
Location: South Bend, IN, USA
Posts: 688
Blog Entries: 9
Rep Power: 12
lakeat is on a distinguished road
Send a message via Skype™ to lakeat
Great! Thank you, Takuya. Here's a test.
<pre>......
if (bufferSizeName.size())
{
int bufferSize = atoi(bufferSizeName.c_str());

if (bufferSize)
{
MPI_Buffer_attach(new char[bufferSize], bufferSize);
}
}
else
{
FatalErrorIn("Pstream::init(int& argc, char**& argv)")
<< "Pstream::init(int& argc, char**& argv) : "
<< "environment variable MPI_BUFFER_SIZE not defined"
<< Foam::abort(FatalError);
}
# endif
......</pre>


Daniel
__________________
~
Daniel WEI
-------------
NatHaz Modeling Laboratory
Department of Civil & Environmental Engineering & Earth Sciences
University of Notre Dame, USA
Email || My Personal CFD Blog
lakeat is offline   Reply With Quote

Reply

Thread Tools
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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
FVM for structure Raj Main CFD Forum 1 October 19, 2008 08:32
help with udf structure rana FLUENT 3 December 14, 2007 06:06
structure won't appear wan UNIMAP CFX 3 December 13, 2007 17:16
Structure of CFD code Shyam Main CFD Forum 5 April 26, 2006 12:04


All times are GMT -4. The time now is 15:23.