32 const word& methodName,
39 Info<<
"Selecting AMIMethod " << methodName <<
endl;
42 componentsConstructorTable::iterator cstrIter =
43 componentsConstructorTablePtr_->find(methodName);
45 if (cstrIter == componentsConstructorTablePtr_->end())
49 "Foam::autoPtr<Foam::meshToMeshMethod> Foam::meshToMeshMethod::New" 55 ) <<
"Unknown meshToMesh type " 56 << methodName <<
nl <<
nl 57 <<
"Valid meshToMesh types are:" <<
nl 58 << componentsConstructorTablePtr_->sortedToc() <<
exit(
FatalError);
A class for handling words, derived from string.
errorManipArg< error, int > exit(error &err, const int errNo=1)
Ostream & endl(Ostream &os)
Add newline and flush stream.
#define FatalErrorIn(functionName)
Report an error message using Foam::FatalError.
Mesh consisting of general polyhedral cells.
static autoPtr< meshToMeshMethod > New(const word &methodName, const polyMesh &src, const polyMesh &tgt)
Selector.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...