Commit fa6b1157 authored by Mark Olesen's avatar Mark Olesen
Browse files

COMP: avoid ambiguous construct from tmp - mesh, meshTools

parent ffa2836a
......@@ -3052,7 +3052,7 @@ void Foam::autoLayerDriver::addLayers
}
}
scalarField invExpansionRatio = 1.0 / expansionRatio;
const scalarField invExpansionRatio(1.0 / expansionRatio);
// Add topo regardless of whether extrudeStatus is extruderemove.
// Not add layer if patchDisp is zero.
......
......@@ -652,7 +652,8 @@ Foam::scalarField Foam::autoSnapDriver::calcSnapDistance
-GREAT // null value
);
return snapParams.snapTol()*maxEdgeLen;
tmp<scalarField> tfld = snapParams.snapTol()*maxEdgeLen;
return tfld();
}
......
......@@ -148,7 +148,7 @@ Foam::tmp<Foam::vectorField> Foam::cylindricalCS::localToGlobal
bool translate
) const
{
scalarField theta =
scalarField theta
(
local.component(vector::Y)
*(inDegrees_ ? constant::mathematical::pi/180.0 : 1.0)
......@@ -170,7 +170,10 @@ Foam::vector Foam::cylindricalCS::globalToLocal
bool translate
) const
{
const vector lc = coordinateSystem::globalToLocal(global, translate);
const vector lc
(
coordinateSystem::globalToLocal(global, translate)
);
return vector
(
......@@ -191,8 +194,10 @@ Foam::tmp<Foam::vectorField> Foam::cylindricalCS::globalToLocal
bool translate
) const
{
const vectorField lc =
coordinateSystem::globalToLocal(global, translate);
const vectorField lc
(
coordinateSystem::globalToLocal(global, translate)
);
tmp<vectorField> tresult(new vectorField(lc.size()));
vectorField& result = tresult();
......
......@@ -155,7 +155,7 @@ Foam::tmp<Foam::vectorField> Foam::sphericalCS::localToGlobal
bool translate
) const
{
const scalarField r = local.component(vector::X);
const scalarField r(local.component(vector::X));
const scalarField theta
(
local.component(vector::Y)
......@@ -206,8 +206,8 @@ Foam::tmp<Foam::vectorField> Foam::sphericalCS::globalToLocal
bool translate
) const
{
const vectorField lc = coordinateSystem::globalToLocal(global, translate);
const scalarField r = mag(lc);
const vectorField lc(coordinateSystem::globalToLocal(global, translate));
const scalarField r(mag(lc));
tmp<vectorField> tresult(new vectorField(lc.size()));
vectorField& result = tresult();
......
......@@ -97,15 +97,25 @@ Foam::tmp<Foam::vectorField> Foam::toroidalCS::localToGlobal
bool translate
) const
{
const scalarField r = local.component(vector::X);
const scalarField r
(
local.component(vector::X)
);
const scalarField theta =
local.component(vector::Y)*constant::mathematical::pi/180.0;
const scalarField theta
(
local.component(vector::Y)*constant::mathematical::pi/180.0
);
const scalarField phi =
local.component(vector::Z)*constant::mathematical::pi/180.0;
const scalarField phi
(
local.component(vector::Z)*constant::mathematical::pi/180.0
);
const scalarField rprime = radius_ + r*sin(phi);
const scalarField rprime
(
radius_ + r*sin(phi)
);
vectorField lc(local.size());
lc.replace(vector::X, rprime*cos(theta));
......
......@@ -54,10 +54,6 @@ namespace Foam
"nearestFace"
};
const NamedEnum<directMappedPatchBase::sampleMode, 3>
directMappedPatchBase::sampleModeNames_;
template<>
const char* Foam::NamedEnum
<
......@@ -70,10 +66,6 @@ namespace Foam
"normal"
};
const NamedEnum<directMappedPatchBase::offsetMode, 3>
directMappedPatchBase::offsetModeNames_;
//- Private class for finding nearest
// - point+local index
// - sqr(distance)
......
Supports Markdown
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