Chombo + EB
3.0
|
#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 "IndexTM.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... | |
Macros | |
#define | _REALVECT_H_ |
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) |
#define _REALVECT_H_ |
int linearSize | ( | const CH_XDIR::RealVect & | vindex | ) |
void linearIn | ( | CH_XDIR::RealVect & | a_outputT, |
const void *const | inBuf | ||
) |
void linearOut | ( | void *const | a_outBuf, |
const CH_XDIR::RealVect & | a_inputT | ||
) |
Returns a RealVect obtained by multiplying each of the components of the given RealVect by a scalar.
References D_DECL6, and 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::BASISREALV, and 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.