34 const dictionary& dict,
35 const phaseInterface& interface
38 const word swarmCorrectionType(dict.lookup(
"type"));
40 Info<<
"Selecting swarmCorrection for " 41 << interface.name() <<
": " << swarmCorrectionType <<
endl;
43 dictionaryConstructorTable::iterator cstrIter =
44 dictionaryConstructorTablePtr_->find(swarmCorrectionType);
46 if (cstrIter == dictionaryConstructorTablePtr_->end())
49 <<
"Unknown swarmCorrectionType type " 50 << swarmCorrectionType << endl << endl
51 <<
"Valid swarmCorrection types are : " << endl
52 << dictionaryConstructorTablePtr_->sortedToc()
56 return cstrIter()(
dict, interface);
errorManipArg< error, int > exit(error &err, const int errNo=1)
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
Ostream & endl(Ostream &os)
Add newline and flush stream.
static autoPtr< swarmCorrection > New(const dictionary &dict, const phaseInterface &interface)