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; + } }