Commit be789cf9 authored by Andrew Heather's avatar Andrew Heather
Browse files

consistency update

parent 654f8443
......@@ -176,9 +176,10 @@ void Foam::fieldMinMax::calcMinMaxFields<Foam::scalar>
if (obr_.foundObject<volScalarField>(fieldName))
const scalarField& field = obr_.lookupObject<scalarField>(fieldName);
scalar minValue = min(field);
scalar maxValue = max(field);
const volScalarField& field =
scalar minValue = min(field).value();
scalar maxValue = max(field).value();
reduce(minValue, minOp<scalar>());
reduce(maxValue, maxOp<scalar>());
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