mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
STYLE: limitFields: correct output for multiple variables
Signed-off-by: Kutalmis Bercin <kutalmis.bercin@esi-group.com>
This commit is contained in:
committed by
Kutalmis Bercin
parent
77ba7ca4d4
commit
cc580fc108
@ -68,17 +68,19 @@ bool Foam::functionObjects::limitFields::limitScalarField
|
||||
|
||||
auto& field = *fieldPtr;
|
||||
|
||||
Log << " Limiting field " << fieldName << ":";
|
||||
|
||||
if (limitType::CLAMP_NONE != withBounds_)
|
||||
{
|
||||
MinMax<scalar> currentRange = gMinMax(field);
|
||||
|
||||
if (withBounds_ & limitType::CLAMP_MIN)
|
||||
{
|
||||
Log << ": min(" << currentRange.min() << ')';
|
||||
Log << " min(" << currentRange.min() << ')';
|
||||
}
|
||||
if (withBounds_ & limitType::CLAMP_MAX)
|
||||
{
|
||||
Log << ": max(" << currentRange.max() << ')';
|
||||
Log << " max(" << currentRange.max() << ')';
|
||||
}
|
||||
}
|
||||
|
||||
@ -95,6 +97,8 @@ bool Foam::functionObjects::limitFields::limitScalarField
|
||||
field.clamp_range(min_, max_);
|
||||
}
|
||||
|
||||
Log << endl;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
@ -81,6 +81,8 @@ bool Foam::functionObjects::limitFields::limitField(const word& fieldName)
|
||||
field *= tmField;
|
||||
}
|
||||
|
||||
Log << endl;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user