STYLE: more consistent New methods, use unregistered IOobject where appropriate
This commit is contained in:
@ -26,14 +26,10 @@ License
|
||||
#include "polyMeshModifier.H"
|
||||
#include "dictionary.H"
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
namespace Foam
|
||||
{
|
||||
|
||||
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
|
||||
|
||||
autoPtr<polyMeshModifier> polyMeshModifier::New
|
||||
Foam::autoPtr<Foam::polyMeshModifier>
|
||||
Foam::polyMeshModifier::New
|
||||
(
|
||||
const word& name,
|
||||
const dictionary& dict,
|
||||
@ -49,10 +45,10 @@ autoPtr<polyMeshModifier> polyMeshModifier::New
|
||||
<< endl;
|
||||
}
|
||||
|
||||
word patchType(dict.lookup("type"));
|
||||
const word modifierType(dict.lookup("type"));
|
||||
|
||||
dictionaryConstructorTable::iterator cstrIter =
|
||||
dictionaryConstructorTablePtr_->find(patchType);
|
||||
dictionaryConstructorTablePtr_->find(modifierType);
|
||||
|
||||
if (cstrIter == dictionaryConstructorTablePtr_->end())
|
||||
{
|
||||
@ -61,7 +57,8 @@ autoPtr<polyMeshModifier> polyMeshModifier::New
|
||||
"polyMeshModifier::New(const word&, const dictionary&, "
|
||||
"const label, const polyMesh&)",
|
||||
dict
|
||||
) << "Unknown polyMeshModifier type " << patchType << endl << endl
|
||||
) << "Unknown polyMeshModifier type "
|
||||
<< modifierType << nl << nl
|
||||
<< "Valid polyMeshModifier types are :" << endl
|
||||
<< dictionaryConstructorTablePtr_->sortedToc()
|
||||
<< exit(FatalIOError);
|
||||
@ -71,8 +68,4 @@ autoPtr<polyMeshModifier> polyMeshModifier::New
|
||||
}
|
||||
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
} // End namespace Foam
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
Reference in New Issue
Block a user