waves: Fixed compilation with Clang

This commit is contained in:
Will Bainbridge
2017-10-02 11:00:47 +01:00
parent e810470103
commit c095b5b89f
2 changed files with 8 additions and 4 deletions

View File

@ -151,7 +151,8 @@ Foam::tmp<Foam::scalarField> Foam::wavePressureFvPatchScalarField::pn() const
const fvMesh& meshs = subset.subMesh();
const label patchis = findIndex(subset.patchMap(), patch().index());
const scalarField ps =
const scalarField ps
(
levelSetAverage
(
meshs,
@ -161,7 +162,8 @@ Foam::tmp<Foam::scalarField> Foam::wavePressureFvPatchScalarField::pn() const
Up.waves().pGas(t, meshs.points())(),
Up.waves().pLiquid(t, meshs.cellCentres())(),
Up.waves().pLiquid(t, meshs.points())()
);
)
);
tmp<scalarField> tResult(new scalarField(patch().size()));
scalarField& result = tResult.ref();

View File

@ -180,7 +180,8 @@ Foam::tmp<Foam::vectorField> Foam::waveVelocityFvPatchVectorField::Un() const
const fvMesh& meshs = subset.subMesh();
const label patchis = findIndex(subset.patchMap(), patch().index());
const vectorField Us =
const vectorField Us
(
levelSetAverage
(
meshs,
@ -190,7 +191,8 @@ Foam::tmp<Foam::vectorField> Foam::waveVelocityFvPatchVectorField::Un() const
waves_.UGas(t, meshs.points())(),
waves_.ULiquid(t, meshs.cellCentres())(),
waves_.ULiquid(t, meshs.points())()
);
)
);
tmp<vectorField> tResult(new vectorField(patch().size()));
vectorField& result = tResult.ref();