ENH: encapsulated warning msg in dedug scope

This commit is contained in:
andy
2011-02-15 18:03:56 +00:00
parent 7e74e1ed10
commit 454cd5e180

View File

@ -42,16 +42,19 @@ void Foam::KinematicParcel<ParcelType>::setCellValues
if (rhoc_ < td.cloud().constProps().rhoMin()) if (rhoc_ < td.cloud().constProps().rhoMin())
{ {
WarningIn if (debug)
( {
"void Foam::KinematicParcel<ParcelType>::setCellValues" WarningIn
"(" (
"TrackData&, " "void Foam::KinematicParcel<ParcelType>::setCellValues"
"const scalar, " "("
"const label" "TrackData&, "
")" "const scalar, "
) << "Limiting observed density in cell " << cellI << " to " "const label"
<< td.cloud().constProps().rhoMin() << nl << endl; ")"
) << "Limiting observed density in cell " << cellI << " to "
<< td.cloud().constProps().rhoMin() << nl << endl;
}
rhoc_ = td.cloud().constProps().rhoMin(); rhoc_ = td.cloud().constProps().rhoMin();
} }