Commit 57507389 authored by Mark Olesen's avatar Mark Olesen
Browse files

STYLE: spacing of multi-level template parameters

parent 1bcb454f
......@@ -50,7 +50,7 @@ Foam::Distribution<Type>::Distribution(const Type& binWidth)
template<class Type>
Foam::Distribution<Type>::Distribution(const Distribution<Type>& d)
:
List<List<scalar>>(static_cast<const List<List<scalar>>& >(d)),
List<List<scalar>>(static_cast<const List<List<scalar>>&>(d)),
binWidth_(d.binWidth()),
listStarts_(d.listStarts())
{}
......@@ -603,7 +603,7 @@ Foam::Ostream& Foam::operator<<
const Distribution<Type>& d
)
{
os << static_cast<const List<List<scalar>>& >(d)
os << static_cast<const List<List<scalar>>&>(d)
<< d.binWidth_ << token::SPACE
<< d.listStarts_;
......
......@@ -351,7 +351,7 @@ template<>
const Foam::UPstream::commsStruct&
Foam::UList<Foam::UPstream::commsStruct>::operator[](const label procID) const
{
return const_cast<UList<UPstream::commsStruct>& >(*this).operator[](procID);
return const_cast<UList<UPstream::commsStruct>&>(*this).operator[](procID);
}
......
......@@ -42,7 +42,7 @@ tmp<DimensionedField<TypeR, GeoMesh>> New
)
{
DimensionedField<TypeR, GeoMesh>& df1 =
const_cast<DimensionedField<TypeR, GeoMesh>& >(tdf1());
const_cast<DimensionedField<TypeR, GeoMesh>&>(tdf1());
if (tdf1.isTmp())
{
......@@ -115,7 +115,7 @@ public:
)
{
DimensionedField<TypeR, GeoMesh>& df1 =
const_cast<DimensionedField<TypeR, GeoMesh>& >(tdf1());
const_cast<DimensionedField<TypeR, GeoMesh>&>(tdf1());
if (tdf1.isTmp())
{
......@@ -192,7 +192,7 @@ public:
{
const DimensionedField<Type1, GeoMesh>& df1 = tdf1();
DimensionedField<TypeR, GeoMesh>& df2 =
const_cast<DimensionedField<TypeR, GeoMesh>& >(tdf2());
const_cast<DimensionedField<TypeR, GeoMesh>&>(tdf2());
if (tdf2.isTmp())
{
......@@ -235,7 +235,7 @@ public:
)
{
DimensionedField<TypeR, GeoMesh>& df1 =
const_cast<DimensionedField<TypeR, GeoMesh>& >(tdf1());
const_cast<DimensionedField<TypeR, GeoMesh>&>(tdf1());
if (tdf1.isTmp())
{
......@@ -278,9 +278,9 @@ public:
)
{
DimensionedField<TypeR, GeoMesh>& df1 =
const_cast<DimensionedField<TypeR, GeoMesh>& >(tdf1());
const_cast<DimensionedField<TypeR, GeoMesh>&>(tdf1());
DimensionedField<TypeR, GeoMesh>& df2 =
const_cast<DimensionedField<TypeR, GeoMesh>& >(tdf2());
const_cast<DimensionedField<TypeR, GeoMesh>&>(tdf2());
if (tdf1.isTmp())
{
......
......@@ -85,7 +85,7 @@ tmp<GeometricField<TypeR, PatchField, GeoMesh>> New
)
{
GeometricField<TypeR, PatchField, GeoMesh>& gf1 =
const_cast<GeometricField<TypeR, PatchField, GeoMesh>& >(tgf1());
const_cast<GeometricField<TypeR, PatchField, GeoMesh>&>(tgf1());
if (reusable(tgf1))
{
......@@ -171,7 +171,7 @@ public:
)
{
GeometricField<TypeR, PatchField, GeoMesh>& gf1 =
const_cast<GeometricField<TypeR, PatchField, GeoMesh>& >(tgf1());
const_cast<GeometricField<TypeR, PatchField, GeoMesh>&>(tgf1());
if (reusable(tgf1))
{
......@@ -264,7 +264,7 @@ public:
{
const GeometricField<Type1, PatchField, GeoMesh>& gf1 = tgf1();
GeometricField<TypeR, PatchField, GeoMesh>& gf2 =
const_cast<GeometricField<TypeR, PatchField, GeoMesh>& >(tgf2());
const_cast<GeometricField<TypeR, PatchField, GeoMesh>&>(tgf2());
if (reusable(tgf2))
{
......@@ -313,7 +313,7 @@ public:
)
{
GeometricField<TypeR, PatchField, GeoMesh>& gf1 =
const_cast<GeometricField<TypeR, PatchField, GeoMesh>& >(tgf1());
const_cast<GeometricField<TypeR, PatchField, GeoMesh>&>(tgf1());
if (reusable(tgf1))
{
......@@ -356,9 +356,9 @@ public:
)
{
GeometricField<TypeR, PatchField, GeoMesh>& gf1 =
const_cast<GeometricField<TypeR, PatchField, GeoMesh>& >(tgf1());
const_cast<GeometricField<TypeR, PatchField, GeoMesh>&>(tgf1());
GeometricField<TypeR, PatchField, GeoMesh>& gf2 =
const_cast<GeometricField<TypeR, PatchField, GeoMesh>& >(tgf2());
const_cast<GeometricField<TypeR, PatchField, GeoMesh>&>(tgf2());
if (reusable(tgf1))
{
......
......@@ -1276,7 +1276,7 @@ void Foam::mapDistributeBase::distribute
{
fld.shrink();
List<T>& fldList = static_cast<List<T>& >(fld);
List<T>& fldList = static_cast<List<T>&>(fld);
distribute(fldList, tag);
......
......@@ -167,7 +167,7 @@ void Foam::mapDistribute::distribute
{
fld.shrink();
List<T>& fldList = static_cast<List<T>& >(fld);
List<T>& fldList = static_cast<List<T>&>(fld);
distribute(fldList, dummyTransform, tag);
......
......@@ -414,7 +414,7 @@ public:
const fieldTable& tbl
)
{
os << static_cast<const namesList<fieldEntry>& >(tbl)
os << static_cast<const namesList<fieldEntry>&>(tbl)
<< nl
<< "maxCell: " << tbl.maxCellId()
<< " maxFace: " << tbl.maxFaceId();
......
......@@ -70,7 +70,7 @@ Foam::Istream& Foam::operator>>(Istream& is, gradingDescriptors& gds)
is.putBack(t);
// Read the list for gradingDescriptors
is >> static_cast<List<gradingDescriptor>& >(gds);
is >> static_cast<List<gradingDescriptor>&>(gds);
// Check state of Istream
is.check(FUNCTION_NAME);
......
......@@ -38,7 +38,7 @@ Foam::radiation::mixtureFractionSoot<ThermoType>::checkThermo
{
if (isA<singleStepReactingMixture<ThermoType>>(thermo))
{
return dynamic_cast<const singleStepReactingMixture<ThermoType>& >
return dynamic_cast<const singleStepReactingMixture<ThermoType>&>
(
thermo
);
......@@ -50,7 +50,7 @@ Foam::radiation::mixtureFractionSoot<ThermoType>::checkThermo
<< "Please select a thermo package based on "
<< "singleStepReactingMixture" << exit(FatalError);
return dynamic_cast<const singleStepReactingMixture<ThermoType>& >
return dynamic_cast<const singleStepReactingMixture<ThermoType>&>
(
thermo
);
......
......@@ -157,7 +157,7 @@ pyrolysisChemistryModel
Info<< indent << "Number of gases = " << nGases_ << nl;
forAll(this->reactions_, i)
{
Info<< dynamic_cast<const solidReaction<SolidThermo>& >
Info<< dynamic_cast<const solidReaction<SolidThermo>&>
(
this->reactions_[i]
) << nl;
......
......@@ -41,14 +41,14 @@ solidChemistryModel
Ys_(this->solidThermo().composition().Y()),
reactions_
(
dynamic_cast<const reactingMixture<SolidThermo>& >
dynamic_cast<const reactingMixture<SolidThermo>&>
(
this->solidThermo()
)
),
solidThermo_
(
dynamic_cast<const reactingMixture<SolidThermo>& >
dynamic_cast<const reactingMixture<SolidThermo>&>
(
this->solidThermo()
).speciesData()
......
......@@ -492,7 +492,7 @@ void Foam::humidityTemperatureCoupledMixedFvPatchScalarField::updateCoeffs()
scalarField liquidRho(patch().size(), 0.0);
fixedGradientFvPatchField<scalar>& Yp =
const_cast<fixedGradientFvPatchField<scalar>& >
const_cast<fixedGradientFvPatchField<scalar>&>
(
refCast
<
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment