From bda2936ee740873beb475316e746a54775efaa49 Mon Sep 17 00:00:00 2001 From: andy Date: Fri, 10 Jul 2009 13:38:11 +0100 Subject: [PATCH] moved warning messages to within debug scope --- src/thermophysicalModels/solids/C/C.C | 9 ++++++--- src/thermophysicalModels/solids/CaCO3/CaCO3.C | 9 ++++++--- src/thermophysicalModels/solids/ash/ash.C | 9 ++++++--- 3 files changed, 18 insertions(+), 9 deletions(-) diff --git a/src/thermophysicalModels/solids/C/C.C b/src/thermophysicalModels/solids/C/C.C index 1dbcfd2eed..e36eb71870 100644 --- a/src/thermophysicalModels/solids/C/C.C +++ b/src/thermophysicalModels/solids/C/C.C @@ -42,9 +42,12 @@ Foam::C::C() : solid(2010, 710, 0.04, 0.0, 1.0) { - WarningIn("C::C()") - << "Properties of graphite need to be checked!!!" - << endl; + if (debug) + { + WarningIn("C::C()") + << "Properties of graphite need to be checked!!!" + << endl; + } } diff --git a/src/thermophysicalModels/solids/CaCO3/CaCO3.C b/src/thermophysicalModels/solids/CaCO3/CaCO3.C index 77a4398322..6a84f46c4c 100644 --- a/src/thermophysicalModels/solids/CaCO3/CaCO3.C +++ b/src/thermophysicalModels/solids/CaCO3/CaCO3.C @@ -42,9 +42,12 @@ Foam::CaCO3::CaCO3() : solid(2710, 850, 1.3, 0.0, 1.0) { - WarningIn("CaCO3::CaCO3()") - << "Properties of CaCO3 need to be checked!!!" - << endl; + if (debug) + { + WarningIn("CaCO3::CaCO3()") + << "Properties of CaCO3 need to be checked!!!" + << endl; + } } diff --git a/src/thermophysicalModels/solids/ash/ash.C b/src/thermophysicalModels/solids/ash/ash.C index c904131aab..e666638d77 100644 --- a/src/thermophysicalModels/solids/ash/ash.C +++ b/src/thermophysicalModels/solids/ash/ash.C @@ -42,9 +42,12 @@ Foam::ash::ash() : solid(2010, 710, 0.04, 0.0, 1.0) { - WarningIn("ash::ash()") - << "Properties of ash need to be checked!!!" - << endl; + if (debug) + { + WarningIn("ash::ash()") + << "Properties of ash need to be checked!!!" + << endl; + } }