STYLE: Replace tabs by 4 spaces in bin, tutorials, src, ... & clean-up by hand

This commit is contained in:
Henrik Rusche 2015-08-11 11:16:15 +02:00 committed by Hrvoje Jasak
parent db5b22a978
commit a9ef31fa39
11 changed files with 107 additions and 109 deletions

View file

@ -45,27 +45,27 @@ h3 { font-size: 14px; }
* Give a slightly different background to make it easier to find.
*/
div.line {
font-family: monospace, fixed;
font-size: 13px;
line-height: 1.0;
text-wrap: unrestricted;
white-space: -moz-pre-wrap; /* Moz */
white-space: -pre-wrap; /* Opera 4-6 */
white-space: -o-pre-wrap; /* Opera 7 */
white-space: pre-wrap; /* CSS3 */
word-wrap: break-word; /* IE 5.5+ */
text-indent: -53px;
padding-left: 53px;
padding-bottom: 0px;
margin: 0px;
font-family: monospace, fixed;
font-size: 13px;
line-height: 1.0;
text-wrap: unrestricted;
white-space: -moz-pre-wrap; /* Moz */
white-space: -pre-wrap; /* Opera 4-6 */
white-space: -o-pre-wrap; /* Opera 7 */
white-space: pre-wrap; /* CSS3 */
word-wrap: break-word; /* IE 5.5+ */
text-indent: -53px;
padding-left: 53px;
padding-bottom: 0px;
margin: 0px;
}
span.lineno {
padding-right: 4px;
text-align: right;
border-right: 2px solid #ddddff;
background-color: #ddddff;
white-space: pre;
padding-right: 4px;
text-align: right;
border-right: 2px solid #ddddff;
background-color: #ddddff;
white-space: pre;
}

View file

@ -354,7 +354,7 @@ string getEnv(const word& envName)
actualBuffer.get(),
actualBufferSize);
envAsString = actualBuffer.get();
toUnixPath(envAsString);
toUnixPath(envAsString);
}
return envAsString;
@ -376,7 +376,7 @@ bool setEnv
word hostName()
{
const bool full = true;
const bool full = true;
const DWORD bufferSize = MAX_COMPUTERNAME_LENGTH + 1;
TCHAR buffer[bufferSize];
DWORD actualBufferSize = bufferSize;
@ -756,8 +756,8 @@ fileName::Type type(const fileName& name)
if (attrs != INVALID_FILE_ATTRIBUTES)
{
fileType = (attrs & FILE_ATTRIBUTE_DIRECTORY) ?
fileName::DIRECTORY :
fileName::FILE;
fileName::DIRECTORY :
fileName::FILE;
}
return fileType;
@ -804,7 +804,7 @@ bool isFile(const fileName& name, const bool checkGzip)
{
const DWORD attrs = ::GetFileAttributes(name.c_str());
const bool success = ((attrs != INVALID_FILE_ATTRIBUTES) &&
!(attrs & FILE_ATTRIBUTE_DIRECTORY)) ||
!(attrs & FILE_ATTRIBUTE_DIRECTORY)) ||
(checkGzip && isGzFile(name));
return success;
@ -1322,7 +1322,7 @@ bool dlClose(void* const handle)
if (success)
{
getLoadedLibs().erase(handle);
getLoadedLibs().erase(handle);
}
return success;
@ -1342,8 +1342,8 @@ void* dlSym(void* handle, const std::string& symbol)
if (NULL == fun)
{
WarningIn("dlSym(void*, const std::string&)")
<< "Cannot lookup symbol " << symbol << " : " << MSwindows::getLastError()
<< endl;
<< "Cannot lookup symbol " << symbol << " : " << MSwindows::getLastError()
<< endl;
}
return fun;
@ -1360,10 +1360,10 @@ bool dlSymFound(void* handle, const std::string& symbol)
<< " : GetProcAddress of " << symbol << endl;
}
// get address of symbol
void* fun = (void*) ::GetProcAddress(static_cast<HMODULE>(handle), symbol.c_str());
// get address of symbol
void* fun = (void*) ::GetProcAddress(static_cast<HMODULE>(handle), symbol.c_str());
return (NULL != fun);
return (NULL != fun);
}
else
{
@ -1375,17 +1375,17 @@ bool dlSymFound(void* handle, const std::string& symbol)
fileNameList dlLoaded()
{
fileNameList libs;
int counter(0);
int counter(0);
OfLoadedLibs & loadedLibs = getLoadedLibs();
for
(
OfLoadedLibs::const_iterator it = loadedLibs.begin();
it != loadedLibs.end();
++it
)
(
OfLoadedLibs::const_iterator it = loadedLibs.begin();
it != loadedLibs.end();
++it
)
{
libs.newElmt(counter++) = it->second;
libs.newElmt(counter++) = it->second;
}
if (MSwindows::debug)

View file

@ -38,7 +38,7 @@ License
# define major(dev) ((int)(((dev) >> 8) & 0xff))
# define minor(dev) ((int)((dev) & 0xff))
# define makedev(major, minor) ((((unsigned int) (major)) << 8) \
| ((unsigned int) (minor)))
| ((unsigned int) (minor)))
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

View file

@ -104,7 +104,7 @@ void Foam::sigQuit::set(const bool verbose)
if( SIG_ERR == oldAction_ )
{
oldAction_ = SIG_DFL;
oldAction_ = SIG_DFL;
FatalErrorIn
(

View file

@ -253,7 +253,7 @@ Foam::Time::Time
IOobject::NO_READ,
IOobject::AUTO_WRITE
),
*this
*this
);
}
@ -324,7 +324,7 @@ Foam::Time::Time
IOobject::NO_READ,
IOobject::AUTO_WRITE
),
*this
*this
);
}
@ -391,7 +391,7 @@ Foam::Time::Time
IOobject::NO_READ,
IOobject::AUTO_WRITE
),
*this
*this
);
}

View file

@ -86,9 +86,7 @@ class profilingPool
// Private Member Functions
//- Disallow default bitwise copy construct
profilingPool(
const profilingPool&
);
profilingPool(const profilingPool&);
//- Disallow default bitwise assignment
void operator=(const profilingPool&);
@ -103,7 +101,8 @@ class profilingPool
// Constructors
//- Construct null
profilingPool(
profilingPool
(
const IOobject&,
const Time&
);
@ -142,14 +141,13 @@ class profilingPool
protected:
static void initProfiling(
static void initProfiling
(
const IOobject&,
const Time&
);
static void stopProfiling(
const Time&
);
static void stopProfiling(const Time&);
public:

View file

@ -235,7 +235,7 @@ void hollowConeRefinement::operator=(const dictionary& d)
{
FatalErrorIn
(
"void hollowConeRefinement::operator=(const dictionary& d)"
"void hollowConeRefinement::operator=(const dictionary& d)"
) << "Entry radius0_Inner is not specified!" << exit(FatalError);
r0Inner_ = -1.0;
}
@ -272,11 +272,11 @@ void hollowConeRefinement::operator=(const dictionary& d)
// specify radius
if( dict.found("radius1_Inner") )
{
r1Inner_ = readScalar(dict.lookup("radius1_Inner"));
r1Inner_ = readScalar(dict.lookup("radius1_Inner"));
}
else
{
FatalErrorIn
FatalErrorIn
(
"void hollowConeRefinement::operator=(const dictionary& d)"
) << "Entry radius1_Inner is not specified!" << exit(FatalError);

View file

@ -39,32 +39,32 @@ anisotropicSources
Box
{
type box;
centre (2800 0 250);
lengthX 6000;
lengthY 1000;
lengthZ 200;
scaleX 1;
scaleY 1;
scaleZ 0.3;
centre (2800 0 250);
lengthX 6000;
lengthY 1000;
lengthZ 200;
scaleX 1;
scaleY 1;
scaleZ 0.3;
}
/*
planeUpper
{
type plane;
normal (0 0 1);
origin (0 0 250);
scalingDistance 125;
scalingFactor 0.5;
type plane;
normal (0 0 1);
origin (0 0 250);
scalingDistance 125;
scalingFactor 0.5;
}
planeLower
{
type plane;
normal (0 0 -1);
origin (0 0 250);
scalingDistance 125;
scalingFactor 0.5;
type plane;
normal (0 0 -1);
origin (0 0 250);
scalingDistance 125;
scalingFactor 0.5;
}
*/
}

View file

@ -31,8 +31,8 @@ anisotropicSources
{
type plane;
origin (0 0 -20);
normal (0 0 1);
scalingDistance 45;
normal (0 0 1);
scalingDistance 45;
scalingFactor 2;
}
}

View file

@ -7,66 +7,66 @@
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2;
format ascii;
class dictionary;
location "system";
object meshDict;
version 2;
format ascii;
class dictionary;
location "system";
object meshDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
maxCellSize 40;
surfaceFile "bunnyWrapped.stl";
maxCellSize 40;
surfaceFile "bunnyWrapped.stl";
objectRefinements
{
ear1
{
cellSize 20.1;
p0 ( -100 1873 -320 );
p1 ( -560 1400 0 );
radius0 200;
radius1 200;
type cone;
cellSize 20.1;
p0 ( -100 1873 -320 );
p1 ( -560 1400 0 );
radius0 200;
radius1 200;
type cone;
}
ear2
{
cellSize 20.1;
p0 ( -650 1873 -620 );
p1 ( -670 1300 0 );
radius0 200;
radius1 200;
type cone;
cellSize 20.1;
p0 ( -650 1873 -620 );
p1 ( -670 1300 0 );
radius0 200;
radius1 200;
type cone;
}
/*
insideTheBody
{
cellSize 20.1;
centre ( 0 700 0 );
radius 50;
refinementThickness 50;
type sphere;
cellSize 20.1;
centre ( 0 700 0 );
radius 50;
refinementThickness 50;
type sphere;
}
muzzlePiercing
{
cellSize 20.1;
p0 ( -750 1000 450 );
p1 ( -750 1500 450 );
type line;
cellSize 20.1;
p0 ( -750 1000 450 );
p1 ( -750 1500 450 );
type line;
}
tail
{
cellSize 20.1;
centre ( 500 500 150 );
lengthX 100;
lengthY 150;
lengthZ 200;
type box;
cellSize 20.1;
centre ( 500 500 150 );
lengthX 100;
lengthY 150;
lengthZ 200;
type box;
}
*/
}

View file

@ -65,7 +65,7 @@ boundaryLayers
allowDiscontinuity 0;
}
"fixedWalls.*"
"fixedWalls.*"
{
nLayers 4;
@ -76,7 +76,7 @@ boundaryLayers
allowDiscontinuity 0;
}
"tubes.*"
"tubes.*"
{
nLayers 4;
@ -93,8 +93,8 @@ boundaryLayers
renameBoundary
{
defaultName fixedWalls;
defaultType wall;
defaultName fixedWalls;
defaultType wall;
newPatchNames
{