From 511d68e98a71493fa8d71d34595ac2024947563f Mon Sep 17 00:00:00 2001 From: Hrvoje Jasak Date: Tue, 15 May 2018 10:53:40 +0100 Subject: [PATCH] Formatting and clean-up --- .../engineMesh/layeredEngineMesh/layeredEngineMesh.H | 7 +++---- src/engine/engineValve/engineValve.H | 1 + src/engine/engineVerticalValve/engineVerticalValve.C | 3 +-- src/engine/engineVerticalValve/engineVerticalValve.H | 6 +----- src/engine/simpleEnginePiston/simpleEnginePiston.H | 2 +- src/engine/simpleEngineTopoFvMesh/simpleEngineTopoFvMesh.H | 7 +++---- 6 files changed, 10 insertions(+), 16 deletions(-) diff --git a/src/engine/engineMesh/layeredEngineMesh/layeredEngineMesh.H b/src/engine/engineMesh/layeredEngineMesh/layeredEngineMesh.H index 6b52bf01b..c54f42c14 100644 --- a/src/engine/engineMesh/layeredEngineMesh/layeredEngineMesh.H +++ b/src/engine/engineMesh/layeredEngineMesh/layeredEngineMesh.H @@ -44,7 +44,7 @@ namespace Foam { /*---------------------------------------------------------------------------*\ - Class layeredEngineMesh Declaration + Class layeredEngineMesh Declaration \*---------------------------------------------------------------------------*/ class layeredEngineMesh @@ -77,9 +77,8 @@ public: layeredEngineMesh(const IOobject& io); - // Destructor - - ~layeredEngineMesh(); + //- Destructor + virtual ~layeredEngineMesh(); // Member Functions diff --git a/src/engine/engineValve/engineValve.H b/src/engine/engineValve/engineValve.H index 1add80281..7c192018b 100644 --- a/src/engine/engineValve/engineValve.H +++ b/src/engine/engineValve/engineValve.H @@ -143,6 +143,7 @@ class engineValve //- Adjust crank angle to drop within the limits of the lift profile scalar adjustCrankAngle(const scalar theta) const; + public: // Static data members diff --git a/src/engine/engineVerticalValve/engineVerticalValve.C b/src/engine/engineVerticalValve/engineVerticalValve.C index c8e4fcc19..a69c517a9 100644 --- a/src/engine/engineVerticalValve/engineVerticalValve.C +++ b/src/engine/engineVerticalValve/engineVerticalValve.C @@ -128,12 +128,11 @@ void Foam::engineVerticalValve::writeDict(Ostream& os) const { engineValve::writeDict(os); - os << "headPatch " << valveHeadPatch_.name() << token::END_STATEMENT << nl << "bottomLayerOffset " << bottomLayerOffset_ << token::END_STATEMENT << nl << "bottomLayerOffsetayerTol " << bottomLayerTol_ - << token::END_STATEMENT << nl + << token::END_STATEMENT << nl << "topLayerOffset " << topLayerOffset_ << token::END_STATEMENT << nl << "topLayerTol " << topLayerTol_ << token::END_STATEMENT << nl << "detachDistance " << detachDistance_ << token::END_STATEMENT << nl diff --git a/src/engine/engineVerticalValve/engineVerticalValve.H b/src/engine/engineVerticalValve/engineVerticalValve.H index 1fab38b4a..e8a6978fe 100644 --- a/src/engine/engineVerticalValve/engineVerticalValve.H +++ b/src/engine/engineVerticalValve/engineVerticalValve.H @@ -51,7 +51,7 @@ class polyMesh; class engineTime; /*---------------------------------------------------------------------------*\ - Class engineVerticalValve Declaration + Class engineVerticalValve Declaration \*---------------------------------------------------------------------------*/ class engineVerticalValve @@ -93,12 +93,8 @@ class engineVerticalValve void operator=(const engineVerticalValve&); - public: - // Static data members - - // Constructors //- Construct from components diff --git a/src/engine/simpleEnginePiston/simpleEnginePiston.H b/src/engine/simpleEnginePiston/simpleEnginePiston.H index 1bae20836..48ae5a4ad 100644 --- a/src/engine/simpleEnginePiston/simpleEnginePiston.H +++ b/src/engine/simpleEnginePiston/simpleEnginePiston.H @@ -47,7 +47,7 @@ class polyMesh; class engineTime; /*---------------------------------------------------------------------------*\ - Class simpleEnginePiston Declaration + Class simpleEnginePiston Declaration \*---------------------------------------------------------------------------*/ class simpleEnginePiston diff --git a/src/engine/simpleEngineTopoFvMesh/simpleEngineTopoFvMesh.H b/src/engine/simpleEngineTopoFvMesh/simpleEngineTopoFvMesh.H index fb348dbbb..91777a8f4 100644 --- a/src/engine/simpleEngineTopoFvMesh/simpleEngineTopoFvMesh.H +++ b/src/engine/simpleEngineTopoFvMesh/simpleEngineTopoFvMesh.H @@ -105,10 +105,9 @@ public: explicit simpleEngineTopoFvMesh(const IOobject& io); - // Destructor - - virtual ~simpleEngineTopoFvMesh() - {} + //- Destructor + virtual ~simpleEngineTopoFvMesh() + {} // Member Functions