Updated support for clang-3.1

This commit is contained in:
Henry
2012-06-06 17:45:18 +01:00
parent 3c6d730b5a
commit 2d2ad386a6
20 changed files with 30 additions and 30 deletions

View File

@ -132,7 +132,7 @@ void Foam::cylindricalInletVelocityFvPatchVectorField::updateCoeffs()
vector hatAxis = axis_/mag(axis_);
const vectorField r(patch().Cf() - centre_);
const vectorField d = r - (hatAxis & r)*hatAxis;
const vectorField d(r - (hatAxis & r)*hatAxis);
tmp<vectorField> tangVel
(

View File

@ -136,7 +136,7 @@ void Foam::variableHeightFlowRateFvPatchScalarField::updateCoeffs()
const fvsPatchField<scalar>& phip =
patch().lookupPatchField<surfaceScalarField, scalar>(phiName_);
scalarField alphap = this->patchInternalField();
scalarField alphap(this->patchInternalField());
forAll(phip, i)

View File

@ -113,7 +113,7 @@ void Foam::variableHeightFlowRateInletVelocityFvPatchVectorField
// a simpler way of doing this would be nice
scalar avgU = -flowRate_/gSum(patch().magSf()*alphap);
vectorField n = patch().nf();
vectorField n(patch().nf());
operator==(n*avgU*alphap);

View File

@ -27,7 +27,7 @@ License
#include "dictionary.H"
#include "fvMesh.H"
#include "fvPatchFieldMapper.H"
//#include "fvMatrices.H"
#include "volMesh.H"
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //

View File

@ -138,7 +138,7 @@ void Foam::extendedLeastSquaresVectors::makeLeastSquaresVectors() const
const labelUList& faceCells = p.faceCells();
// Build the d-vectors
vectorField pd = p.delta();
vectorField pd(p.delta());
forAll(pd, patchFaceI)
{
@ -252,7 +252,7 @@ void Foam::extendedLeastSquaresVectors::makeLeastSquaresVectors() const
const labelUList& faceCells = p.faceCells();
// Build the d-vectors
vectorField pd = p.delta();
vectorField pd(p.delta());
forAll(p, patchFaceI)
{

View File

@ -126,7 +126,7 @@ Foam::fv::fourthGrad<Type>::calcGrad
const labelUList& faceCells = p.faceCells();
// Build the d-vectors
vectorField pd = p.delta();
vectorField pd(p.delta());
const Field<GradType> neighbourSecondfGrad
(

View File

@ -132,7 +132,7 @@ void Foam::leastSquaresVectors::makeLeastSquaresVectors() const
const labelUList& faceCells = p.patch().faceCells();
// Build the d-vectors
vectorField pd = p.delta();
vectorField pd(p.delta());
if (pw.coupled())
{
@ -185,7 +185,7 @@ void Foam::leastSquaresVectors::makeLeastSquaresVectors() const
const labelUList& faceCells = p.faceCells();
// Build the d-vectors
vectorField pd = p.delta();
vectorField pd(p.delta());
if (pw.coupled())
{

View File

@ -122,7 +122,7 @@ Foam::LimitedScheme<Type, Limiter, LimitFunc>::limiter
);
// Build the d-vectors
vectorField pd = CDweights.boundaryField()[patchi].patch().delta();
vectorField pd(CDweights.boundaryField()[patchi].patch().delta());
forAll(pLim, face)
{

View File

@ -111,7 +111,7 @@ Foam::linearUpwind<Type>::correction
);
// Build the d-vectors
vectorField pd = Cf.boundaryField()[patchi].patch().delta();
vectorField pd(Cf.boundaryField()[patchi].patch().delta());
forAll(pOwner, facei)
{

View File

@ -111,7 +111,7 @@ void Foam::skewCorrectionVectors::makeSkewCorrectionVectors() const
const labelUList& faceCells = p.faceCells();
const vectorField& patchFaceCentres = Cf.boundaryField()[patchI];
const vectorField& patchSf = Sf.boundaryField()[patchI];
const vectorField patchD = p.delta();
const vectorField patchD(p.delta());
forAll(p, patchFaceI)
{

View File

@ -294,7 +294,7 @@ void Foam::surfaceInterpolation::makeNonOrthDeltaCoeffs() const
forAll(nonOrthDeltaCoeffs.boundaryField(), patchi)
{
vectorField delta = mesh_.boundary()[patchi].delta();
vectorField delta(mesh_.boundary()[patchi].delta());
nonOrthDeltaCoeffs.boundaryField()[patchi] =
1.0/max(mesh_.boundary()[patchi].nf() & delta, 0.05*mag(delta));

View File

@ -108,7 +108,7 @@ void htcConvFvPatchScalarField::updateCoeffs()
const label patchI = patch().index();
const RASModel& rasModel = db().lookupObject<RASModel>("RASProperties");
const scalarField alphaEffw = rasModel.alphaEff(patchI);
const scalarField alphaEffw(rasModel.alphaEff(patchI));
const scalarField& muw = rasModel.mu().boundaryField()[patchI];
const scalarField& rhow = rasModel.rho().boundaryField()[patchI];
const vectorField& Uc = rasModel.U();

View File

@ -158,7 +158,7 @@ void Foam::totalFlowRateAdvectiveDiffusiveFvPatchScalarField::updateCoeffs()
const fvsPatchField<scalar>& phip =
patch().lookupPatchField<surfaceScalarField, scalar>(phiName_);
const scalarField alphap = turbulence.alphaEff(patchI);
const scalarField alphap(turbulence.alphaEff(patchI));
refValue() = 1.0;
refGrad() = 0.0;