From 0ccbf6e7223b52840b3406163440f6d54a04744b Mon Sep 17 00:00:00 2001 From: andy Date: Tue, 14 Jan 2014 09:55:08 +0000 Subject: [PATCH] BUG: Updated output message if porosity present --- .../functionObjects/forces/forces/forces.C | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/src/postProcessing/functionObjects/forces/forces/forces.C b/src/postProcessing/functionObjects/forces/forces/forces.C index 831f552667..d624554e93 100644 --- a/src/postProcessing/functionObjects/forces/forces/forces.C +++ b/src/postProcessing/functionObjects/forces/forces/forces.C @@ -678,16 +678,14 @@ void Foam::forces::read(const dictionary& dict) localSystem_ = true; } - if (dict.readIfPresent("porosity", porosity_) && log_) + dict.readIfPresent("porosity", porosity_); + if (porosity_) { - if (porosity_) - { - Info<< " Including porosity effects" << endl; - } - else - { - Info<< " Not including porosity effects" << endl; - } + Info(log_)<< " Including porosity effects" << endl; + } + else + { + Info(log_)<< " Not including porosity effects" << endl; } if (dict.found("binData"))