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;
121 const InfoProxy<cellShape>& iproxy
124 const auto& cs = *iproxy;
128 os <<
" cellShape has no model!\n";
132 os << cs.model().info() <<
nl;
135 os <<
"\tGeom:\tpoint\tlabel\txyz\n";
139 os <<
"\t\t" << i <<
"\t" << cs[i] <<
endl;
bool isPunctuation() const noexcept
Token is PUNCTUATION.
bool isWord() const noexcept
Token is word-variant (WORD, DIRECTIVE)
punctuationToken pToken() const
Return punctuation character.
errorManipArg< error, int > exit(error &err, const int errNo=1)
const word & wordToken() const
Return const reference to the word contents.
An analytical geometric cellShape.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)...
constexpr char nl
The newline '\n' character (0x0a)
A token holds an item read from Istream.
Ostream & endl(Ostream &os)
Add newline and flush stream.
#define forAll(list, i)
Loop across all elements in list.
Istream & operator>>(Istream &, directionInfo &)
An Ostream is an abstract base class for all output systems (streams, files, token lists...
bool isNull(const T *ptr)
True if ptr is a pointer (of type T) to the nullObject.
bool readEnd(const char *funcName)
End read of data chunk, ends with ')'.
OBJstream os(runTime.globalPath()/outputName)
Ostream & operator<<(Ostream &, const boundaryPatch &p)
Write boundaryPatch as dictionary entries (without surrounding braces)
#define FatalIOErrorInFunction(ios)
Report an error message using Foam::FatalIOError.
label labelToken() const
Return label value.
bool isLabel() const noexcept
Token is LABEL.
InfoProxy< token > info() const noexcept
Return info proxy, for printing token information to a stream.
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))
IOerror FatalIOError
Error stream (stdout output on all processes), with additional 'FOAM FATAL IO ERROR' header text and ...