#include <cstddef>
#include <cstdlib>
#include <cstring>
#include <iostream>
#include "SPACE.H"
#include "Misc.H"
#include "REAL.H"
#include "IntVect.H"
#include "Vector.H"
#include "SPMD.H"
#include "NamespaceHeader.H"
#include "NamespaceFooter.H"
#include "BaseNamespaceHeader.H"
#include "NamespaceVar.H"
#include "BaseNamespaceFooter.H"
Go to the source code of this file.
Classes | |
class | RealVect |
A Real vector in SpaceDim-dimensional space. More... | |
Functions | |
template<> | |
int | linearSize (const CH_XDIR::RealVect &vindex) |
template<> | |
void | linearIn (CH_XDIR::RealVect &a_outputT, const void *const inBuf) |
template<> | |
void | linearOut (void *const a_outBuf, const CH_XDIR::RealVect &a_inputT) |
RealVect | scale (const RealVect &p, Real s) |
RealVect | min (const RealVect &p1, const RealVect &p2) |
RealVect | max (const RealVect &p1, const RealVect &p2) |
RealVect | BASISREALV (int idir) |
int linearSize | ( | const CH_XDIR::RealVect & | vindex | ) | [inline] |
void linearIn | ( | CH_XDIR::RealVect & | a_outputT, | |
const void *const | inBuf | |||
) | [inline] |
void linearOut | ( | void *const | a_outBuf, | |
const CH_XDIR::RealVect & | a_inputT | |||
) | [inline] |
Returns a RealVect obtained by multiplying each of the components of the given RealVect by a scalar.
References RealVect::RealVect().
Returns the RealVect that is the component-wise minimum of two argument RealVects.
References RealVect::min().
Returns the RealVect that is the component-wise maximum of two argument RealVects.
References RealVect::max().
RealVect BASISREALV | ( | int | idir | ) |
Returns a basis vector in the given coordinate direction.
In 2-D:
BASISREALV(0) == (1.,0.); BASISREALV(1) == (0.,1.).
In 3-D:
BASISREALV(0) == (1.,0.,0.); BASISREALV(1) == (0.,1.,0.); BASISREALV(2) == (0.,0.,1.).
Note that the coordinate directions are based at zero.