From 4f4dec9dabe514643e956899b7d4cdbae31c7aea Mon Sep 17 00:00:00 2001 From: andy Date: Fri, 12 Oct 2012 17:27:33 +0100 Subject: [PATCH] ENH: corrected info message --- .../thermoBaffle2D/thermoBaffle2D.C | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/src/regionModels/thermoBaffleModels/thermoBaffle2D/thermoBaffle2D.C b/src/regionModels/thermoBaffleModels/thermoBaffle2D/thermoBaffle2D.C index 124f4789b0..2f518036d2 100644 --- a/src/regionModels/thermoBaffleModels/thermoBaffle2D/thermoBaffle2D.C +++ b/src/regionModels/thermoBaffleModels/thermoBaffle2D/thermoBaffle2D.C @@ -51,7 +51,6 @@ addToRunTimeSelectionTable(thermoBaffleModel, thermoBaffle2D, dictionary); // * * * * * * * * * * * * Protected Member Functions * * * * * * * * * * * // - bool thermoBaffle2D::read() { this->solution().lookup("nNonOrthCorr") >> nNonOrthCorr_; @@ -158,7 +157,6 @@ void thermoBaffle2D::solveEnergy() // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // - thermoBaffle2D::thermoBaffle2D ( const word& modelType, @@ -278,17 +276,11 @@ void thermoBaffle2D::init() { label patchI = intCoupledPatchIDs_[0]; const label Qsb = Qs_.boundaryField()[patchI].size(); + if (Qsb!= thickness_.size()) { - FatalErrorIn - ( - "thermoBaffle2D::thermoBaffle2D" - "(" - " const word& modelType," - " const fvMesh& mesh," - " const dictionary& dict" - ")" - ) << "the boundary field of Qs is " + FatalErrorIn("thermoBaffle2D::init()") + << "the boundary field of Qs is " << Qsb << " and " << nl << "the field 'thickness' is " << thickness_.size() << nl << exit(FatalError); @@ -349,7 +341,7 @@ const solidThermo& thermoBaffle2D::thermo() const void thermoBaffle2D::info() const { const labelList& coupledPatches = intCoupledPatchIDs(); - forAll (coupledPatches, i) + forAll(coupledPatches, i) { const label patchI = coupledPatches[i]; const fvPatchScalarField& ph = h_.boundaryField()[patchI];