STYLE: Minor code formatting

This commit is contained in:
andy
2013-10-18 08:29:14 +01:00
parent cc05249813
commit f5e747a553

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -51,7 +51,7 @@ void Foam::polyTopoChanger::readModifiers()
{ {
WarningIn("polyTopoChanger::readModifiers()") WarningIn("polyTopoChanger::readModifiers()")
<< "Specified IOobject::MUST_READ_IF_MODIFIED but class" << "Specified IOobject::MUST_READ_IF_MODIFIED but class"
<< " does not support automatic rereading." << " does not support automatic re-reading."
<< endl; << endl;
} }
@ -80,18 +80,13 @@ void Foam::polyTopoChanger::readModifiers()
} }
// Check state of IOstream // Check state of IOstream
is.check is.check("polyTopoChanger::readModifiers()");
(
"polyTopoChanger::polyTopoChanger"
"(const IOobject&, const polyMesh&)"
);
close(); close();
} }
} }
// Read constructor given IOobject and a polyMesh reference
Foam::polyTopoChanger::polyTopoChanger Foam::polyTopoChanger::polyTopoChanger
( (
const IOobject& io, const IOobject& io,
@ -106,7 +101,6 @@ Foam::polyTopoChanger::polyTopoChanger
} }
// Read constructor given IOobject and a polyMesh reference
Foam::polyTopoChanger::polyTopoChanger(polyMesh& mesh) Foam::polyTopoChanger::polyTopoChanger(polyMesh& mesh)
: :
PtrList<polyMeshModifier>(), PtrList<polyMeshModifier>(),
@ -133,7 +127,6 @@ Foam::polyTopoChanger::polyTopoChanger(polyMesh& mesh)
} }
// Return a list of modifier types
Foam::wordList Foam::polyTopoChanger::types() const Foam::wordList Foam::polyTopoChanger::types() const
{ {
const PtrList<polyMeshModifier>& modifiers = *this; const PtrList<polyMeshModifier>& modifiers = *this;
@ -149,7 +142,6 @@ Foam::wordList Foam::polyTopoChanger::types() const
} }
// Return a list of modifier names
Foam::wordList Foam::polyTopoChanger::names() const Foam::wordList Foam::polyTopoChanger::names() const
{ {
const PtrList<polyMeshModifier>& modifiers = *this; const PtrList<polyMeshModifier>& modifiers = *this;
@ -165,7 +157,6 @@ Foam::wordList Foam::polyTopoChanger::names() const
} }
// Is topology change required
bool Foam::polyTopoChanger::changeTopology() const bool Foam::polyTopoChanger::changeTopology() const
{ {
// Go through all mesh modifiers and accumulate the morphing information // Go through all mesh modifiers and accumulate the morphing information
@ -211,7 +202,6 @@ bool Foam::polyTopoChanger::changeTopology() const
} }
// Return topology change request
Foam::autoPtr<Foam::polyTopoChange> Foam::autoPtr<Foam::polyTopoChange>
Foam::polyTopoChanger::topoChangeRequest() const Foam::polyTopoChanger::topoChangeRequest() const
{ {
@ -233,7 +223,6 @@ Foam::polyTopoChanger::topoChangeRequest() const
} }
// Correct polyTopoChanger after moving points
void Foam::polyTopoChanger::modifyMotionPoints(pointField& p) const void Foam::polyTopoChanger::modifyMotionPoints(pointField& p) const
{ {
const PtrList<polyMeshModifier>& topoChanges = *this; const PtrList<polyMeshModifier>& topoChanges = *this;
@ -248,7 +237,6 @@ void Foam::polyTopoChanger::modifyMotionPoints(pointField& p) const
} }
// Force recalculation of locally stored data on topological change
void Foam::polyTopoChanger::update(const mapPolyMesh& m) void Foam::polyTopoChanger::update(const mapPolyMesh& m)
{ {
// Go through all mesh modifiers and accumulate the morphing information // Go through all mesh modifiers and accumulate the morphing information
@ -299,7 +287,6 @@ Foam::autoPtr<Foam::mapPolyMesh> Foam::polyTopoChanger::changeMesh
} }
// Add mesh modifiers to the morph engine
void Foam::polyTopoChanger::addTopologyModifiers void Foam::polyTopoChanger::addTopologyModifiers
( (
const List<polyMeshModifier*>& tm const List<polyMeshModifier*>& tm
@ -314,8 +301,10 @@ void Foam::polyTopoChanger::addTopologyModifiers
{ {
FatalErrorIn FatalErrorIn
( (
"void polyTopoChanger::addTopologyModifiers(" "void polyTopoChanger::addTopologyModifiers"
"const List<polyMeshModifier*>& tm)" "("
"const List<polyMeshModifier*>&"
")"
) << "Mesh modifier created with different mesh reference." ) << "Mesh modifier created with different mesh reference."
<< abort(FatalError); << abort(FatalError);
} }
@ -344,8 +333,7 @@ Foam::label Foam::polyTopoChanger::findModifierID
// Modifier not found // Modifier not found
if (debug) if (debug)
{ {
Info<< "label polyTopoChanger::::findModifierID(const word& " WarningIn("label polyTopoChanger::findModifierID(const word&) const")
<< "modName) const"
<< "Modifier named " << modName << " not found. " << "Modifier named " << modName << " not found. "
<< "List of available modifier names: " << names() << endl; << "List of available modifier names: " << names() << endl;
} }
@ -355,7 +343,6 @@ Foam::label Foam::polyTopoChanger::findModifierID
} }
// writeData member function required by regIOobject
bool Foam::polyTopoChanger::writeData(Ostream& os) const bool Foam::polyTopoChanger::writeData(Ostream& os) const
{ {
os << *this; os << *this;