From a807d1e18ed752a4c0dbd0552458195181a8cf2d Mon Sep 17 00:00:00 2001 From: Andrew Heather Date: Tue, 20 Dec 2016 23:07:16 +0000 Subject: [PATCH] STYLE: Minor code formatting --- src/functionObjects/field/flux/flux.H | 5 +++-- src/functionObjects/field/flux/fluxTemplates.C | 4 ++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/functionObjects/field/flux/flux.H b/src/functionObjects/field/flux/flux.H index 8569abd0dc..f401b3a051 100644 --- a/src/functionObjects/field/flux/flux.H +++ b/src/functionObjects/field/flux/flux.H @@ -29,7 +29,8 @@ Group Description Calculates the flux of a field. The operation is limited to - surfaceVectorFields and volVectorFields, and the output is a surfaceScalarField. + surfaceVectorFields and volVectorFields, and the output is a + surfaceScalarField. See also Foam::functionObjects::fieldExpression @@ -53,7 +54,7 @@ namespace functionObjects { /*---------------------------------------------------------------------------*\ - Class flux Declaration + Class flux Declaration \*---------------------------------------------------------------------------*/ class flux diff --git a/src/functionObjects/field/flux/fluxTemplates.C b/src/functionObjects/field/flux/fluxTemplates.C index e29b6d85ed..b9e948ac06 100644 --- a/src/functionObjects/field/flux/fluxTemplates.C +++ b/src/functionObjects/field/flux/fluxTemplates.C @@ -31,7 +31,6 @@ License template bool Foam::functionObjects::flux::calcVolFlux(const RhoFieldType& rho) { - if (foundObject(fieldName_, false)) { return store @@ -50,7 +49,6 @@ bool Foam::functionObjects::flux::calcVolFlux(const RhoFieldType& rho) template bool Foam::functionObjects::flux::calcSurFlux(const RhoFieldType& rho) { - if (foundObject(fieldName_, false)) { return store @@ -67,4 +65,6 @@ bool Foam::functionObjects::flux::calcSurFlux(const RhoFieldType& rho) return false; } } + + // ************************************************************************* //