mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: encapsulated warning msg in dedug scope
This commit is contained in:
@ -41,6 +41,8 @@ void Foam::KinematicParcel<ParcelType>::setCellValues
|
||||
rhoc_ = td.rhoInterp().interpolate(this->position(), tetIs);
|
||||
|
||||
if (rhoc_ < td.cloud().constProps().rhoMin())
|
||||
{
|
||||
if (debug)
|
||||
{
|
||||
WarningIn
|
||||
(
|
||||
@ -52,6 +54,7 @@ void Foam::KinematicParcel<ParcelType>::setCellValues
|
||||
")"
|
||||
) << "Limiting observed density in cell " << cellI << " to "
|
||||
<< td.cloud().constProps().rhoMin() << nl << endl;
|
||||
}
|
||||
|
||||
rhoc_ = td.cloud().constProps().rhoMin();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user