STYLE: Minor code formatting

This commit is contained in:
Andrew Heather
2016-12-20 23:07:16 +00:00
parent af434646d3
commit a807d1e18e
2 changed files with 5 additions and 4 deletions

View File

@ -29,7 +29,8 @@ Group
Description Description
Calculates the flux of a field. The operation is limited to 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 See also
Foam::functionObjects::fieldExpression Foam::functionObjects::fieldExpression
@ -53,7 +54,7 @@ namespace functionObjects
{ {
/*---------------------------------------------------------------------------*\ /*---------------------------------------------------------------------------*\
Class flux Declaration Class flux Declaration
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/
class flux class flux

View File

@ -31,7 +31,6 @@ License
template<class FieldType, class RhoFieldType> template<class FieldType, class RhoFieldType>
bool Foam::functionObjects::flux::calcVolFlux(const RhoFieldType& rho) bool Foam::functionObjects::flux::calcVolFlux(const RhoFieldType& rho)
{ {
if (foundObject<FieldType>(fieldName_, false)) if (foundObject<FieldType>(fieldName_, false))
{ {
return store return store
@ -50,7 +49,6 @@ bool Foam::functionObjects::flux::calcVolFlux(const RhoFieldType& rho)
template<class FieldType, class RhoFieldType> template<class FieldType, class RhoFieldType>
bool Foam::functionObjects::flux::calcSurFlux(const RhoFieldType& rho) bool Foam::functionObjects::flux::calcSurFlux(const RhoFieldType& rho)
{ {
if (foundObject<FieldType>(fieldName_, false)) if (foundObject<FieldType>(fieldName_, false))
{ {
return store return store
@ -67,4 +65,6 @@ bool Foam::functionObjects::flux::calcSurFlux(const RhoFieldType& rho)
return false; return false;
} }
} }
// ************************************************************************* // // ************************************************************************* //