43 scalar magDir =
mag(direction_);
48 <<
"(almost)zero vector as direction for cell " << cellNo_
51 else if (
mag(magDir - 1) > small)
54 direction_ /=
mag(direction_);
64 scalar magDir =
mag(direction_);
69 <<
"(almost)zero vector as direction for cell " << cellNo_
72 else if (
mag(magDir - 1) > small)
75 direction_ /=
mag(direction_);
streamFormat format() const
Return current stream format.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
Container with cells to refine. Refinement given as single direction.
const vector & direction() const
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
errorManip< error > abort(error &err)
dimensioned< scalar > mag(const dimensioned< Type > &)
label readLabel(Istream &is)
Ostream & operator<<(Ostream &os, const fvConstraints &constraints)