Updated template formatting to C++11

This commit is contained in:
Henry Weller
2016-07-12 20:03:29 +01:00
parent c535f6a3c4
commit ab84d6941f
11 changed files with 22 additions and 22 deletions

View File

@ -155,7 +155,7 @@ void subsetDimensionedFields
( (
const fvMeshSubset& subsetter, const fvMeshSubset& subsetter,
const wordList& fieldNames, const wordList& fieldNames,
PtrList<DimensionedField<Type, volMesh> >& subFields PtrList<DimensionedField<Type, volMesh>>& subFields
) )
{ {
const fvMesh& baseMesh = subsetter.baseMesh(); const fvMesh& baseMesh = subsetter.baseMesh();

View File

@ -33,7 +33,7 @@ void Foam::readFields
( (
const typename GeoMesh::Mesh& mesh, const typename GeoMesh::Mesh& mesh,
const IOobjectList& objects, const IOobjectList& objects,
PtrList<GeometricField<Type, PatchField, GeoMesh> >& fields, PtrList<GeometricField<Type, PatchField, GeoMesh>>& fields,
const bool readOldTime const bool readOldTime
) )
{ {

View File

@ -47,7 +47,7 @@ namespace Foam
( (
const typename GeoMesh::Mesh& mesh, const typename GeoMesh::Mesh& mesh,
const IOobjectList& objects, const IOobjectList& objects,
PtrList<GeometricField<Type, PatchField, GeoMesh> >& fields, PtrList<GeometricField<Type, PatchField, GeoMesh>>& fields,
const bool readOldTime const bool readOldTime
); );

View File

@ -461,7 +461,7 @@ void Foam::mapDistributeBase::distribute
{ {
// Set up sends to neighbours // Set up sends to neighbours
List<List<T > > sendFields(Pstream::nProcs()); List<List<T>> sendFields(Pstream::nProcs());
for (label domain = 0; domain < Pstream::nProcs(); domain++) for (label domain = 0; domain < Pstream::nProcs(); domain++)
{ {
@ -495,7 +495,7 @@ void Foam::mapDistributeBase::distribute
// Set up receives from neighbours // Set up receives from neighbours
List<List<T > > recvFields(Pstream::nProcs()); List<List<T>> recvFields(Pstream::nProcs());
for (label domain = 0; domain < Pstream::nProcs(); domain++) for (label domain = 0; domain < Pstream::nProcs(); domain++)
{ {
@ -938,7 +938,7 @@ void Foam::mapDistributeBase::distribute
{ {
// Set up sends to neighbours // Set up sends to neighbours
List<List<T > > sendFields(Pstream::nProcs()); List<List<T>> sendFields(Pstream::nProcs());
for (label domain = 0; domain < Pstream::nProcs(); domain++) for (label domain = 0; domain < Pstream::nProcs(); domain++)
{ {
@ -972,7 +972,7 @@ void Foam::mapDistributeBase::distribute
// Set up receives from neighbours // Set up receives from neighbours
List<List<T > > recvFields(Pstream::nProcs()); List<List<T>> recvFields(Pstream::nProcs());
for (label domain = 0; domain < Pstream::nProcs(); domain++) for (label domain = 0; domain < Pstream::nProcs(); domain++)
{ {

View File

@ -150,7 +150,7 @@ void Foam::fvMeshDistribute::mapBoundaryFields
template<class T> template<class T>
void Foam::fvMeshDistribute::saveInternalFields void Foam::fvMeshDistribute::saveInternalFields
( (
PtrList<Field<T> >& iflds PtrList<Field<T>>& iflds
) const ) const
{ {
typedef GeometricField<T, fvsPatchField, surfaceMesh> fldType; typedef GeometricField<T, fvsPatchField, surfaceMesh> fldType;
@ -179,7 +179,7 @@ template<class T>
void Foam::fvMeshDistribute::mapExposedFaces void Foam::fvMeshDistribute::mapExposedFaces
( (
const mapPolyMesh& map, const mapPolyMesh& map,
const PtrList<Field<T> >& oldFlds const PtrList<Field<T>>& oldFlds
) )
{ {
// Set boundary values of exposed internal faces // Set boundary values of exposed internal faces

View File

@ -116,7 +116,7 @@ void Foam::PackingModels::Implicit<CloudType>::cacheFields(const bool store)
cloudName + ":rhoAverage" cloudName + ":rhoAverage"
); );
const AveragingMethod<vector>& uAverage = const AveragingMethod<vector>& uAverage =
mesh.lookupObject<AveragingMethod<vector> > mesh.lookupObject<AveragingMethod<vector>>
( (
cloudName + ":uAverage" cloudName + ":uAverage"
); );

View File

@ -76,7 +76,7 @@ singleProcessorFaceSetsConstraint
Foam::decompositionConstraints::singleProcessorFaceSetsConstraint:: Foam::decompositionConstraints::singleProcessorFaceSetsConstraint::
singleProcessorFaceSetsConstraint singleProcessorFaceSetsConstraint
( (
const List<Tuple2<word, label> >& setNameAndProcs const List<Tuple2<word, label>>& setNameAndProcs
) )
: :
decompositionConstraint(dictionary(), typeName), decompositionConstraint(dictionary(), typeName),

View File

@ -58,7 +58,7 @@ class singleProcessorFaceSetsConstraint
// Private data // Private data
//- List of faceSet+processor //- List of faceSet+processor
List<Tuple2<word, label> > setNameAndProcs_; List<Tuple2<word, label>> setNameAndProcs_;
public: public:
@ -78,7 +78,7 @@ public:
//- Construct from components //- Construct from components
singleProcessorFaceSetsConstraint singleProcessorFaceSetsConstraint
( (
const List<Tuple2<word, label> >& setNameAndProcs const List<Tuple2<word, label>>& setNameAndProcs
); );

View File

@ -523,7 +523,7 @@ void Foam::isoSurfaceCell::generateTriPoints
template<class Type> template<class Type>
Foam::tmp<Foam::Field<Type> > Foam::tmp<Foam::Field<Type>>
Foam::isoSurfaceCell::interpolate Foam::isoSurfaceCell::interpolate
( (
const Field<Type>& cCoords, const Field<Type>& cCoords,

View File

@ -742,7 +742,7 @@ Foam::isoSurface::interpolate
) )
{ {
// One value per point // One value per point
tmp<Field<Type> > tvalues(new Field<Type>(nPoints, Type(Zero))); tmp<Field<Type>> tvalues(new Field<Type>(nPoints, Type(Zero)));
Field<Type>& values = tvalues.ref(); Field<Type>& values = tvalues.ref();
labelList nValues(values.size(), 0); labelList nValues(values.size(), 0);
@ -770,7 +770,7 @@ Foam::isoSurface::interpolate
template<class Type> template<class Type>
Foam::tmp<Foam::Field<Type> > Foam::tmp<Foam::Field<Type>>
Foam::isoSurface::interpolate Foam::isoSurface::interpolate
( (
const GeometricField<Type, fvPatchField, volMesh>& cCoords, const GeometricField<Type, fvPatchField, volMesh>& cCoords,

View File

@ -67,10 +67,10 @@ inline Foam::logPolynomialTransport<Thermo, PolySize>::logPolynomialTransport
template<class Thermo, int PolySize> template<class Thermo, int PolySize>
inline Foam::autoPtr<Foam::logPolynomialTransport<Thermo, PolySize> > inline Foam::autoPtr<Foam::logPolynomialTransport<Thermo, PolySize>>
Foam::logPolynomialTransport<Thermo, PolySize>::clone() const Foam::logPolynomialTransport<Thermo, PolySize>::clone() const
{ {
return autoPtr<logPolynomialTransport<Thermo, PolySize> > return autoPtr<logPolynomialTransport<Thermo, PolySize>>
( (
new logPolynomialTransport<Thermo, PolySize>(*this) new logPolynomialTransport<Thermo, PolySize>(*this)
); );
@ -78,10 +78,10 @@ Foam::logPolynomialTransport<Thermo, PolySize>::clone() const
template<class Thermo, int PolySize> template<class Thermo, int PolySize>
inline Foam::autoPtr<Foam::logPolynomialTransport<Thermo, PolySize> > inline Foam::autoPtr<Foam::logPolynomialTransport<Thermo, PolySize>>
Foam::logPolynomialTransport<Thermo, PolySize>::New(Istream& is) Foam::logPolynomialTransport<Thermo, PolySize>::New(Istream& is)
{ {
return autoPtr<logPolynomialTransport<Thermo, PolySize> > return autoPtr<logPolynomialTransport<Thermo, PolySize>>
( (
new logPolynomialTransport<Thermo, PolySize>(is) new logPolynomialTransport<Thermo, PolySize>(is)
); );
@ -89,10 +89,10 @@ Foam::logPolynomialTransport<Thermo, PolySize>::New(Istream& is)
template<class Thermo, int PolySize> template<class Thermo, int PolySize>
inline Foam::autoPtr<Foam::logPolynomialTransport<Thermo, PolySize> > inline Foam::autoPtr<Foam::logPolynomialTransport<Thermo, PolySize>>
Foam::logPolynomialTransport<Thermo, PolySize>::New(const dictionary& dict) Foam::logPolynomialTransport<Thermo, PolySize>::New(const dictionary& dict)
{ {
return autoPtr<logPolynomialTransport<Thermo, PolySize> > return autoPtr<logPolynomialTransport<Thermo, PolySize>>
( (
new logPolynomialTransport<Thermo, PolySize>(dict) new logPolynomialTransport<Thermo, PolySize>(dict)
); );