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