35 bool readEndBracket =
false;
42 if (t.
pToken() == token::BEGIN_LIST)
44 readEndBracket =
true;
51 <<
"incorrect first token, expected '(', found "
69 <<
"Bad type of token for cellShape symbol " << t.
info()
78 <<
"CellShape has unknown model " << t.
info()
99 os << token::BEGIN_LIST;
102 os << (
s.m)->index();
108 os << token::SPACE << static_cast<const labelList&>(
s);
111 os << token::END_LIST;
124 os <<
" cellShape has no model!\n";
131 os <<
"\tGeom:\tpoint\tlabel\txyz\n";
135 os <<
"\t\t" << i <<
"\t" << cs[i] <<
endl;
A helper class for outputting values to Ostream.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
bool readEnd(const char *funcName)
End read of data chunk, ends with ')'.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
InfoProxy< cellModel > info() const
Return info proxy.
An analytical geometric cellShape.
const cellModel & model() const
Model reference.
A token holds an item read from Istream.
bool isPunctuation() const noexcept
Token is PUNCTUATION.
bool isLabel() const noexcept
Token is LABEL.
punctuationToken pToken() const
Return punctuation character.
label labelToken() const
Return label value.
InfoProxy< token > info() const
Return info proxy for printing token information to a stream.
const word & wordToken() const
Return const reference to the word contents.
bool isWord() const noexcept
Token is word-variant (WORD, DIRECTIVE)
#define FatalIOErrorInFunction(ios)
Report an error message using Foam::FatalIOError.
OBJstream os(runTime.globalPath()/outputName)
gmvFile<< "tracers "<< particles.size()<< nl;for(const passiveParticle &p :particles){ gmvFile<< p.position().x()<< " ";}gmvFile<< nl;for(const passiveParticle &p :particles){ gmvFile<< p.position().y()<< " ";}gmvFile<< nl;for(const passiveParticle &p :particles){ gmvFile<< p.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))
bool isNull(const T *ptr)
True if ptr is a pointer (of type T) to the nullObject.
Ostream & operator<<(Ostream &, const boundaryPatch &p)
Write boundaryPatch as dictionary entries (without surrounding braces)
Ostream & endl(Ostream &os)
Add newline and flush stream.
Istream & operator>>(Istream &, directionInfo &)
errorManipArg< error, int > exit(error &err, const int errNo=1)
#define forAll(list, i)
Loop across all elements in list.