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

COMP: avoid ambiguous construct from tmp - finiteVolume/cfdTools

parent bd7d27e6
No related branches found
No related tags found
No related merge requests found
......@@ -162,7 +162,10 @@ Foam::vectorField Foam::SRF::SRFModel::velocity
const vectorField& positions
) const
{
return omega_.value() ^ (positions - axis_*(axis_ & positions));
tmp<vectorField> tfld =
omega_.value() ^ (positions - axis_*(axis_ & positions));
return tfld();
}
......@@ -188,7 +191,7 @@ Foam::tmp<Foam::volVectorField> Foam::SRF::SRFModel::U() const
Foam::tmp<Foam::volVectorField> Foam::SRF::SRFModel::Uabs() const
{
const volVectorField Usrf = U();
tmp<volVectorField> Usrf = U();
tmp<volVectorField> tUabs
(
......
......@@ -49,7 +49,7 @@ void Foam::actuationDiskSource::addActuationDiskAxialInertialResistance
E.xx() = uniDiskDir.x();
E.yy() = uniDiskDir.y();
E.zz() = uniDiskDir.z();
vectorField U1 = (1.0 - a)*U;
const vectorField U1((1.0 - a)*U);
forAll(cells, i)
{
totVol += V[cells[i]];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment