Go to the documentation of this file.
54 Info<<
"divScheme<Type>::New(const fvMesh&, Istream&) : "
55 "constructing divScheme<Type>"
64 ) <<
"Div scheme not specified" <<
endl <<
endl
65 <<
"Valid div schemes are :" <<
endl
66 << IstreamConstructorTablePtr_->sortedToc()
70 const word schemeName(schemeData);
72 typename IstreamConstructorTable::iterator cstrIter =
73 IstreamConstructorTablePtr_->find(schemeName);
75 if (cstrIter == IstreamConstructorTablePtr_->end())
80 ) <<
"unknown div scheme "
81 << schemeName <<
nl <<
nl
82 <<
"Valid div schemes are :" <<
endl
83 << IstreamConstructorTablePtr_->sortedToc()
87 return cstrIter()(
mesh, schemeData);
A class for handling words, derived from string.
bool eof() const
Return true if end of input seen.
Ostream & endl(Ostream &os)
Add newline and flush stream.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
static tmp< divScheme< Type > > New(const fvMesh &mesh, Istream &schemeData)
Return a pointer to a new divScheme created on freestore.
Mesh data needed to do the Finite Volume discretisation.
virtual ~divScheme()
Destructor.
errorManipArg< error, int > exit(error &err, const int errNo=1)
#define FatalIOErrorInFunction(ios)
Report an error message using Foam::FatalIOError.