11 #ifndef _MBMISCUTIL_H_ 12 #define _MBMISCUTIL_H_ 18 #include "NamespaceHeader.H" 22 const Box& a_domainBox,
57 const Box& a_blockBox);
76 bool a_fromJU =
true);
101 const Real*
const a_vecTransform);
103 #include "NamespaceFooter.H" void addPowersPoint(Vector< Real > &a_powers, const RealVect &a_x, const Vector< IntVect > &a_exponents, Real a_weight)
void addPowersVector(Vector< Real > &a_powers, const RealVect &a_x, const Vector< IntVect > &a_exponents, Real a_weight, const Real *const a_vecTransform)
Real dotSubvectors(const Vector< Real > &a_vec1, int a_start1, const Vector< Real > &a_vec2, int a_start2, int a_length)
Vector< Real > VectorRealVectToReal(const Vector< RealVect > &a_rv)
convert Vector<RealVect> to Vector<Real>
int ceilRatio(int a_num, int a_denom)
returns ceil(a_num / a_denom)
void minBoxGlobal(Box &a_bx)
change a_bx to its minBox across all processors
Vector< RealVect > VectorRealToRealVect(const Vector< Real > &a_r)
convert Vector<Real> to Vector<RealVect>
void order2gradient(FArrayBox &a_gradFab, const Box &a_gradBox, const FArrayBox &a_dataFab, const Box &a_dataBox, const Vector< int > &a_interpDimsVect)
double Real
Definition: REAL.H:33
RealVect centeringOffset(const Box &a_box, const RealVect &a_dxVect)
component d of return value is a_dxVect[d]/2 if a_box is cell-centered in dimension d...
Box intersectOffset(const Box &a_inputBox, const Box &a_domainBox, const IntVect &a_offset)
return a_inputBox intersected with a version of a_domainBox extended indefinitely below if offset is ...
LoHiSide
Definition: LoHiSide.H:27
int minBufferSizeAMR(const Vector< int > &a_refRatio, int a_maxLevel, int a_numGhost, int a_order=4, bool a_fromJU=true)
Box faceSlice(const Box &a_gridBox, int a_idir, Side::LoHiSide a_side, const Box &a_blockBox)
returns the faces of a_gridBox that are on the (a_idir, a_side) face of a_blockBox ...
A Rectangular Domain on an Integer Lattice.
Definition: Box.H:469
A Real vector in SpaceDim-dimensional space.
Definition: RealVect.H:41
An integer Vector in SpaceDim-dimensional space.
Definition: CHArray.H:42
Definition: FArrayBox.H:45
int faceDimension(const Box &a_box)
returns the dimension of the faces of a_box; crashes if not on faces of codimension 1 ...