COMP: avoid ambiguous construct from tmp - engine

This commit is contained in:
Mark Olesen
2010-12-17 16:43:37 +01:00
parent 7b1eb1ceb8
commit bd7d27e622
4 changed files with 10 additions and 6 deletions

View File

@ -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();