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

COMP: avoid ambiguous construct from tmp - dynamicFvMesh, dynamicMesh

parent cf4bde49
Branches
Tags
No related merge requests found
......@@ -301,12 +301,14 @@ Foam::dynamicRefineFvMesh::refine
(
lookupObject<surfaceScalarField>(correctFluxes_[i][0])
);
surfaceScalarField phiU =
const surfaceScalarField phiU
(
fvc::interpolate
(
lookupObject<volVectorField>(correctFluxes_[i][1])
)
& Sf();
& Sf()
);
// Recalculate new internal faces.
for (label faceI = 0; faceI < nInternalFaces(); faceI++)
......@@ -492,12 +494,14 @@ Foam::dynamicRefineFvMesh::unrefine
(
lookupObject<surfaceScalarField>(correctFluxes_[i][0])
);
surfaceScalarField phiU =
surfaceScalarField phiU
(
fvc::interpolate
(
lookupObject<volVectorField>(correctFluxes_[i][1])
)
& Sf();
& Sf()
);
forAllConstIter(Map<label>, faceToSplitPoint, iter)
{
......
......@@ -425,7 +425,7 @@ Foam::directions::directions
}
if (wantTan2)
{
vectorField tan2Dirs = normalDirs ^ tan1Dirs;
tmp<vectorField> tan2Dirs = normalDirs ^ tan1Dirs;
this->operator[](nDirs++) = tan2Dirs;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment