Go to the documentation of this file.
59 std::ostringstream buf;
94 <<
"wrong token type - expected Scalar, found " << t.
info()
101 is.
check(
"Istream& operator>>(Istream&, Scalar&)");
110 os.
check(
"Ostream& operator<<(Ostream&, const Scalar&)");
A class for handling words, derived from string.
static const char * componentNames[]
A token holds items read from Istream.
InfoProxy< token > info() const
Return info proxy.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
virtual Ostream & write(const token &)=0
Write next token to stream.
static const char *const typeName
pTraits(const PrimitiveType &p)
Construct from primitive.
Ostream & operator<<(Ostream &, const edgeMesh &)
static const Scalar rootMax
virtual bool check(const char *operation) const
Check IOstream status for given operation.
gmvFile<< "tracers "<< particles.size()<< nl;forAllConstIter(Cloud< passiveParticle >, particles, iter){ gmvFile<< iter().position().x()<< " ";}gmvFile<< nl;forAllConstIter(Cloud< passiveParticle >, particles, iter){ gmvFile<< iter().position().y()<< " ";}gmvFile<< nl;forAllConstIter(Cloud< passiveParticle >, particles, iter){ gmvFile<< iter().position().z()<< " ";}gmvFile<< nl;forAll(lagrangianScalarNames, i){ word name=lagrangianScalarNames[i];IOField< scalar > s(IOobject(name, runTime.timeName(), cloud::prefix, mesh, IOobject::MUST_READ, IOobject::NO_WRITE))
errorManipArg< error, int > exit(error &err, const int errNo=1)
bool readScalar(const char *buf, doubleScalar &s)
Read whole of buf as a scalar. Return true if succesful.
Istream & operator>>(Istream &, edgeMesh &)
void setBad()
Set stream to be bad.
#define FatalIOErrorInFunction(ios)
Report an error message using Foam::FatalIOError.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
static const Scalar rootMin
word name(const complex &)
Return a string representation of a complex.