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

Two questions concerning formatting and structure

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread 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: Beijing, China
Posts: 689
Blog Entries: 9
Rep Power: 21
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
-------------
Boeing Research & Technology - China
Beijing, China
Email
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: 20
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: Beijing, China
Posts: 689
Blog Entries: 9
Rep Power: 21
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
-------------
Boeing Research & Technology - China
Beijing, China
Email
lakeat is offline   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
FVM for structure Raj Main CFD Forum 1 October 19, 2008 08:32
help with udf structure rana FLUENT 3 December 14, 2007 05:06
structure won't appear wan UNIMAP CFX 3 December 13, 2007 16:16
Structure of CFD code Shyam Main CFD Forum 5 April 26, 2006 12:04


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