mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
COMP: avoid ambiguous construct from tmp - finiteVolume/cfdTools
This commit is contained in:
@ -162,7 +162,10 @@ Foam::vectorField Foam::SRF::SRFModel::velocity
|
|||||||
const vectorField& positions
|
const vectorField& positions
|
||||||
) const
|
) 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
|
Foam::tmp<Foam::volVectorField> Foam::SRF::SRFModel::Uabs() const
|
||||||
{
|
{
|
||||||
const volVectorField Usrf = U();
|
tmp<volVectorField> Usrf = U();
|
||||||
|
|
||||||
tmp<volVectorField> tUabs
|
tmp<volVectorField> tUabs
|
||||||
(
|
(
|
||||||
|
|||||||
@ -49,7 +49,7 @@ void Foam::actuationDiskSource::addActuationDiskAxialInertialResistance
|
|||||||
E.xx() = uniDiskDir.x();
|
E.xx() = uniDiskDir.x();
|
||||||
E.yy() = uniDiskDir.y();
|
E.yy() = uniDiskDir.y();
|
||||||
E.zz() = uniDiskDir.z();
|
E.zz() = uniDiskDir.z();
|
||||||
vectorField U1 = (1.0 - a)*U;
|
const vectorField U1((1.0 - a)*U);
|
||||||
forAll(cells, i)
|
forAll(cells, i)
|
||||||
{
|
{
|
||||||
totVol += V[cells[i]];
|
totVol += V[cells[i]];
|
||||||
|
|||||||
Reference in New Issue
Block a user