|
[Sponsors] |
Two questions concerning formatting and structure |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
May 23, 2008, 13:40 |
Dear Maintainers,
Good even
|
#1 |
Senior Member
Daniel WEI (老魏)
Join Date: Mar 2009
Location: Beijing, China
Posts: 689
Blog Entries: 9
Rep Power: 21 |
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 |
|
May 23, 2008, 20:42 |
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 |
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 |
|
May 23, 2008, 21:48 |
Great! Thank you, Takuya. Here
|
#3 |
Senior Member
Daniel WEI (老魏)
Join Date: Mar 2009
Location: Beijing, China
Posts: 689
Blog Entries: 9
Rep Power: 21 |
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 |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
FVM for structure | Raj | Main CFD Forum | 1 | October 19, 2008 09: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 13:04 |