17 #ifndef _NODEFARRAYBOX_H_ 18 #define _NODEFARRAYBOX_H_ 21 #include "NamespaceHeader.H" 123 void define(
const Box& a_bx,
int a_nComp=1);
130 void resize(
const Box& a_bx,
int a_nComp=1,
Real* a_alias=NULL);
211 void copy(
const Box& a_regionFrom,
213 const Box& a_regionTo,
253 void linearIn(
const void*
const a_buf);
295 int a_numcomp = 1)
const 297 return m_fab.
norm(a_subbox, a_p, a_comp, a_numcomp);
311 int a_numcomp = 1)
const 313 return m_fab.
norm(a_p, a_comp, a_numcomp);
325 int a_numcomp = 1)
const 328 return m_fab.
sumPow(a_subbox, a_p, a_comp, a_numcomp);
348 int a_comp = 0)
const 369 int a_comp = 0)
const 390 int a_comp = 0)
const 410 int a_comp = 0)
const 423 int a_comp = 0)
const 438 int a_comp = 0)
const 452 int a_comp = 0)
const 465 int a_comp = 0)
const 479 int a_comp = 0)
const 521 m_fab.
abs(a_subbox, a_comp, a_numcomp);
530 int a_numcomp = 1)
const 532 return m_fab.
sum(a_comp, a_numcomp);
541 int a_numcomp = 1)
const 543 return m_fab.
sum(a_subbox, a_comp, a_numcomp);
632 m_fab.
plus(a_r, a_subbox, a_comp, a_numcomp);
697 return this->
plus(a_r);
738 m_fab.
plus(a_src.
m_fab, a_scale, a_srccomp, a_destcomp, a_numcomp);
772 m_fab.
plus(a_src.
m_fab, a_subbox, a_srccomp, a_destcomp, a_numcomp);
791 const Box& a_destbox,
796 m_fab.
plus(a_src.
m_fab, a_srcbox, a_destbox, a_srccomp, a_destcomp, a_numcomp);
804 const Box& a_destbox,
810 m_fab.
plus(a_src.
m_fab, a_srcbox, a_destbox, a_scale, a_srccomp, a_destcomp, a_numcomp);
897 const Box& a_destbox,
902 m_fab.
minus(a_src.
m_fab, a_srcbox, a_destbox, a_srccomp, a_destcomp, a_numcomp);
951 m_fab.
mult(a_r, a_subbox, a_comp, a_numcomp);
1007 const Box& a_subbox,
1012 m_fab.
mult(a_src.
m_fab, a_subbox, a_srccomp, a_destcomp, a_numcomp);
1029 const Box& a_srcbox,
1030 const Box& a_destbox,
1035 m_fab.
mult(a_src.
m_fab, a_srcbox, a_destbox, a_srccomp, a_destcomp, a_numcomp);
1081 const Box& a_subbox,
1140 const Box& a_subbox,
1162 const Box& a_srcbox,
1163 const Box& a_destbox,
1168 m_fab.
divide(a_src.
m_fab, a_srcbox, a_destbox, a_srccomp, a_destcomp, a_numcomp);
1190 #include "NamespaceFooter.H" int maskGE(BaseFab< int > &a_mask, Real a_val, int a_comp=0) const
Definition: NodeFArrayBox.H:477
NodeFArrayBox & plus(const NodeFArrayBox &a_src, int a_srccomp, int a_destcomp, int a_numcomp=1)
Definition: NodeFArrayBox.H:749
void resize(const Box &a_bx, int a_nComp=1, Real *a_alias=NULL)
IntVect maxIndex(const Box &a_subbox, int a_comp=0) const
Definition: NodeFArrayBox.H:409
NodeFArrayBox & plus(const NodeFArrayBox &a_src, const Box &a_subbox, int a_srccomp, int a_destcomp, int a_numcomp=1)
Definition: NodeFArrayBox.H:766
IntVect maxIndex(int a_comp=0) const
Definition: NodeFArrayBox.H:399
int maskGT(BaseFab< int > &a_mask, Real a_val, int a_comp=0) const
Definition: NodeFArrayBox.H:463
NodeFArrayBox & minus(const NodeFArrayBox &a_src, const Box &a_subbox, int a_srccomp, int a_destcomp, int a_numcomp=1)
Definition: NodeFArrayBox.H:872
int size(const Box &a_R, const Interval &a_comps) const
NodeFArrayBox & plus(const NodeFArrayBox &a_src, const Real &a_scale, int a_srccomp, int a_destcomp, int a_numcomp=1)
Definition: NodeFArrayBox.H:732
NodeFArrayBox & mult(const NodeFArrayBox &a_src, int a_srccomp, int a_destcomp, int a_numcomp=1)
Definition: NodeFArrayBox.H:988
NodeFArrayBox & negate(const Box &a_subbox, int a_comp=0, int a_numcomp=1)
Definition: NodeFArrayBox.H:590
FArrayBox & negate(const Box &a_subbox, int a_comp=0, int a_numcomp=1)
FArrayBox & plus(Real a_r, const Box &a_subbox, int a_comp=0, int a_numcomp=1)
NodeFArrayBox & mult(const NodeFArrayBox &a_src, const Box &a_srcbox, const Box &a_destbox, int a_srccomp, int a_destcomp, int a_numcomp=1)
Definition: NodeFArrayBox.H:1028
NodeFArrayBox & mult(Real a_r, const Box &a_subbox, int a_comp=0, int a_numcomp=1)
Definition: NodeFArrayBox.H:946
static int preAllocatable()
Definition: NodeFArrayBox.H:258
NodeFArrayBox & negate()
Definition: NodeFArrayBox.H:615
Real sumPow(const Box &a_subbox, int a_p=2, int a_comp=0, int a_numcomp=1) const
Definition: NodeFArrayBox.H:322
Real sum(const Box &a_subbox, int a_comp, int a_numcomp=1) const
Definition: NodeFArrayBox.H:539
Real max(int a_comp=0) const
FArrayBox & invert(Real a_r)
virtual Real norm(const Box &a_subbox, int a_p=2, int a_comp=0, int a_numcomp=1) const
Real max(const Box &a_subbox, int a_comp=0) const
Definition: NodeFArrayBox.H:368
void copy(const NodeFArrayBox &a_src)
int maskEQ(BaseFab< int > &a_mask, Real a_val, int a_comp=0) const
Definition: NodeFArrayBox.H:450
NodeFArrayBox & mult(Real a_r, int a_comp, int a_numcomp=1)
Definition: NodeFArrayBox.H:932
IntVect maxIndex(int a_comp=0) const
Real sum(int a_comp, int a_numcomp=1) const
void abs()
Definition: NodeFArrayBox.H:488
NodeFArrayBox & plus(Real a_r, const Box &a_subbox, int a_comp=0, int a_numcomp=1)
Definition: NodeFArrayBox.H:627
NodeFArrayBox & divide(Real a_r, const Box &a_subbox, int a_comp=0, int a_numcomp=1)
Definition: NodeFArrayBox.H:1080
NodeFArrayBox & minus(const NodeFArrayBox &a_src, int a_srccomp, int a_destcomp, int a_numcomp=1)
Definition: NodeFArrayBox.H:856
int maskEQ(BaseFab< int > &a_mask, Real a_val, int a_comp=0) const
FArrayBox & divide(Real a_r)
Real min(const Box &a_subbox, int a_comp=0) const
Definition: NodeFArrayBox.H:347
virtual Real sumPow(const Box &a_subbox, int a_p=2, int a_comp=0, int a_numcomp=1) const
Real max(int a_comp=0) const
Definition: NodeFArrayBox.H:357
Box m_box
Definition: NodeFArrayBox.H:1177
int maskGE(BaseFab< int > &a_mask, Real a_val, int a_comp=0) const
void linearOut(void *a_buf, const Box &a_R, const Interval &a_comps) const
int maskGT(BaseFab< int > &a_mask, Real a_val, int a_comp=0) const
NodeFArrayBox & invert(Real a_r, int a_comp, int a_numcomp=1)
Definition: NodeFArrayBox.H:563
NodeFArrayBox & divide(const NodeFArrayBox &a_x)
Definition: NodeFArrayBox.H:1108
NodeFArrayBox & divide(const NodeFArrayBox &a_src, const Box &a_subbox, int a_srccomp, int a_destcomp, int a_numcomp=1)
Definition: NodeFArrayBox.H:1139
Real min(int a_comp=0) const
Definition: NodeFArrayBox.H:336
void abs(const Box &a_subbox, int a_comp=0, int a_numcomp=1)
Definition: NodeFArrayBox.H:517
Structure for passing component ranges in code.
Definition: Interval.H:23
int nComp() const
Definition: NodeFArrayBox.H:496
Real dotProduct(const FArrayBox &a_fab2) const
Return the dot product of this FArrayBox with another.
NodeFArrayBox & minus(const NodeFArrayBox &a_x)
Definition: NodeFArrayBox.H:843
double Real
Definition: REAL.H:33
NodeFArrayBox & mult(const NodeFArrayBox &a_x)
Definition: NodeFArrayBox.H:974
Real norm(int a_p=2, int a_comp=0, int a_numcomp=1) const
Definition: NodeFArrayBox.H:309
NodeFArrayBox & operator-=(Real a_r)
Definition: NodeFArrayBox.H:819
NodeFArrayBox & plus(const NodeFArrayBox &a_src, const Real &a_scale)
Definition: NodeFArrayBox.H:719
FArrayBox & minus(const FArrayBox &a_x)
NodeFArrayBox & plus(Real a_r)
Definition: NodeFArrayBox.H:689
IntVect minIndex(int a_comp=0) const
NodeFArrayBox & divide(const NodeFArrayBox &a_src, const Box &a_srcbox, const Box &a_destbox, int a_srccomp, int a_destcomp, int a_numcomp=1)
Definition: NodeFArrayBox.H:1161
Real sum(int a_comp, int a_numcomp=1) const
Definition: NodeFArrayBox.H:529
int maskLE(BaseFab< int > &a_mask, Real a_val, int a_comp=0) const
Definition: NodeFArrayBox.H:436
IntVect minIndex(const Box &a_subbox, int a_comp=0) const
Definition: NodeFArrayBox.H:389
NodeFArrayBox & operator*=(Real a_r)
Definition: NodeFArrayBox.H:911
NodeFArrayBox & negate(int a_comp, int a_numcomp=1)
Definition: NodeFArrayBox.H:603
A Rectangular Domain on an Integer Lattice.
Definition: Box.H:465
int maskLT(BaseFab< int > &a_mask, Real a_val, int a_comp=0) const
int maskLT(BaseFab< int > &a_mask, Real a_val, int a_comp=0) const
Definition: NodeFArrayBox.H:421
int maskLE(BaseFab< int > &a_mask, Real a_val, int a_comp=0) const
NodeFArrayBox & plus(const NodeFArrayBox &a_src, const Box &a_srcbox, const Box &a_destbox, int a_srccomp, int a_destcomp, int a_numcomp=1)
Definition: NodeFArrayBox.H:789
NodeFArrayBox & minus(const NodeFArrayBox &a_src, const Box &a_srcbox, const Box &a_destbox, int a_srccomp, int a_destcomp, int a_numcomp=1)
Definition: NodeFArrayBox.H:895
Real dotProduct(const NodeFArrayBox &a_fab2, const Box &box) const
Definition: NodeFArrayBox.H:161
NodeFArrayBox & invert(Real a_r, const Box &a_subbox, int a_comp=0, int a_numcomp=1)
Definition: NodeFArrayBox.H:576
Real & operator()(const IntVect &a_p, int N=0)
Definition: NodeFArrayBox.H:650
void define(const Box &a_bx, int a_nComp=1)
An integer Vector in SpaceDim-dimensional space.
Definition: CHArray.H:42
NodeFArrayBox & operator=(const NodeFArrayBox &)
Definition: FArrayBox.H:44
IntVect minIndex(int a_comp=0) const
Definition: NodeFArrayBox.H:379
NodeFArrayBox & divide(Real a_r)
Definition: NodeFArrayBox.H:1054
Real min(int a_comp=0) const
Real norm(const Box &a_subbox, int a_p=2, int a_comp=0, int a_numcomp=1) const
Definition: NodeFArrayBox.H:292
NodeFArrayBox & mult(Real a_r)
Definition: NodeFArrayBox.H:921
NodeFArrayBox & plus(const NodeFArrayBox &a_x)
Definition: NodeFArrayBox.H:707
int nComp() const
{ accessors}
Definition: BaseFabImplem.H:195
NodeFArrayBox & plus_real(Real a_r)
Definition: NodeFArrayBox.H:695
Real dotProduct(const NodeFArrayBox &a_fab2) const
Definition: NodeFArrayBox.H:156
NodeFArrayBox & plus(Real a_r, int a_comp, int a_numcomp=1)
Definition: NodeFArrayBox.H:641
NodeFArrayBox & divide(const NodeFArrayBox &a_src, int a_srccomp, int a_destcomp, int a_numcomp=1)
Definition: NodeFArrayBox.H:1121
NodeFArrayBox & plus(const NodeFArrayBox &a_src, const Box &a_srcbox, const Box &a_destbox, const Real &a_scale, int a_srccomp, int a_destcomp, int a_numcomp=1)
Definition: NodeFArrayBox.H:802
NodeFArrayBox & operator+=(Real a_r)
Definition: NodeFArrayBox.H:666
void linearIn(void *a_buf, const Box &a_R, const Interval &a_comps)
NodeFArrayBox & mult(const NodeFArrayBox &a_src, const Box &a_subbox, int a_srccomp, int a_destcomp, int a_numcomp=1)
Definition: NodeFArrayBox.H:1006
FArrayBox m_fab
Definition: NodeFArrayBox.H:1180
NodeFArrayBox & divide(Real a_r, int a_comp, int a_numcomp=1)
Definition: NodeFArrayBox.H:1066
int linearSize(void) const
NodeFArrayBox & operator/=(Real a_r)
Definition: NodeFArrayBox.H:1044
void abs(int a_comp, int a_numcomp=1)
Definition: NodeFArrayBox.H:506
NodeFArrayBox & invert(Real a_r)
Definition: NodeFArrayBox.H:551
A wrapper for an FArrayBox to contain NODE-centered data.
Definition: NodeFArrayBox.H:87
FArrayBox & mult(Real a_r)