STYLE: Replace tabs by 4 spaces in bin, tutorials, src, ... & clean-up by hand
This commit is contained in:
parent
db5b22a978
commit
a9ef31fa39
11 changed files with 107 additions and 109 deletions
|
@ -45,27 +45,27 @@ h3 { font-size: 14px; }
|
||||||
* Give a slightly different background to make it easier to find.
|
* Give a slightly different background to make it easier to find.
|
||||||
*/
|
*/
|
||||||
div.line {
|
div.line {
|
||||||
font-family: monospace, fixed;
|
font-family: monospace, fixed;
|
||||||
font-size: 13px;
|
font-size: 13px;
|
||||||
line-height: 1.0;
|
line-height: 1.0;
|
||||||
text-wrap: unrestricted;
|
text-wrap: unrestricted;
|
||||||
white-space: -moz-pre-wrap; /* Moz */
|
white-space: -moz-pre-wrap; /* Moz */
|
||||||
white-space: -pre-wrap; /* Opera 4-6 */
|
white-space: -pre-wrap; /* Opera 4-6 */
|
||||||
white-space: -o-pre-wrap; /* Opera 7 */
|
white-space: -o-pre-wrap; /* Opera 7 */
|
||||||
white-space: pre-wrap; /* CSS3 */
|
white-space: pre-wrap; /* CSS3 */
|
||||||
word-wrap: break-word; /* IE 5.5+ */
|
word-wrap: break-word; /* IE 5.5+ */
|
||||||
text-indent: -53px;
|
text-indent: -53px;
|
||||||
padding-left: 53px;
|
padding-left: 53px;
|
||||||
padding-bottom: 0px;
|
padding-bottom: 0px;
|
||||||
margin: 0px;
|
margin: 0px;
|
||||||
}
|
}
|
||||||
|
|
||||||
span.lineno {
|
span.lineno {
|
||||||
padding-right: 4px;
|
padding-right: 4px;
|
||||||
text-align: right;
|
text-align: right;
|
||||||
border-right: 2px solid #ddddff;
|
border-right: 2px solid #ddddff;
|
||||||
background-color: #ddddff;
|
background-color: #ddddff;
|
||||||
white-space: pre;
|
white-space: pre;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -354,7 +354,7 @@ string getEnv(const word& envName)
|
||||||
actualBuffer.get(),
|
actualBuffer.get(),
|
||||||
actualBufferSize);
|
actualBufferSize);
|
||||||
envAsString = actualBuffer.get();
|
envAsString = actualBuffer.get();
|
||||||
toUnixPath(envAsString);
|
toUnixPath(envAsString);
|
||||||
}
|
}
|
||||||
|
|
||||||
return envAsString;
|
return envAsString;
|
||||||
|
@ -376,7 +376,7 @@ bool setEnv
|
||||||
|
|
||||||
word hostName()
|
word hostName()
|
||||||
{
|
{
|
||||||
const bool full = true;
|
const bool full = true;
|
||||||
const DWORD bufferSize = MAX_COMPUTERNAME_LENGTH + 1;
|
const DWORD bufferSize = MAX_COMPUTERNAME_LENGTH + 1;
|
||||||
TCHAR buffer[bufferSize];
|
TCHAR buffer[bufferSize];
|
||||||
DWORD actualBufferSize = bufferSize;
|
DWORD actualBufferSize = bufferSize;
|
||||||
|
@ -756,8 +756,8 @@ fileName::Type type(const fileName& name)
|
||||||
if (attrs != INVALID_FILE_ATTRIBUTES)
|
if (attrs != INVALID_FILE_ATTRIBUTES)
|
||||||
{
|
{
|
||||||
fileType = (attrs & FILE_ATTRIBUTE_DIRECTORY) ?
|
fileType = (attrs & FILE_ATTRIBUTE_DIRECTORY) ?
|
||||||
fileName::DIRECTORY :
|
fileName::DIRECTORY :
|
||||||
fileName::FILE;
|
fileName::FILE;
|
||||||
}
|
}
|
||||||
|
|
||||||
return fileType;
|
return fileType;
|
||||||
|
@ -804,7 +804,7 @@ bool isFile(const fileName& name, const bool checkGzip)
|
||||||
{
|
{
|
||||||
const DWORD attrs = ::GetFileAttributes(name.c_str());
|
const DWORD attrs = ::GetFileAttributes(name.c_str());
|
||||||
const bool success = ((attrs != INVALID_FILE_ATTRIBUTES) &&
|
const bool success = ((attrs != INVALID_FILE_ATTRIBUTES) &&
|
||||||
!(attrs & FILE_ATTRIBUTE_DIRECTORY)) ||
|
!(attrs & FILE_ATTRIBUTE_DIRECTORY)) ||
|
||||||
(checkGzip && isGzFile(name));
|
(checkGzip && isGzFile(name));
|
||||||
|
|
||||||
return success;
|
return success;
|
||||||
|
@ -1322,7 +1322,7 @@ bool dlClose(void* const handle)
|
||||||
|
|
||||||
if (success)
|
if (success)
|
||||||
{
|
{
|
||||||
getLoadedLibs().erase(handle);
|
getLoadedLibs().erase(handle);
|
||||||
}
|
}
|
||||||
|
|
||||||
return success;
|
return success;
|
||||||
|
@ -1342,8 +1342,8 @@ void* dlSym(void* handle, const std::string& symbol)
|
||||||
if (NULL == fun)
|
if (NULL == fun)
|
||||||
{
|
{
|
||||||
WarningIn("dlSym(void*, const std::string&)")
|
WarningIn("dlSym(void*, const std::string&)")
|
||||||
<< "Cannot lookup symbol " << symbol << " : " << MSwindows::getLastError()
|
<< "Cannot lookup symbol " << symbol << " : " << MSwindows::getLastError()
|
||||||
<< endl;
|
<< endl;
|
||||||
}
|
}
|
||||||
|
|
||||||
return fun;
|
return fun;
|
||||||
|
@ -1360,10 +1360,10 @@ bool dlSymFound(void* handle, const std::string& symbol)
|
||||||
<< " : GetProcAddress of " << symbol << endl;
|
<< " : GetProcAddress of " << symbol << endl;
|
||||||
}
|
}
|
||||||
|
|
||||||
// get address of symbol
|
// get address of symbol
|
||||||
void* fun = (void*) ::GetProcAddress(static_cast<HMODULE>(handle), symbol.c_str());
|
void* fun = (void*) ::GetProcAddress(static_cast<HMODULE>(handle), symbol.c_str());
|
||||||
|
|
||||||
return (NULL != fun);
|
return (NULL != fun);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -1375,17 +1375,17 @@ bool dlSymFound(void* handle, const std::string& symbol)
|
||||||
fileNameList dlLoaded()
|
fileNameList dlLoaded()
|
||||||
{
|
{
|
||||||
fileNameList libs;
|
fileNameList libs;
|
||||||
int counter(0);
|
int counter(0);
|
||||||
OfLoadedLibs & loadedLibs = getLoadedLibs();
|
OfLoadedLibs & loadedLibs = getLoadedLibs();
|
||||||
|
|
||||||
for
|
for
|
||||||
(
|
(
|
||||||
OfLoadedLibs::const_iterator it = loadedLibs.begin();
|
OfLoadedLibs::const_iterator it = loadedLibs.begin();
|
||||||
it != loadedLibs.end();
|
it != loadedLibs.end();
|
||||||
++it
|
++it
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
libs.newElmt(counter++) = it->second;
|
libs.newElmt(counter++) = it->second;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (MSwindows::debug)
|
if (MSwindows::debug)
|
||||||
|
|
|
@ -38,7 +38,7 @@ License
|
||||||
# define major(dev) ((int)(((dev) >> 8) & 0xff))
|
# define major(dev) ((int)(((dev) >> 8) & 0xff))
|
||||||
# define minor(dev) ((int)((dev) & 0xff))
|
# define minor(dev) ((int)((dev) & 0xff))
|
||||||
# define makedev(major, minor) ((((unsigned int) (major)) << 8) \
|
# define makedev(major, minor) ((((unsigned int) (major)) << 8) \
|
||||||
| ((unsigned int) (minor)))
|
| ((unsigned int) (minor)))
|
||||||
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
|
@ -104,7 +104,7 @@ void Foam::sigQuit::set(const bool verbose)
|
||||||
|
|
||||||
if( SIG_ERR == oldAction_ )
|
if( SIG_ERR == oldAction_ )
|
||||||
{
|
{
|
||||||
oldAction_ = SIG_DFL;
|
oldAction_ = SIG_DFL;
|
||||||
|
|
||||||
FatalErrorIn
|
FatalErrorIn
|
||||||
(
|
(
|
||||||
|
|
|
@ -253,7 +253,7 @@ Foam::Time::Time
|
||||||
IOobject::NO_READ,
|
IOobject::NO_READ,
|
||||||
IOobject::AUTO_WRITE
|
IOobject::AUTO_WRITE
|
||||||
),
|
),
|
||||||
*this
|
*this
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -324,7 +324,7 @@ Foam::Time::Time
|
||||||
IOobject::NO_READ,
|
IOobject::NO_READ,
|
||||||
IOobject::AUTO_WRITE
|
IOobject::AUTO_WRITE
|
||||||
),
|
),
|
||||||
*this
|
*this
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -391,7 +391,7 @@ Foam::Time::Time
|
||||||
IOobject::NO_READ,
|
IOobject::NO_READ,
|
||||||
IOobject::AUTO_WRITE
|
IOobject::AUTO_WRITE
|
||||||
),
|
),
|
||||||
*this
|
*this
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -86,9 +86,7 @@ class profilingPool
|
||||||
// Private Member Functions
|
// Private Member Functions
|
||||||
|
|
||||||
//- Disallow default bitwise copy construct
|
//- Disallow default bitwise copy construct
|
||||||
profilingPool(
|
profilingPool(const profilingPool&);
|
||||||
const profilingPool&
|
|
||||||
);
|
|
||||||
|
|
||||||
//- Disallow default bitwise assignment
|
//- Disallow default bitwise assignment
|
||||||
void operator=(const profilingPool&);
|
void operator=(const profilingPool&);
|
||||||
|
@ -103,7 +101,8 @@ class profilingPool
|
||||||
// Constructors
|
// Constructors
|
||||||
|
|
||||||
//- Construct null
|
//- Construct null
|
||||||
profilingPool(
|
profilingPool
|
||||||
|
(
|
||||||
const IOobject&,
|
const IOobject&,
|
||||||
const Time&
|
const Time&
|
||||||
);
|
);
|
||||||
|
@ -142,14 +141,13 @@ class profilingPool
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
|
||||||
static void initProfiling(
|
static void initProfiling
|
||||||
|
(
|
||||||
const IOobject&,
|
const IOobject&,
|
||||||
const Time&
|
const Time&
|
||||||
);
|
);
|
||||||
|
|
||||||
static void stopProfiling(
|
static void stopProfiling(const Time&);
|
||||||
const Time&
|
|
||||||
);
|
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
||||||
|
|
|
@ -235,7 +235,7 @@ void hollowConeRefinement::operator=(const dictionary& d)
|
||||||
{
|
{
|
||||||
FatalErrorIn
|
FatalErrorIn
|
||||||
(
|
(
|
||||||
"void hollowConeRefinement::operator=(const dictionary& d)"
|
"void hollowConeRefinement::operator=(const dictionary& d)"
|
||||||
) << "Entry radius0_Inner is not specified!" << exit(FatalError);
|
) << "Entry radius0_Inner is not specified!" << exit(FatalError);
|
||||||
r0Inner_ = -1.0;
|
r0Inner_ = -1.0;
|
||||||
}
|
}
|
||||||
|
@ -272,11 +272,11 @@ void hollowConeRefinement::operator=(const dictionary& d)
|
||||||
// specify radius
|
// specify radius
|
||||||
if( dict.found("radius1_Inner") )
|
if( dict.found("radius1_Inner") )
|
||||||
{
|
{
|
||||||
r1Inner_ = readScalar(dict.lookup("radius1_Inner"));
|
r1Inner_ = readScalar(dict.lookup("radius1_Inner"));
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
FatalErrorIn
|
FatalErrorIn
|
||||||
(
|
(
|
||||||
"void hollowConeRefinement::operator=(const dictionary& d)"
|
"void hollowConeRefinement::operator=(const dictionary& d)"
|
||||||
) << "Entry radius1_Inner is not specified!" << exit(FatalError);
|
) << "Entry radius1_Inner is not specified!" << exit(FatalError);
|
||||||
|
|
|
@ -39,32 +39,32 @@ anisotropicSources
|
||||||
Box
|
Box
|
||||||
{
|
{
|
||||||
type box;
|
type box;
|
||||||
centre (2800 0 250);
|
centre (2800 0 250);
|
||||||
lengthX 6000;
|
lengthX 6000;
|
||||||
lengthY 1000;
|
lengthY 1000;
|
||||||
lengthZ 200;
|
lengthZ 200;
|
||||||
scaleX 1;
|
scaleX 1;
|
||||||
scaleY 1;
|
scaleY 1;
|
||||||
scaleZ 0.3;
|
scaleZ 0.3;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
planeUpper
|
planeUpper
|
||||||
{
|
{
|
||||||
type plane;
|
type plane;
|
||||||
normal (0 0 1);
|
normal (0 0 1);
|
||||||
origin (0 0 250);
|
origin (0 0 250);
|
||||||
scalingDistance 125;
|
scalingDistance 125;
|
||||||
scalingFactor 0.5;
|
scalingFactor 0.5;
|
||||||
}
|
}
|
||||||
|
|
||||||
planeLower
|
planeLower
|
||||||
{
|
{
|
||||||
type plane;
|
type plane;
|
||||||
normal (0 0 -1);
|
normal (0 0 -1);
|
||||||
origin (0 0 250);
|
origin (0 0 250);
|
||||||
scalingDistance 125;
|
scalingDistance 125;
|
||||||
scalingFactor 0.5;
|
scalingFactor 0.5;
|
||||||
}
|
}
|
||||||
*/
|
*/
|
||||||
}
|
}
|
||||||
|
|
|
@ -31,8 +31,8 @@ anisotropicSources
|
||||||
{
|
{
|
||||||
type plane;
|
type plane;
|
||||||
origin (0 0 -20);
|
origin (0 0 -20);
|
||||||
normal (0 0 1);
|
normal (0 0 1);
|
||||||
scalingDistance 45;
|
scalingDistance 45;
|
||||||
scalingFactor 2;
|
scalingFactor 2;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -7,66 +7,66 @@
|
||||||
\*---------------------------------------------------------------------------*/
|
\*---------------------------------------------------------------------------*/
|
||||||
FoamFile
|
FoamFile
|
||||||
{
|
{
|
||||||
version 2;
|
version 2;
|
||||||
format ascii;
|
format ascii;
|
||||||
class dictionary;
|
class dictionary;
|
||||||
location "system";
|
location "system";
|
||||||
object meshDict;
|
object meshDict;
|
||||||
}
|
}
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
maxCellSize 40;
|
maxCellSize 40;
|
||||||
surfaceFile "bunnyWrapped.stl";
|
surfaceFile "bunnyWrapped.stl";
|
||||||
|
|
||||||
objectRefinements
|
objectRefinements
|
||||||
{
|
{
|
||||||
|
|
||||||
ear1
|
ear1
|
||||||
{
|
{
|
||||||
cellSize 20.1;
|
cellSize 20.1;
|
||||||
p0 ( -100 1873 -320 );
|
p0 ( -100 1873 -320 );
|
||||||
p1 ( -560 1400 0 );
|
p1 ( -560 1400 0 );
|
||||||
radius0 200;
|
radius0 200;
|
||||||
radius1 200;
|
radius1 200;
|
||||||
type cone;
|
type cone;
|
||||||
}
|
}
|
||||||
|
|
||||||
ear2
|
ear2
|
||||||
{
|
{
|
||||||
cellSize 20.1;
|
cellSize 20.1;
|
||||||
p0 ( -650 1873 -620 );
|
p0 ( -650 1873 -620 );
|
||||||
p1 ( -670 1300 0 );
|
p1 ( -670 1300 0 );
|
||||||
radius0 200;
|
radius0 200;
|
||||||
radius1 200;
|
radius1 200;
|
||||||
type cone;
|
type cone;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
insideTheBody
|
insideTheBody
|
||||||
{
|
{
|
||||||
cellSize 20.1;
|
cellSize 20.1;
|
||||||
centre ( 0 700 0 );
|
centre ( 0 700 0 );
|
||||||
radius 50;
|
radius 50;
|
||||||
refinementThickness 50;
|
refinementThickness 50;
|
||||||
type sphere;
|
type sphere;
|
||||||
}
|
}
|
||||||
|
|
||||||
muzzlePiercing
|
muzzlePiercing
|
||||||
{
|
{
|
||||||
cellSize 20.1;
|
cellSize 20.1;
|
||||||
p0 ( -750 1000 450 );
|
p0 ( -750 1000 450 );
|
||||||
p1 ( -750 1500 450 );
|
p1 ( -750 1500 450 );
|
||||||
type line;
|
type line;
|
||||||
}
|
}
|
||||||
|
|
||||||
tail
|
tail
|
||||||
{
|
{
|
||||||
cellSize 20.1;
|
cellSize 20.1;
|
||||||
centre ( 500 500 150 );
|
centre ( 500 500 150 );
|
||||||
lengthX 100;
|
lengthX 100;
|
||||||
lengthY 150;
|
lengthY 150;
|
||||||
lengthZ 200;
|
lengthZ 200;
|
||||||
type box;
|
type box;
|
||||||
}
|
}
|
||||||
*/
|
*/
|
||||||
}
|
}
|
||||||
|
|
|
@ -65,7 +65,7 @@ boundaryLayers
|
||||||
allowDiscontinuity 0;
|
allowDiscontinuity 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
"fixedWalls.*"
|
"fixedWalls.*"
|
||||||
{
|
{
|
||||||
nLayers 4;
|
nLayers 4;
|
||||||
|
|
||||||
|
@ -76,7 +76,7 @@ boundaryLayers
|
||||||
allowDiscontinuity 0;
|
allowDiscontinuity 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
"tubes.*"
|
"tubes.*"
|
||||||
{
|
{
|
||||||
nLayers 4;
|
nLayers 4;
|
||||||
|
|
||||||
|
@ -93,8 +93,8 @@ boundaryLayers
|
||||||
|
|
||||||
renameBoundary
|
renameBoundary
|
||||||
{
|
{
|
||||||
defaultName fixedWalls;
|
defaultName fixedWalls;
|
||||||
defaultType wall;
|
defaultType wall;
|
||||||
|
|
||||||
newPatchNames
|
newPatchNames
|
||||||
{
|
{
|
||||||
|
|
Reference in a new issue