46 scalar magDir =
mag(direction_);
51 <<
"(almost)zero vector as direction for cell " << cellNo_
54 else if (
mag(magDir - 1) > SMALL)
57 direction_ /=
mag(direction_);
67 scalar magDir =
mag(direction_);
72 <<
"(almost)zero vector as direction for cell " << cellNo_
75 else if (
mag(magDir - 1) > SMALL)
78 direction_ /=
mag(direction_);
93 os << r.cellNo() << r.direction();
dimensioned< typename typeOfMag< Type >::type > mag(const dimensioned< Type > &dt)
error FatalError
Error stream (stdout output on all processes), with additional 'FOAM FATAL ERROR' header text and sta...
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
refineCell()
Default construct.
label readLabel(const char *buf)
Parse entire buffer as a label, skipping leading/trailing whitespace.
errorManip< error > abort(error &err)
An Ostream is an abstract base class for all output systems (streams, files, token lists...
A Vector of values with scalar precision, where scalar is float/double depending on the compilation f...
OBJstream os(runTime.globalPath()/outputName)
Ostream & operator<<(Ostream &, const boundaryPatch &p)
Write boundaryPatch as dictionary entries (without surrounding braces)
streamFormat format() const noexcept
Get the current stream format.
static constexpr const zero Zero
Global zero (0)