BUG: Updated output message if porosity present

This commit is contained in:
andy
2014-01-14 09:55:08 +00:00
parent 7d7d210dd5
commit 0ccbf6e722

View File

@ -678,16 +678,14 @@ void Foam::forces::read(const dictionary& dict)
localSystem_ = true; localSystem_ = true;
} }
if (dict.readIfPresent("porosity", porosity_) && log_) dict.readIfPresent("porosity", porosity_);
if (porosity_)
{ {
if (porosity_) Info(log_)<< " Including porosity effects" << endl;
{ }
Info<< " Including porosity effects" << endl; else
} {
else Info(log_)<< " Not including porosity effects" << endl;
{
Info<< " Not including porosity effects" << endl;
}
} }
if (dict.found("binData")) if (dict.found("binData"))