42 const searchableSurface& surface,
43 const dictionary& dict
46 word searchableSurfaceFeaturesType = surface.type() +
"Features";
48 dictConstructorTable::iterator cstrIter =
49 dictConstructorTablePtr_->find(searchableSurfaceFeaturesType);
51 if (cstrIter == dictConstructorTablePtr_->end())
54 <<
"Unknown searchableSurfaceFeatures type " 55 << searchableSurfaceFeaturesType <<
endl <<
endl 56 <<
"Valid searchableSurfaceFeatures types : " <<
endl 57 << dictConstructorTablePtr_->sortedToc()
61 return autoPtr<searchableSurfaceFeatures>(cstrIter()(surface,
dict));
67 Foam::searchableSurfaceFeatures::searchableSurfaceFeatures
69 const searchableSurface& surface,
70 const dictionary& dict
errorManipArg< error, int > exit(error &err, const int errNo=1)
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
static autoPtr< searchableSurfaceFeatures > New(const searchableSurface &surface, const dictionary &dict)
Return a reference to the selected searchableSurfaceFeatures.
Ostream & endl(Ostream &os)
Add newline and flush stream.
defineRunTimeSelectionTable(reactionRateFlameArea, dictionary)
defineTypeNameAndDebug(combustionModel, 0)
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
virtual ~searchableSurfaceFeatures()
Destructor.