From 95bb8d6577df7ab1c5ce077424351516c88c25ab Mon Sep 17 00:00:00 2001 From: mattijs <m.janssens@opencfd.co.uk> Date: Wed, 6 Aug 2008 13:35:10 +0100 Subject: [PATCH] tidy up --- src/thermophysicalModels/pdfs/pdf/newPdf.C | 22 +++++++--------------- 1 file changed, 7 insertions(+), 15 deletions(-) diff --git a/src/thermophysicalModels/pdfs/pdf/newPdf.C b/src/thermophysicalModels/pdfs/pdf/newPdf.C index 7067137a1d4..9dcf4a1024d 100644 --- a/src/thermophysicalModels/pdfs/pdf/newPdf.C +++ b/src/thermophysicalModels/pdfs/pdf/newPdf.C @@ -37,31 +37,23 @@ autoPtr<Foam::pdf> Foam::pdf::New Random& rndGen ) { - word pdfType - ( - dict.lookup("pdfType") - ); + word pdfType(dict.lookup("pdfType")); - Info << "Selecting pdfType " - << pdfType << endl; + Info<< "Selecting pdfType " << pdfType << endl; dictionaryConstructorTable::iterator cstrIter = dictionaryConstructorTablePtr_->find(pdfType); if (cstrIter == dictionaryConstructorTablePtr_->end()) { - FatalError - << "pdf::New(const dictionary&, Random&) : " << endl - << " unknown pdfType type " - << pdfType - << ", constructor not in hash table" << endl << endl - << " Valid pdf types are :" << endl; - Info<< dictionaryConstructorTablePtr_->toc() << abort(FatalError); + FatalErrorIn("pdf::New(const dictionary&, Random&)") + << "unknown pdf type " << pdfType << endl << endl + << "Valid pdf types are :" << endl + << dictionaryConstructorTablePtr_->toc() + << exit(FatalError); } return autoPtr<pdf>(cstrIter()(dict, rndGen)); - - //return autoPtr<pdf>(new pdf); } // ************************************************************************* // -- GitLab