Changes for gcc 4.7 on Ubuntu 12.10

This commit is contained in:
Henrik Rusche 2013-01-08 17:15:08 +01:00
parent 58a3297f6b
commit 2ac4e0a4d7
48 changed files with 130 additions and 103 deletions

View file

@ -0,0 +1,24 @@
diff -up ParaView-3.12.0/Qt/Core/pqServerManagerSelectionModel.h.gcc47 ParaView-3.12.0/Qt/Core/pqServerManagerSelectionModel.h
--- ParaView-3.12.0/Qt/Core/pqServerManagerSelectionModel.h.gcc47 2012-01-27 12:12:55.623530977 -0700
+++ ParaView-3.12.0/Qt/Core/pqServerManagerSelectionModel.h 2012-01-30 15:26:33.107335300 -0700
@@ -72,7 +72,7 @@ public:
Clear = QItemSelectionModel::Clear,
Select = QItemSelectionModel::Select,
Deselect = QItemSelectionModel::Deselect,
- ClearAndSelect = Clear | Select
+ ClearAndSelect = static_cast<int>(Clear) | static_cast<int>(Select)
};
Q_DECLARE_FLAGS(SelectionFlags, SelectionFlag)
diff -up ParaView-3.12.0/Utilities/Xdmf2/vtk/Testing/Cxx/XdmfTestVTKIO.cxx.gcc47 ParaView-3.12.0/Utilities/Xdmf2/vtk/Testing/Cxx/XdmfTestVTKIO.cxx
--- ParaView-3.12.0/Utilities/Xdmf2/vtk/Testing/Cxx/XdmfTestVTKIO.cxx.gcc47 2011-11-08 13:56:29.000000000 -0700
+++ ParaView-3.12.0/Utilities/Xdmf2/vtk/Testing/Cxx/XdmfTestVTKIO.cxx 2012-01-27 09:30:00.088542888 -0700
@@ -37,6 +37,8 @@
#include "vtkTimeSourceExample.h"
#include "vtkXdmfReader.h"
+#include <unistd.h>
+
#define NUMTESTS 20
const char testobject[NUMTESTS][40] = {

View file

@ -78,6 +78,7 @@ Source: %url/%{name}-%{version}.tar.gz
Prefix: %{_prefix} Prefix: %{_prefix}
Group: Development/Tools Group: Development/Tools
Patch0: ParaView-3.12.0.patch_darwin Patch0: ParaView-3.12.0.patch_darwin
Patch1: paraview-gcc47.patch
%define _installPrefix %{_prefix}/packages/%{name}-%{version}/platforms/%{_WM_OPTIONS} %define _installPrefix %{_prefix}/packages/%{name}-%{version}/platforms/%{_WM_OPTIONS}
@ -109,6 +110,8 @@ Patch0: ParaView-3.12.0.patch_darwin
%patch0 -p1 %patch0 -p1
%endif %endif
%patch1 -p1
%build %build
# #
# set CMake cache variables # set CMake cache variables

View file

@ -52,7 +52,7 @@ HashPtrTable<T, Key, Hash>::HashPtrTable(const HashPtrTable<T, Key, Hash>& ht)
for (const_iterator iter = ht.begin(); iter != ht.end(); ++iter) for (const_iterator iter = ht.begin(); iter != ht.end(); ++iter)
{ {
// Bug fix, Microsoft port. HJ, 21/Mar/2011 // Bug fix, Microsoft port. HJ, 21/Mar/2011
insert(iter.key(), iter()->clone().ptr()); this->insert(iter.key(), iter()->clone().ptr());
} }
} }

View file

@ -70,7 +70,7 @@ void HashPtrTable<T, Key, Hash>::read(Istream& is, const INew& inewt)
{ {
Key key; Key key;
is >> key; is >> key;
insert(key, inewt(key, is).ptr()); this->insert(key, inewt(key, is).ptr());
is.fatalCheck is.fatalCheck
( (
@ -117,7 +117,7 @@ void HashPtrTable<T, Key, Hash>::read(Istream& is, const INew& inewt)
is.putBack(lastToken); is.putBack(lastToken);
Key key; Key key;
is >> key; is >> key;
insert(key, inewt(key, is).ptr()); this->insert(key, inewt(key, is).ptr());
is.fatalCheck is.fatalCheck
( (

View file

@ -48,7 +48,7 @@ Foam::HashSet<Key, Hash>::HashSet
++cit ++cit
) )
{ {
insert(cit.key()); this->insert(cit.key());
} }
} }
@ -58,7 +58,7 @@ Foam::HashSet<Key, Hash>::HashSet
template<class Key, class Hash> template<class Key, class Hash>
inline bool Foam::HashSet<Key, Hash>::operator[](const Key& key) const inline bool Foam::HashSet<Key, Hash>::operator[](const Key& key) const
{ {
return found(key); return this->found(key);
} }
@ -77,7 +77,7 @@ bool Foam::HashSet<Key, Hash>::operator==(const HashSet<Key, Hash>& rhs) const
// Are all rhs elements in lhs? // Are all rhs elements in lhs?
for (const_iterator iter = rhs.cbegin(); iter != rhs.cend(); ++iter) for (const_iterator iter = rhs.cbegin(); iter != rhs.cend(); ++iter)
{ {
if (!found(iter.key())) if (!this->found(iter.key()))
{ {
return false; return false;
} }
@ -90,7 +90,7 @@ bool Foam::HashSet<Key, Hash>::operator==(const HashSet<Key, Hash>& rhs) const
template<class Key, class Hash> template<class Key, class Hash>
bool Foam::HashSet<Key, Hash>::operator!=(const HashSet<Key, Hash>& rhs) const bool Foam::HashSet<Key, Hash>::operator!=(const HashSet<Key, Hash>& rhs) const
{ {
return !(operator==(rhs)); return !(this->operator==(rhs));
} }
@ -100,7 +100,7 @@ void Foam::HashSet<Key, Hash>::operator|=(const HashSet<Key, Hash>& rhs)
// Add rhs elements into lhs // Add rhs elements into lhs
for (const_iterator iter = rhs.cbegin(); iter != rhs.cend(); ++iter) for (const_iterator iter = rhs.cbegin(); iter != rhs.cend(); ++iter)
{ {
insert(iter.key()); this->insert(iter.key());
} }
} }
@ -113,7 +113,7 @@ void Foam::HashSet<Key, Hash>::operator&=(const HashSet<Key, Hash>& rhs)
{ {
if (!rhs.found(iter.key())) if (!rhs.found(iter.key()))
{ {
erase(iter); this->erase(iter);
} }
} }
} }
@ -127,11 +127,11 @@ void Foam::HashSet<Key, Hash>::operator^=(const HashSet<Key, Hash>& rhs)
{ {
if (found(iter.key())) if (found(iter.key()))
{ {
erase(iter.key()); this->erase(iter.key());
} }
else else
{ {
insert(iter.key()); this->insert(iter.key());
} }
} }
} }
@ -144,7 +144,7 @@ void Foam::HashSet<Key, Hash>::operator-=(const HashSet<Key, Hash>& rhs)
// Remove rhs elements from lhs // Remove rhs elements from lhs
for (const_iterator iter = rhs.cbegin(); iter != rhs.cend(); ++iter) for (const_iterator iter = rhs.cbegin(); iter != rhs.cend(); ++iter)
{ {
erase(iter.key()); this->erase(iter.key());
} }
} }

View file

@ -40,7 +40,7 @@ Foam::ILList<LListBase, T>::ILList(const ILList<LListBase, T>& lst)
++iter ++iter
) )
{ {
append(iter().clone().ptr()); this->append(iter().clone().ptr());
} }
} }
@ -63,7 +63,7 @@ Foam::ILList<LListBase, T>::ILList
++iter ++iter
) )
{ {
append(iter().clone(cloneArg).ptr()); this->append(iter().clone(cloneArg).ptr());
} }
} }
#endif #endif
@ -146,7 +146,7 @@ void Foam::ILList<LListBase, T>::operator=(const ILList<LListBase, T>& lst)
++iter ++iter
) )
{ {
append(iter().clone().ptr()); this->append(iter().clone().ptr());
} }
} }

View file

@ -58,7 +58,7 @@ void Foam::ILList<LListBase, T>::read(Istream& is, const INew& iNew)
{ {
for (label i=0; i<s; i++) for (label i=0; i<s; i++)
{ {
append(iNew(is).ptr()); this->append(iNew(is).ptr());
is.fatalCheck is.fatalCheck
( (
@ -70,7 +70,7 @@ void Foam::ILList<LListBase, T>::read(Istream& is, const INew& iNew)
else else
{ {
T* tPtr = iNew(is).ptr(); T* tPtr = iNew(is).ptr();
append(tPtr); this->append(tPtr);
is.fatalCheck is.fatalCheck
( (
@ -80,7 +80,7 @@ void Foam::ILList<LListBase, T>::read(Istream& is, const INew& iNew)
for (label i=1; i<s; i++) for (label i=1; i<s; i++)
{ {
append(new T(*tPtr)); this->append(new T(*tPtr));
} }
} }
} }
@ -112,7 +112,7 @@ void Foam::ILList<LListBase, T>::read(Istream& is, const INew& iNew)
) )
{ {
is.putBack(lastToken); is.putBack(lastToken);
append(iNew(is).ptr()); this->append(iNew(is).ptr());
is >> lastToken; is >> lastToken;
is.fatalCheck("operator>>(Istream&, ILList<LListBase, T>&)"); is.fatalCheck("operator>>(Istream&, ILList<LListBase, T>&)");

View file

@ -61,7 +61,7 @@ void Foam::LPtrList<LListBase, T>::read(Istream& is, const INew& iNew)
{ {
for (label i=0; i<s; i++) for (label i=0; i<s; i++)
{ {
append(iNew(is).ptr()); this->append(iNew(is).ptr());
is.fatalCheck is.fatalCheck
( (
@ -73,7 +73,7 @@ void Foam::LPtrList<LListBase, T>::read(Istream& is, const INew& iNew)
else else
{ {
T* tPtr = iNew(is).ptr(); T* tPtr = iNew(is).ptr();
append(tPtr); this->append(tPtr);
is.fatalCheck is.fatalCheck
( (
@ -83,7 +83,7 @@ void Foam::LPtrList<LListBase, T>::read(Istream& is, const INew& iNew)
for (label i=1; i<s; i++) for (label i=1; i<s; i++)
{ {
append(tPtr->clone().ptr()); this->append(tPtr->clone().ptr());
} }
} }
} }
@ -115,7 +115,7 @@ void Foam::LPtrList<LListBase, T>::read(Istream& is, const INew& iNew)
) )
{ {
is.putBack(lastToken); is.putBack(lastToken);
append(iNew(is).ptr()); this->append(iNew(is).ptr());
is >> lastToken; is >> lastToken;
is.fatalCheck is.fatalCheck
@ -145,14 +145,14 @@ template<class LListBase, class T>
template<class INew> template<class INew>
Foam::LPtrList<LListBase, T>::LPtrList(Istream& is, const INew& iNew) Foam::LPtrList<LListBase, T>::LPtrList(Istream& is, const INew& iNew)
{ {
read(is, iNew); this->read(is, iNew);
} }
template<class LListBase, class T> template<class LListBase, class T>
Foam::LPtrList<LListBase, T>::LPtrList(Istream& is) Foam::LPtrList<LListBase, T>::LPtrList(Istream& is)
{ {
read(is, INew<T>()); this->read(is, INew<T>());
} }

View file

@ -448,7 +448,7 @@ void DimensionedField<Type, GeoMesh>::operator=
checkField(*this, df, "="); checkField(*this, df, "=");
dimensions_ = df.dimensions(); dimensions_ = df.dimensions();
transfer(const_cast<DimensionedField<Type, GeoMesh>&>(df)); this->transfer(const_cast<DimensionedField<Type, GeoMesh>&>(df));
tdf.clear(); tdf.clear();
} }

View file

@ -44,7 +44,7 @@ void DimensionedField<Type, GeoMesh>::readField
dimensions_.reset(dimensionSet(fieldDict.lookup("dimensions"))); dimensions_.reset(dimensionSet(fieldDict.lookup("dimensions")));
Field<Type> f(fieldDictEntry, fieldDict, GeoMesh::size(mesh_)); Field<Type> f(fieldDictEntry, fieldDict, GeoMesh::size(mesh_));
transfer(f); this->transfer(f);
} }

View file

@ -53,7 +53,7 @@ GeometricBoundaryField
forAll(bmesh_, patchi) forAll(bmesh_, patchi)
{ {
set this->set
( (
patchi, patchi,
PatchField<Type>::New PatchField<Type>::New
@ -105,7 +105,7 @@ GeometricBoundaryField
forAll(bmesh_, patchi) forAll(bmesh_, patchi)
{ {
set this->set
( (
patchi, patchi,
PatchField<Type>::New PatchField<Type>::New
@ -142,7 +142,7 @@ GeometricBoundaryField
forAll(bmesh_, patchi) forAll(bmesh_, patchi)
{ {
set(patchi, ptfl[patchi].clone(field)); this->set(patchi, ptfl[patchi].clone(field));
} }
} }
@ -170,7 +170,7 @@ GeometricBoundaryField
forAll(bmesh_, patchi) forAll(bmesh_, patchi)
{ {
set(patchi, btf[patchi].clone(field)); this->set(patchi, btf[patchi].clone(field));
} }
} }
@ -227,7 +227,7 @@ GeometricBoundaryField
{ {
if (bmesh_[patchi].type() != emptyPolyPatch::typeName) if (bmesh_[patchi].type() != emptyPolyPatch::typeName)
{ {
set this->set
( (
patchi, patchi,
PatchField<Type>::New PatchField<Type>::New
@ -240,7 +240,7 @@ GeometricBoundaryField
} }
else else
{ {
set this->set
( (
patchi, patchi,
PatchField<Type>::New PatchField<Type>::New

View file

@ -240,7 +240,7 @@ updateCoeffs()
// Get internal field to insert values into // Get internal field to insert values into
Field<Type>& iF = const_cast<Field<Type>&>(this->internalField()); Field<Type>& iF = const_cast<Field<Type>&>(this->internalField());
setInInternalField(iF, values); this->setInInternalField(iF, values);
} }
PointPatchField<PatchField, Mesh, PointPatch, MatrixType, Type>:: PointPatchField<PatchField, Mesh, PointPatch, MatrixType, Type>::
@ -273,7 +273,7 @@ ValuePointPatchField<PatchField, Mesh, PointPatch, MatrixType, Type>::evaluate
// Get internal field to insert values into // Get internal field to insert values into
Field<Type>& iF = const_cast<Field<Type>&>(this->internalField()); Field<Type>& iF = const_cast<Field<Type>&>(this->internalField());
setInInternalField(iF, values); this->setInInternalField(iF, values);
} }
PointPatchField<PatchField, Mesh, PointPatch, MatrixType, Type>::evaluate PointPatchField<PatchField, Mesh, PointPatch, MatrixType, Type>::evaluate

View file

@ -233,7 +233,7 @@ initAddFieldTempl
const Field<Type2>& pField const Field<Type2>& pField
) const ) const
{ {
sendField(patchInternalField(pField), commsType); sendField(this->patchInternalField(pField), commsType);
} }
@ -258,7 +258,7 @@ addFieldTempl
{ {
// Get the neighbour side values // Get the neighbour side values
tmp<Field<Type2> > tpNeighbour = receivePointField<Type2>(commsType); tmp<Field<Type2> > tpNeighbour = receivePointField<Type2>(commsType);
addToInternalField(pField, tpNeighbour()); this->addToInternalField(pField, tpNeighbour());
} }
@ -511,7 +511,7 @@ evaluate
} }
// Average over two sides // Average over two sides
tpn = 0.5*(patchInternalField(this->internalField()) + tpn); tpn = 0.5*(this->patchInternalField(this->internalField()) + tpn);
// Get internal field to insert values into // Get internal field to insert values into
Field<Type>& iF = const_cast<Field<Type>&>(this->internalField()); Field<Type>& iF = const_cast<Field<Type>&>(this->internalField());

View file

@ -247,7 +247,7 @@ void GlobalPointPatchField
{ {
// Set the values from the global sum // Set the values from the global sum
tmp<Field<Type2> > trpf = tmp<Field<Type2> > trpf =
reduceExtractPoint<Type2>(patchInternalField(pField)); reduceExtractPoint<Type2>(this->patchInternalField(pField));
Field<Type2>& rpf = trpf(); Field<Type2>& rpf = trpf();

View file

@ -162,7 +162,7 @@ Foam::BlockBiCGStabSolver<Type>::solve
solverPerf.finalResidual() = gSum(cmptMag(r))/norm; solverPerf.finalResidual() = gSum(cmptMag(r))/norm;
solverPerf.nIterations()++; solverPerf.nIterations()++;
} while (!stop(solverPerf)); } while (!this->stop(solverPerf));
} }
return solverPerf; return solverPerf;

View file

@ -144,7 +144,7 @@ typename Foam::BlockSolverPerformance<Type> Foam::BlockCGSolver<Type>::solve
solverPerf.finalResidual() = gSum(cmptMag(rA))/norm; solverPerf.finalResidual() = gSum(cmptMag(rA))/norm;
solverPerf.nIterations()++; solverPerf.nIterations()++;
} while (!stop(solverPerf)); } while (!this->stop(solverPerf));
} }
return solverPerf; return solverPerf;

View file

@ -240,7 +240,7 @@ Foam::BlockGMRESSolver<Type>::solve
solverPerf.finalResidual() = gSum(cmptMag(rA))/norm; solverPerf.finalResidual() = gSum(cmptMag(rA))/norm;
solverPerf.nIterations()++; solverPerf.nIterations()++;
} while (!stop(solverPerf)); } while (!this->stop(solverPerf));
} }
return solverPerf; return solverPerf;

View file

@ -106,7 +106,7 @@ Foam::BlockGaussSeidelSolver<Type>::solve
solverPerf.finalResidual() = gSum(cmptMag(wA))/norm; solverPerf.finalResidual() = gSum(cmptMag(wA))/norm;
solverPerf.nIterations()++; solverPerf.nIterations()++;
} while (!stop(solverPerf)); } while (!this->stop(solverPerf));
} }
return solverPerf; return solverPerf;

View file

@ -165,7 +165,7 @@ Foam::scalar Foam::ExactParticle<ParticleType>::trackToFace
this->position_ = endPosition; this->position_ = endPosition;
} }
label patchi = patch(this->facei_); label patchi = this->patch(this->facei_);
const polyPatch& patch = mesh.boundaryMesh()[patchi]; const polyPatch& patch = mesh.boundaryMesh()[patchi];
if (isA<wedgePolyPatch>(patch)) if (isA<wedgePolyPatch>(patch))

View file

@ -176,7 +176,7 @@ bool Foam::TimeActivatedExplicitSourceList<Type>::readData(Istream& is)
typename TimeActivatedExplicitSource<Type>::iNew(mesh_, fieldNames_) typename TimeActivatedExplicitSource<Type>::iNew(mesh_, fieldNames_)
); );
transfer(newSources); this->transfer(newSources);
return is.good(); return is.good();
} }

View file

@ -518,7 +518,7 @@ CoEulerDdtScheme<Type>::fvcDdtPhiCorr
new fluxFieldType new fluxFieldType
( (
ddtIOobject, ddtIOobject,
fvcDdtPhiCoeff(U.oldTime(), phi.oldTime())* this->fvcDdtPhiCoeff(U.oldTime(), phi.oldTime())*
( (
fvc::interpolate(rDeltaT*rA)*phi.oldTime() fvc::interpolate(rDeltaT*rA)*phi.oldTime()
- (fvc::interpolate(rDeltaT*rA*U.oldTime()) & mesh().Sf()) - (fvc::interpolate(rDeltaT*rA*U.oldTime()) & mesh().Sf())
@ -579,7 +579,7 @@ CoEulerDdtScheme<Type>::fvcDdtPhiCorr
new fluxFieldType new fluxFieldType
( (
ddtIOobject, ddtIOobject,
fvcDdtPhiCoeff(U.oldTime(), phi.oldTime()) this->fvcDdtPhiCoeff(U.oldTime(), phi.oldTime())
*( *(
fvc::interpolate(rDeltaT*rA*rho.oldTime())*phi.oldTime() fvc::interpolate(rDeltaT*rA*rho.oldTime())*phi.oldTime()
- (fvc::interpolate(rDeltaT*rA*rho.oldTime()*U.oldTime()) - (fvc::interpolate(rDeltaT*rA*rho.oldTime()*U.oldTime())
@ -599,7 +599,7 @@ CoEulerDdtScheme<Type>::fvcDdtPhiCorr
new fluxFieldType new fluxFieldType
( (
ddtIOobject, ddtIOobject,
fvcDdtPhiCoeff this->fvcDdtPhiCoeff
( (
U.oldTime(), U.oldTime(),
phi.oldTime()/fvc::interpolate(rho.oldTime()) phi.oldTime()/fvc::interpolate(rho.oldTime())
@ -628,7 +628,7 @@ CoEulerDdtScheme<Type>::fvcDdtPhiCorr
new fluxFieldType new fluxFieldType
( (
ddtIOobject, ddtIOobject,
fvcDdtPhiCoeff(rho.oldTime(), U.oldTime(), phi.oldTime()) this->fvcDdtPhiCoeff(rho.oldTime(), U.oldTime(), phi.oldTime())
*( *(
fvc::interpolate(rDeltaT*rA)*phi.oldTime() fvc::interpolate(rDeltaT*rA)*phi.oldTime()
- ( - (

View file

@ -947,7 +947,7 @@ CrankNicholsonDdtScheme<Type>::fvcDdtPhiCorr
new fluxFieldType new fluxFieldType
( (
ddtIOobject, ddtIOobject,
fvcDdtPhiCoeff(U.oldTime(), phi.oldTime()) this->fvcDdtPhiCoeff(U.oldTime(), phi.oldTime())
*fvc::interpolate(rA) *fvc::interpolate(rA)
*( *(
(rDtCoef*phi.oldTime() + offCentre_(dphidt0())) (rDtCoef*phi.oldTime() + offCentre_(dphidt0()))
@ -1046,7 +1046,7 @@ CrankNicholsonDdtScheme<Type>::fvcDdtPhiCorr
new fluxFieldType new fluxFieldType
( (
ddtIOobject, ddtIOobject,
fvcDdtPhiCoeff(U.oldTime(), phi.oldTime())* this->fvcDdtPhiCoeff(U.oldTime(), phi.oldTime())*
( (
fvc::interpolate(rA*rho.oldTime()) fvc::interpolate(rA*rho.oldTime())
*(rDtCoef*phi.oldTime() + offCentre_(dphidt0())) *(rDtCoef*phi.oldTime() + offCentre_(dphidt0()))
@ -1091,7 +1091,7 @@ CrankNicholsonDdtScheme<Type>::fvcDdtPhiCorr
new fluxFieldType new fluxFieldType
( (
ddtIOobject, ddtIOobject,
fvcDdtPhiCoeff this->fvcDdtPhiCoeff
( (
U.oldTime(), U.oldTime(),
phi.oldTime()/fvc::interpolate(rho.oldTime()) phi.oldTime()/fvc::interpolate(rho.oldTime())
@ -1140,7 +1140,7 @@ CrankNicholsonDdtScheme<Type>::fvcDdtPhiCorr
new fluxFieldType new fluxFieldType
( (
ddtIOobject, ddtIOobject,
fvcDdtPhiCoeff(rho.oldTime(), U.oldTime(), phi.oldTime())* this->fvcDdtPhiCoeff(rho.oldTime(), U.oldTime(), phi.oldTime())*
( (
fvc::interpolate(rA) fvc::interpolate(rA)
*(rDtCoef*phi.oldTime() + offCentre_(dphidt0())) *(rDtCoef*phi.oldTime() + offCentre_(dphidt0()))

View file

@ -395,7 +395,7 @@ EulerDdtScheme<Type>::fvcDdtPhiCorr
new fluxFieldType new fluxFieldType
( (
ddtIOobject, ddtIOobject,
fvcDdtPhiCoeff(U.oldTime(), phiAbs.oldTime(), phiCorr()) this->fvcDdtPhiCoeff(U.oldTime(), phiAbs.oldTime(), phiCorr())
*fvc::interpolate(rDeltaT*rA)*phiCorr *fvc::interpolate(rDeltaT*rA)*phiCorr
) )
); );
@ -437,7 +437,7 @@ EulerDdtScheme<Type>::fvcDdtPhiCorr
( (
ddtIOobject, ddtIOobject,
rDeltaT rDeltaT
*fvcDdtPhiCoeff(U.oldTime(), phiAbs.oldTime()) *this->fvcDdtPhiCoeff(U.oldTime(), phiAbs.oldTime())
*( *(
fvc::interpolate(rA*rho.oldTime())*phiAbs.oldTime() fvc::interpolate(rA*rho.oldTime())*phiAbs.oldTime()
- (fvc::interpolate(rA*rho.oldTime()*U.oldTime()) - (fvc::interpolate(rA*rho.oldTime()*U.oldTime())
@ -458,7 +458,7 @@ EulerDdtScheme<Type>::fvcDdtPhiCorr
( (
ddtIOobject, ddtIOobject,
rDeltaT rDeltaT
*fvcDdtPhiCoeff *this->fvcDdtPhiCoeff
( (
U.oldTime(), U.oldTime(),
phiAbs.oldTime()/fvc::interpolate(rho.oldTime()) phiAbs.oldTime()/fvc::interpolate(rho.oldTime())
@ -488,7 +488,7 @@ EulerDdtScheme<Type>::fvcDdtPhiCorr
( (
ddtIOobject, ddtIOobject,
rDeltaT rDeltaT
*fvcDdtPhiCoeff(rho.oldTime(), U.oldTime(), phiAbs.oldTime()) *this->fvcDdtPhiCoeff(rho.oldTime(), U.oldTime(), phiAbs.oldTime())
*( *(
fvc::interpolate(rA)*phiAbs.oldTime() fvc::interpolate(rA)*phiAbs.oldTime()
- (fvc::interpolate(rA*U.oldTime()) & mesh().Sf()) - (fvc::interpolate(rA*U.oldTime()) & mesh().Sf())

View file

@ -520,7 +520,7 @@ SLTSDdtScheme<Type>::fvcDdtPhiCorr
new fluxFieldType new fluxFieldType
( (
ddtIOobject, ddtIOobject,
fvcDdtPhiCoeff(U.oldTime(), phi.oldTime())* this->fvcDdtPhiCoeff(U.oldTime(), phi.oldTime())*
( (
fvc::interpolate(rDeltaT*rA)*phi.oldTime() fvc::interpolate(rDeltaT*rA)*phi.oldTime()
- (fvc::interpolate(rDeltaT*rA*U.oldTime()) & mesh().Sf()) - (fvc::interpolate(rDeltaT*rA*U.oldTime()) & mesh().Sf())
@ -581,7 +581,7 @@ SLTSDdtScheme<Type>::fvcDdtPhiCorr
new fluxFieldType new fluxFieldType
( (
ddtIOobject, ddtIOobject,
fvcDdtPhiCoeff(U.oldTime(), phi.oldTime()) this->fvcDdtPhiCoeff(U.oldTime(), phi.oldTime())
*( *(
fvc::interpolate(rDeltaT*rA*rho.oldTime())*phi.oldTime() fvc::interpolate(rDeltaT*rA*rho.oldTime())*phi.oldTime()
- (fvc::interpolate(rDeltaT*rA*rho.oldTime()*U.oldTime()) - (fvc::interpolate(rDeltaT*rA*rho.oldTime()*U.oldTime())
@ -601,7 +601,7 @@ SLTSDdtScheme<Type>::fvcDdtPhiCorr
new fluxFieldType new fluxFieldType
( (
ddtIOobject, ddtIOobject,
fvcDdtPhiCoeff this->fvcDdtPhiCoeff
( (
U.oldTime(), U.oldTime(),
phi.oldTime()/fvc::interpolate(rho.oldTime()) phi.oldTime()/fvc::interpolate(rho.oldTime())
@ -630,7 +630,7 @@ SLTSDdtScheme<Type>::fvcDdtPhiCorr
new fluxFieldType new fluxFieldType
( (
ddtIOobject, ddtIOobject,
fvcDdtPhiCoeff(rho.oldTime(), U.oldTime(), phi.oldTime()) this->fvcDdtPhiCoeff(rho.oldTime(), U.oldTime(), phi.oldTime())
*( *(
fvc::interpolate(rDeltaT*rA)*phi.oldTime() fvc::interpolate(rDeltaT*rA)*phi.oldTime()
- ( - (

View file

@ -545,7 +545,7 @@ backwardDdtScheme<Type>::fvcDdtPhiCorr
new fluxFieldType new fluxFieldType
( (
ddtIOobject, ddtIOobject,
rDeltaT*fvcDdtPhiCoeff(U.oldTime(), phi.oldTime()) rDeltaT*this->fvcDdtPhiCoeff(U.oldTime(), phi.oldTime())
*( *(
fvc::interpolate(rA) fvc::interpolate(rA)
*( *(
@ -609,7 +609,7 @@ backwardDdtScheme<Type>::fvcDdtPhiCorr
new fluxFieldType new fluxFieldType
( (
ddtIOobject, ddtIOobject,
rDeltaT*fvcDdtPhiCoeff(U.oldTime(), phiAbs.oldTime()) rDeltaT*this->fvcDdtPhiCoeff(U.oldTime(), phiAbs.oldTime())
*( *(
coefft0*fvc::interpolate(rA*rho.oldTime()) coefft0*fvc::interpolate(rA*rho.oldTime())
*phiAbs.oldTime() *phiAbs.oldTime()
@ -642,7 +642,7 @@ backwardDdtScheme<Type>::fvcDdtPhiCorr
( (
ddtIOobject, ddtIOobject,
rDeltaT rDeltaT
*fvcDdtPhiCoeff *this->fvcDdtPhiCoeff
( (
U.oldTime(), U.oldTime(),
phiAbs.oldTime()/fvc::interpolate(rho.oldTime()) phiAbs.oldTime()/fvc::interpolate(rho.oldTime())
@ -681,7 +681,7 @@ backwardDdtScheme<Type>::fvcDdtPhiCorr
( (
ddtIOobject, ddtIOobject,
rDeltaT rDeltaT
*fvcDdtPhiCoeff(rho.oldTime(), U.oldTime(), phiAbs.oldTime()) *this->fvcDdtPhiCoeff(rho.oldTime(), U.oldTime(), phiAbs.oldTime())
*( *(
fvc::interpolate(rA) fvc::interpolate(rA)
*( *(

View file

@ -217,7 +217,7 @@ limitedSurfaceInterpolationScheme<Type>::flux
const GeometricField<Type, fvPatchField, volMesh>& phi const GeometricField<Type, fvPatchField, volMesh>& phi
) const ) const
{ {
return faceFlux_*interpolate(phi); return faceFlux_*this->interpolate(phi);
} }

View file

@ -68,7 +68,7 @@ public:
void add(const GeometricField<Type, fvPatchField, volMesh>& f) void add(const GeometricField<Type, fvPatchField, volMesh>& f)
{ {
insert(f.name(), &f); this->insert(f.name(), &f);
} }
}; };

View file

@ -87,7 +87,7 @@ Foam::label Foam::Cloud<ParticleType>::getNewParticleID() const
template<class ParticleType> template<class ParticleType>
void Foam::Cloud<ParticleType>::addParticle(ParticleType* pPtr) void Foam::Cloud<ParticleType>::addParticle(ParticleType* pPtr)
{ {
append(pPtr); this->append(pPtr);
} }

View file

@ -586,7 +586,7 @@ void Foam::DsmcCloud<ParcelType>::addNewParcel
typeId typeId
); );
addParticle(pPtr); this->addParticle(pPtr);
} }

View file

@ -249,7 +249,7 @@ void Foam::ReactingMultiphaseParcel<ParcelType>::calc
scalarField Cs(td.cloud().mcCarrierThermo().species().size(), 0.0); scalarField Cs(td.cloud().mcCarrierThermo().species().size(), 0.0);
// Calc mass and enthalpy transfer due to phase change // Calc mass and enthalpy transfer due to phase change
calcPhaseChange this->calcPhaseChange
( (
td, td,
dt, dt,
@ -278,7 +278,7 @@ void Foam::ReactingMultiphaseParcel<ParcelType>::calc
scalarField dMassDV(YGas_.size(), 0.0); scalarField dMassDV(YGas_.size(), 0.0);
// Calc mass and enthalpy transfer due to devolatilisation // Calc mass and enthalpy transfer due to devolatilisation
calcDevolatilisation this->calcDevolatilisation
( (
td, td,
dt, dt,
@ -299,7 +299,7 @@ void Foam::ReactingMultiphaseParcel<ParcelType>::calc
); );
// Correct surface values due to emitted species // Correct surface values due to emitted species
correctSurfaceValues(td, cellI, Ts, Cs, rhos, mus, Pr, kappa); this->correctSurfaceValues(td, cellI, Ts, Cs, rhos, mus, Pr, kappa);
// Surface reactions // Surface reactions
@ -356,7 +356,7 @@ void Foam::ReactingMultiphaseParcel<ParcelType>::calc
// Calculate new particle temperature // Calculate new particle temperature
scalar T1 = scalar T1 =
calcHeatTransfer this->calcHeatTransfer
( (
td, td,
dt, dt,
@ -379,7 +379,7 @@ void Foam::ReactingMultiphaseParcel<ParcelType>::calc
// Calculate new particle velocity // Calculate new particle velocity
vector U1 = vector U1 =
calcVelocity(td, dt, cellI, Re, mus, d0, U0, rho0, mass0, Su, dUTrans); this->calcVelocity(td, dt, cellI, Re, mus, d0, U0, rho0, mass0, Su, dUTrans);
dUTrans += 0.5*(mass0 - mass1)*(U0 + U1); dUTrans += 0.5*(mass0 - mass1)*(U0 + U1);

View file

@ -302,7 +302,7 @@ void Foam::ReactingParcel<ParcelType>::calc
// Calculate new particle temperature // Calculate new particle temperature
scalar T1 = scalar T1 =
calcHeatTransfer this->calcHeatTransfer
( (
td, td,
dt, dt,
@ -325,7 +325,7 @@ void Foam::ReactingParcel<ParcelType>::calc
// Calculate new particle velocity // Calculate new particle velocity
vector U1 = vector U1 =
calcVelocity(td, dt, cellI, Re, mus, d0, U0, rho0, mass0, Su, dUTrans); this->calcVelocity(td, dt, cellI, Re, mus, d0, U0, rho0, mass0, Su, dUTrans);
dUTrans += 0.5*(mass0 - mass1)*(U0 + U1); dUTrans += 0.5*(mass0 - mass1)*(U0 + U1);

View file

@ -181,7 +181,7 @@ void Foam::ThermoParcel<ParcelType>::calc
// Calculate new particle velocity // Calculate new particle velocity
vector U1 = vector U1 =
calcVelocity(td, dt, cellI, Re, mus, d0, U0, rho0, mass0, Su, dUTrans); this->calcVelocity(td, dt, cellI, Re, mus, d0, U0, rho0, mass0, Su, dUTrans);
// Accumulate carrier phase source terms // Accumulate carrier phase source terms

View file

@ -87,7 +87,7 @@ void Foam::gnuplotSetWriter<Type>::write
forAll(valueSets, i) forAll(valueSets, i)
{ {
writeTable(points, *valueSets[i], os); this->writeTable(points, *valueSets[i], os);
os << "e" << nl; os << "e" << nl;
} }
} }
@ -132,7 +132,7 @@ void Foam::gnuplotSetWriter<Type>::write
forAll(valueSets, i) forAll(valueSets, i)
{ {
writeTable(trackPoints[trackI], valueSets[i][trackI], os); this->writeTable(trackPoints[trackI], valueSets[i][trackI], os);
os << "e" << nl; os << "e" << nl;
} }
} }

View file

@ -97,7 +97,7 @@ void Foam::jplotSetWriter<Type>::write
columns[i] = valueSets[i]; columns[i] = valueSets[i];
} }
writeTable(points, columns, os); this->writeTable(points, columns, os);
} }

View file

@ -75,7 +75,7 @@ void Foam::rawSetWriter<Type>::write
columns[i] = valueSets[i]; columns[i] = valueSets[i];
} }
writeTable(points, columns, os); this->writeTable(points, columns, os);
} }
@ -107,7 +107,7 @@ void Foam::rawSetWriter<Type>::write
columns[i] = &valueSets[i][trackI]; columns[i] = &valueSets[i][trackI];
} }
writeTable(points[trackI], columns, os); this->writeTable(points[trackI], columns, os);
os << nl << nl; os << nl << nl;
} }
} }

View file

@ -79,7 +79,7 @@ void Foam::xmgraceSetWriter<Type>::write
<< valueSetNames[i] << '"' << nl << valueSetNames[i] << '"' << nl
<< "@target G0.S" << i << nl; << "@target G0.S" << i << nl;
writeTable(points, *valueSets[i], os); this->writeTable(points, *valueSets[i], os);
os << '&' << nl; os << '&' << nl;
} }
@ -120,7 +120,7 @@ void Foam::xmgraceSetWriter<Type>::write
os << "@ s" << sI << " legend " << '"' os << "@ s" << sI << " legend " << '"'
<< valueSetNames[i] << "_track" << i << '"' << nl << valueSetNames[i] << "_track" << i << '"' << nl
<< "@target G0.S" << sI << nl; << "@target G0.S" << sI << nl;
writeTable(trackPoints[trackI], valueSets[i][trackI], os); this->writeTable(trackPoints[trackI], valueSets[i][trackI], os);
os << '&' << nl; os << '&' << nl;
sI++; sI++;

View file

@ -38,7 +38,7 @@ Foam::fileFormats::AC3DsurfaceFormat<Face>::AC3DsurfaceFormat
const fileName& filename const fileName& filename
) )
{ {
read(filename); this->read(filename);
} }
@ -287,7 +287,7 @@ void Foam::fileFormats::AC3DsurfaceFormat<Face>::write
( (
surf.surfZones().size() surf.surfZones().size()
? surf.surfZones() ? surf.surfZones()
: oneZone(faceLst) : AC3DsurfaceFormat::oneZone(faceLst)
); );
const bool useFaceMap = (surf.useFaceMap() && zones.size() > 1); const bool useFaceMap = (surf.useFaceMap() && zones.size() > 1);

View file

@ -36,7 +36,7 @@ Foam::fileFormats::NASsurfaceFormat<Face>::NASsurfaceFormat
const fileName& filename const fileName& filename
) )
{ {
read(filename); this->read(filename);
} }
@ -380,7 +380,7 @@ bool Foam::fileFormats::NASsurfaceFormat<Face>::read
} }
} }
sortFacesAndStore(dynFaces.xfer(), dynZones.xfer(), sorted); this->sortFacesAndStore(dynFaces.xfer(), dynZones.xfer(), sorted);
// add zones, culling empty ones // add zones, culling empty ones
this->addZones(dynSizes, names, true); this->addZones(dynSizes, names, true);

View file

@ -40,7 +40,7 @@ Foam::fileFormats::OBJsurfaceFormat<Face>::OBJsurfaceFormat
const fileName& filename const fileName& filename
) )
{ {
read(filename); this->read(filename);
} }
@ -203,7 +203,7 @@ bool Foam::fileFormats::OBJsurfaceFormat<Face>::read
// transfer to normal lists // transfer to normal lists
this->storedPoints().transfer(dynPoints); this->storedPoints().transfer(dynPoints);
sortFacesAndStore(dynFaces.xfer(), dynZones.xfer(), sorted); this->sortFacesAndStore(dynFaces.xfer(), dynZones.xfer(), sorted);
// add zones, culling empty ones // add zones, culling empty ones
this->addZones(dynSizes, dynNames, true); this->addZones(dynSizes, dynNames, true);
@ -227,7 +227,7 @@ void Foam::fileFormats::OBJsurfaceFormat<Face>::write
( (
surf.surfZones().size() > 1 surf.surfZones().size() > 1
? surf.surfZones() ? surf.surfZones()
: oneZone(faceLst, "") : OBJsurfaceFormat::oneZone(faceLst, "")
); );
const bool useFaceMap = (surf.useFaceMap() && zones.size() > 1); const bool useFaceMap = (surf.useFaceMap() && zones.size() > 1);

View file

@ -142,7 +142,7 @@ bool Foam::fileFormats::OFFsurfaceFormat<Face>::read
} }
// transfer to normal lists, no zone information // transfer to normal lists, no zone information
reset(pointLst.xfer(), dynFaces.xfer(), Xfer<surfZoneList>()); this->reset(pointLst.xfer(), dynFaces.xfer(), Xfer<surfZoneList>());
return true; return true;
} }

View file

@ -54,7 +54,7 @@ void Foam::fileFormats::SMESHsurfaceFormat<Face>::write
( (
surf.surfZones().size() > 1 surf.surfZones().size() > 1
? surf.surfZones() ? surf.surfZones()
: oneZone(faceLst) : SMESHsurfaceFormat::oneZone(faceLst)
); );
const bool useFaceMap = (surf.useFaceMap() && zones.size() > 1); const bool useFaceMap = (surf.useFaceMap() && zones.size() > 1);

View file

@ -208,7 +208,7 @@ bool Foam::fileFormats::STARCDsurfaceFormat<Face>::read
} }
mapPointId.clear(); mapPointId.clear();
sortFacesAndStore(dynFaces.xfer(), dynZones.xfer(), sorted); this->sortFacesAndStore(dynFaces.xfer(), dynZones.xfer(), sorted);
// add zones, culling empty ones // add zones, culling empty ones
this->addZones(dynSizes, dynNames, true); this->addZones(dynSizes, dynNames, true);
@ -231,7 +231,7 @@ void Foam::fileFormats::STARCDsurfaceFormat<Face>::write
( (
surf.surfZones().size() > 1 surf.surfZones().size() > 1
? surf.surfZones() ? surf.surfZones()
: oneZone(faceLst) : STARCDsurfaceFormat::oneZone(faceLst)
); );
const bool useFaceMap = (surf.useFaceMap() && zones.size() > 1); const bool useFaceMap = (surf.useFaceMap() && zones.size() > 1);

View file

@ -215,7 +215,7 @@ void Foam::fileFormats::STLsurfaceFormat<Face>::writeAscii
( (
surf.surfZones().size() > 1 surf.surfZones().size() > 1
? surf.surfZones() ? surf.surfZones()
: oneZone(faceLst) : STLsurfaceFormat::oneZone(faceLst)
); );
const bool useFaceMap = (surf.useFaceMap() && zones.size() > 1); const bool useFaceMap = (surf.useFaceMap() && zones.size() > 1);
@ -276,7 +276,7 @@ void Foam::fileFormats::STLsurfaceFormat<Face>::writeBinary
( (
surf.surfZones().size() > 1 surf.surfZones().size() > 1
? surf.surfZones() ? surf.surfZones()
: oneZone(faceLst) : STLsurfaceFormat::oneZone(faceLst)
); );
const bool useFaceMap = (surf.useFaceMap() && zones.size() > 1); const bool useFaceMap = (surf.useFaceMap() && zones.size() > 1);

View file

@ -141,7 +141,7 @@ void Foam::fileFormats::TRIsurfaceFormat<Face>::write
( (
surf.surfZones().size() > 1 surf.surfZones().size() > 1
? surf.surfZones() ? surf.surfZones()
: oneZone(faceLst) : TRIsurfaceFormat::oneZone(faceLst)
); );
const bool useFaceMap = (surf.useFaceMap() && zones.size() > 1); const bool useFaceMap = (surf.useFaceMap() && zones.size() > 1);

View file

@ -72,7 +72,7 @@ void Foam::fileFormats::VTKsurfaceFormat<Face>::write
( (
surf.surfZones().size() > 1 surf.surfZones().size() > 1
? surf.surfZones() ? surf.surfZones()
: oneZone(faceLst) : VTKsurfaceFormat::oneZone(faceLst)
); );
const bool useFaceMap = (surf.useFaceMap() && zones.size() > 1); const bool useFaceMap = (surf.useFaceMap() && zones.size() > 1);

View file

@ -55,7 +55,7 @@ void Foam::fileFormats::WRLsurfaceFormat<Face>::write
( (
surf.surfZones().size() > 1 surf.surfZones().size() > 1
? surf.surfZones() ? surf.surfZones()
: oneZone(faceLst, "") : WRLsurfaceFormat::oneZone(faceLst, "")
); );
const bool useFaceMap = (surf.useFaceMap() && zones.size() > 1); const bool useFaceMap = (surf.useFaceMap() && zones.size() > 1);

View file

@ -57,7 +57,7 @@ void Foam::fileFormats::X3DsurfaceFormat<Face>::write
( (
surf.surfZones().size() > 1 surf.surfZones().size() > 1
? surf.surfZones() ? surf.surfZones()
: oneZone(faceLst, "") : X3DsurfaceFormat::oneZone(faceLst, "")
); );
const bool useFaceMap = (surf.useFaceMap() && zones.size() > 1); const bool useFaceMap = (surf.useFaceMap() && zones.size() > 1);

View file

@ -51,7 +51,7 @@ void Reaction<ReactionThermo>::setThermo
for (label i=1; i<rhs_.size(); i++) for (label i=1; i<rhs_.size(); i++)
{ {
operator+= this->operator+=
( (
rhs_[i].stoichCoeff*(*thermoDatabase[species_[rhs_[i].index]]) rhs_[i].stoichCoeff*(*thermoDatabase[species_[rhs_[i].index]])
); );
@ -59,7 +59,7 @@ void Reaction<ReactionThermo>::setThermo
for (label i=0; i<lhs_.size(); i++) for (label i=0; i<lhs_.size(); i++)
{ {
operator-= this->operator-=
( (
lhs_[i].stoichCoeff*(*thermoDatabase[species_[lhs_[i].index]]) lhs_[i].stoichCoeff*(*thermoDatabase[species_[lhs_[i].index]])
); );