STYLE: extraneous space in template parameter

This commit is contained in:
Mark Olesen
2019-10-30 12:54:06 +01:00
committed by Andrew Heather
parent fd4ffc8a27
commit c5ed28d0e3
11 changed files with 19 additions and 24 deletions

View File

@ -102,9 +102,9 @@ public:
); );
//- Construct and return a clone //- Construct and return a clone
virtual tmp<fvPatch${FieldType} > clone() const virtual tmp<fvPatch${FieldType}> clone() const
{ {
return tmp<fvPatch${FieldType} > return tmp<fvPatch${FieldType}>
( (
new ${typeName}FixedValueFvPatch${FieldType}(*this) new ${typeName}FixedValueFvPatch${FieldType}(*this)
); );
@ -118,12 +118,12 @@ public:
); );
//- Construct and return a clone setting internal field reference //- Construct and return a clone setting internal field reference
virtual tmp<fvPatch${FieldType} > clone virtual tmp<fvPatch${FieldType}> clone
( (
const DimensionedField<${TemplateType}, volMesh>& iF const DimensionedField<${TemplateType}, volMesh>& iF
) const ) const
{ {
return tmp<fvPatch${FieldType} > return tmp<fvPatch${FieldType}>
( (
new ${typeName}FixedValueFvPatch${FieldType}(*this, iF) new ${typeName}FixedValueFvPatch${FieldType}(*this, iF)
); );

View File

@ -102,9 +102,9 @@ public:
); );
//- Construct and return a clone //- Construct and return a clone
virtual tmp<fvPatch${FieldType} > clone() const virtual tmp<fvPatch${FieldType}> clone() const
{ {
return tmp<fvPatch${FieldType} > return tmp<fvPatch${FieldType}>
( (
new ${typeName}MixedValueFvPatch${FieldType}(*this) new ${typeName}MixedValueFvPatch${FieldType}(*this)
); );
@ -118,12 +118,12 @@ public:
); );
//- Construct and return a clone setting internal field reference //- Construct and return a clone setting internal field reference
virtual tmp<fvPatch${FieldType} > clone virtual tmp<fvPatch${FieldType}> clone
( (
const DimensionedField<${TemplateType}, volMesh>& iF const DimensionedField<${TemplateType}, volMesh>& iF
) const ) const
{ {
return tmp<fvPatch${FieldType} > return tmp<fvPatch${FieldType}>
( (
new ${typeName}MixedValueFvPatch${FieldType}(*this, iF) new ${typeName}MixedValueFvPatch${FieldType}(*this, iF)
); );

View File

@ -293,18 +293,13 @@ Foam::tmp<Foam::Field<Foam::solveScalar>> Foam::lduMatrix::residual
} }
Foam::tmp<Foam::scalarField > Foam::lduMatrix::H1() const Foam::tmp<Foam::scalarField> Foam::lduMatrix::H1() const
{ {
tmp<scalarField > tH1 auto tH1 = tmp<scalarField>::New(lduAddr().size(), Zero);
(
new scalarField(lduAddr().size(), Zero)
);
if (lowerPtr_ || upperPtr_) if (lowerPtr_ || upperPtr_)
{ {
scalarField& H1_ = tH1.ref(); scalar* __restrict__ H1Ptr = tH1.ref().begin();
scalar* __restrict__ H1Ptr = H1_.begin();
const label* __restrict__ uPtr = lduAddr().upperAddr().begin(); const label* __restrict__ uPtr = lduAddr().upperAddr().begin();
const label* __restrict__ lPtr = lduAddr().lowerAddr().begin(); const label* __restrict__ lPtr = lduAddr().lowerAddr().begin();

View File

@ -73,7 +73,7 @@ Foam::porosityModels::powerLawLopesdaCostaZone::powerLawLopesdaCostaZone
// Functional form of the porosity surface area per unit volume as a // Functional form of the porosity surface area per unit volume as a
// function of the normalized vertical position // function of the normalized vertical position
autoPtr<Function1<scalar >> SigmaFunc autoPtr<Function1<scalar>> SigmaFunc
( (
Function1<scalar>::New("Sigma", dict) Function1<scalar>::New("Sigma", dict)
); );

View File

@ -141,7 +141,7 @@ public:
// * * * * * * * * * * * Template Specialisations * * * * * * * * * * * * * // // * * * * * * * * * * * Template Specialisations * * * * * * * * * * * * * //
template<> template<>
tmp<scalarField > basicSymmetryFvPatchField<scalar>::snGrad() const; tmp<scalarField> basicSymmetryFvPatchField<scalar>::snGrad() const;
template<> template<>
void basicSymmetryFvPatchField<scalar>::evaluate void basicSymmetryFvPatchField<scalar>::evaluate

View File

@ -157,7 +157,7 @@ public:
// * * * * * * * * * * * Template Specialisations * * * * * * * * * * * * * // // * * * * * * * * * * * Template Specialisations * * * * * * * * * * * * * //
template<> template<>
tmp<scalarField > wedgeFvPatchField<scalar>::snGrad() const; tmp<scalarField> wedgeFvPatchField<scalar>::snGrad() const;
template<> template<>
void wedgeFvPatchField<scalar>::evaluate void wedgeFvPatchField<scalar>::evaluate

View File

@ -107,7 +107,7 @@ public:
//- Construct and return a clone //- Construct and return a clone
virtual tmp<fvPatchScalarField> clone() const virtual tmp<fvPatchScalarField> clone() const
{ {
return tmp<fvPatchScalarField > return tmp<fvPatchScalarField>
( (
new interfaceCompressionFvPatchScalarField(*this) new interfaceCompressionFvPatchScalarField(*this)
); );

View File

@ -158,7 +158,7 @@ public:
//- Construct and return a clone //- Construct and return a clone
virtual tmp<fvPatchScalarField> clone() const virtual tmp<fvPatchScalarField> clone() const
{ {
return tmp<fvPatchScalarField > return tmp<fvPatchScalarField>
( (
new phaseHydrostaticPressureFvPatchScalarField(*this) new phaseHydrostaticPressureFvPatchScalarField(*this)
); );

View File

@ -145,7 +145,7 @@ public:
//- Construct and return a clone //- Construct and return a clone
virtual tmp<fvPatchScalarField> clone() const virtual tmp<fvPatchScalarField> clone() const
{ {
return tmp<fvPatchScalarField > return tmp<fvPatchScalarField>
( (
new prghPressureFvPatchScalarField(*this) new prghPressureFvPatchScalarField(*this)
); );

View File

@ -153,7 +153,7 @@ public:
//- Construct and return a clone //- Construct and return a clone
virtual tmp<fvPatchScalarField> clone() const virtual tmp<fvPatchScalarField> clone() const
{ {
return tmp<fvPatchScalarField > return tmp<fvPatchScalarField>
( (
new prghTotalHydrostaticPressureFvPatchScalarField(*this) new prghTotalHydrostaticPressureFvPatchScalarField(*this)
); );

View File

@ -156,7 +156,7 @@ public:
//- Construct and return a clone //- Construct and return a clone
virtual tmp<fvPatchScalarField> clone() const virtual tmp<fvPatchScalarField> clone() const
{ {
return tmp<fvPatchScalarField > return tmp<fvPatchScalarField>
( (
new prghTotalPressureFvPatchScalarField(*this) new prghTotalPressureFvPatchScalarField(*this)
); );