mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
tidy up
This commit is contained in:
@ -37,31 +37,23 @@ autoPtr<Foam::pdf> Foam::pdf::New
|
|||||||
Random& rndGen
|
Random& rndGen
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
word pdfType
|
word pdfType(dict.lookup("pdfType"));
|
||||||
(
|
|
||||||
dict.lookup("pdfType")
|
|
||||||
);
|
|
||||||
|
|
||||||
Info << "Selecting pdfType "
|
Info<< "Selecting pdfType " << pdfType << endl;
|
||||||
<< pdfType << endl;
|
|
||||||
|
|
||||||
dictionaryConstructorTable::iterator cstrIter =
|
dictionaryConstructorTable::iterator cstrIter =
|
||||||
dictionaryConstructorTablePtr_->find(pdfType);
|
dictionaryConstructorTablePtr_->find(pdfType);
|
||||||
|
|
||||||
if (cstrIter == dictionaryConstructorTablePtr_->end())
|
if (cstrIter == dictionaryConstructorTablePtr_->end())
|
||||||
{
|
{
|
||||||
FatalError
|
FatalErrorIn("pdf::New(const dictionary&, Random&)")
|
||||||
<< "pdf::New(const dictionary&, Random&) : " << endl
|
<< "unknown pdf type " << pdfType << endl << endl
|
||||||
<< " unknown pdfType type "
|
<< "Valid pdf types are :" << endl
|
||||||
<< pdfType
|
<< dictionaryConstructorTablePtr_->toc()
|
||||||
<< ", constructor not in hash table" << endl << endl
|
<< exit(FatalError);
|
||||||
<< " Valid pdf types are :" << endl;
|
|
||||||
Info<< dictionaryConstructorTablePtr_->toc() << abort(FatalError);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return autoPtr<pdf>(cstrIter()(dict, rndGen));
|
return autoPtr<pdf>(cstrIter()(dict, rndGen));
|
||||||
|
|
||||||
//return autoPtr<pdf>(new pdf);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// ************************************************************************* //
|
// ************************************************************************* //
|
||||||
|
|||||||
Reference in New Issue
Block a user