Skip to content
Snippets Groups Projects
Commit bd7d27e6 authored by Mark Olesen's avatar Mark Olesen
Browse files

COMP: avoid ambiguous construct from tmp - engine

parent 7b1eb1ce
Branches
Tags
No related merge requests found
......@@ -68,9 +68,11 @@ void Foam::fvMotionSolverEngineMesh::move()
motionSolver_.cellMotionU().boundaryField()[pistonIndex_] == deltaZ;
{
scalarField linerPoints =
scalarField linerPoints
(
motionSolver_.cellMotionU()
.boundaryField()[linerIndex_].patch().Cf().component(vector::Z);
.boundaryField()[linerIndex_].patch().Cf().component(vector::Z)
);
motionSolver_.cellMotionU().boundaryField()[linerIndex_] ==
deltaZ*pos(deckHeight_.value() - linerPoints)
......
......@@ -64,7 +64,7 @@ void Foam::layeredEngineMesh::move()
// Position of the top of the static mesh layers above the piston
scalar pistonPlusLayers = pistonPosition_.value() + pistonLayers_.value();
pointField newPoints = points();
pointField newPoints(points());
forAll(newPoints, pointi)
{
......
......@@ -80,8 +80,10 @@
// Calculate kernel area from b field consistent with the
// discretisation of the b equation.
volScalarField mgb =
fvc::div(nf, b, "div(phiSt,b)") - b*fvc::div(nf) + dMgb;
const volScalarField mgb
(
fvc::div(nf, b, "div(phiSt,b)") - b*fvc::div(nf) + dMgb
);
dimensionedScalar AkEst = gSum(mgb*mesh.V().field());
StCorr.value() = max(min((Ak/AkEst).value(), 10.0), 1.0);
......
......@@ -130,7 +130,7 @@ void Foam::errorDrivenRefinement::setRefinement(polyTopoChange& ref) const
const volVectorField& resError =
runTime.lookupObject<volVectorField>(errorField_);
const volScalarField magResError = Foam::mag(resError);
const volScalarField magResError(Foam::mag(resError));
scalar min = Foam::min(magResError).value();
scalar max = Foam::max(magResError).value();
......
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