17 #ifndef _NODEFARRAYBOX_H_ 18 #define _NODEFARRAYBOX_H_ 21 #include "NamespaceHeader.H" 164 void define(
const Box& a_bx,
int a_nComp=1);
270 void copy(
const Box& a_regionFrom,
272 const Box& a_regionTo,
311 void linearIn(
const void*
const a_buf);
352 int a_numcomp = 1)
const 354 return m_fab.
norm(a_subbox, a_p, a_comp, a_numcomp);
368 int a_numcomp = 1)
const 370 return m_fab.
norm(a_p, a_comp, a_numcomp);
381 int a_numcomp = 1)
const 384 return m_fab.
sumPow(a_subbox, a_p, a_comp, a_numcomp);
403 int a_comp = 0)
const 424 int a_comp = 0)
const 445 int a_comp = 0)
const 465 int a_comp = 0)
const 478 int a_comp = 0)
const 492 int a_comp = 0)
const 506 int a_comp = 0)
const 519 int a_comp = 0)
const 532 int a_comp = 0)
const 574 m_fab.
abs(a_subbox, a_comp, a_numcomp);
582 int a_numcomp = 1)
const 584 return m_fab.
sum(a_comp, a_numcomp);
593 int a_numcomp = 1)
const 595 return m_fab.
sum(a_subbox, a_comp, a_numcomp);
681 m_fab.
plus(a_r, a_subbox, a_comp, a_numcomp);
745 return this->
plus(a_r);
786 m_fab.
plus(a_src.
m_fab, a_scale, a_srccomp, a_destcomp, a_numcomp);
820 m_fab.
plus(a_src.
m_fab, a_subbox, a_srccomp, a_destcomp, a_numcomp);
838 const Box& a_destbox,
843 m_fab.
plus(a_src.
m_fab, a_srcbox, a_destbox, a_srccomp, a_destcomp, a_numcomp);
850 const Box& a_destbox,
856 m_fab.
plus(a_src.
m_fab, a_srcbox, a_destbox, a_scale, a_srccomp, a_destcomp, a_numcomp);
942 const Box& a_destbox,
947 m_fab.
minus(a_src.
m_fab, a_srcbox, a_destbox, a_srccomp, a_destcomp, a_numcomp);
994 m_fab.
mult(a_r, a_subbox, a_comp, a_numcomp);
1048 const Box& a_subbox,
1053 m_fab.
mult(a_src.
m_fab, a_subbox, a_srccomp, a_destcomp, a_numcomp);
1070 const Box& a_srcbox,
1071 const Box& a_destbox,
1076 m_fab.
mult(a_src.
m_fab, a_srcbox, a_destbox, a_srccomp, a_destcomp, a_numcomp);
1119 const Box& a_subbox,
1176 const Box& a_subbox,
1197 const Box& a_srcbox,
1198 const Box& a_destbox,
1203 m_fab.
divide(a_src.
m_fab, a_srcbox, a_destbox, a_srccomp, a_destcomp, a_numcomp);
1289 #include "NamespaceFooter.H" int maskGE(BaseFab< int > &a_mask, Real a_val, int a_comp=0) const
Definition: NodeFArrayBox.H:530
NodeFArrayBox & plus(const NodeFArrayBox &a_src, int a_srccomp, int a_destcomp, int a_numcomp=1)
Definition: NodeFArrayBox.H:797
IntVect maxIndex(const Box &a_subbox, int a_comp=0) const
Definition: NodeFArrayBox.H:464
void shift(const IntVect &iv)
Definition: NodeFArrayBox.H:1268
NodeFArrayBox & plus(const NodeFArrayBox &a_src, const Box &a_subbox, int a_srccomp, int a_destcomp, int a_numcomp=1)
Definition: NodeFArrayBox.H:814
IntVect maxIndex(int a_comp=0) const
Definition: NodeFArrayBox.H:454
int maskGT(BaseFab< int > &a_mask, Real a_val, int a_comp=0) const
Definition: NodeFArrayBox.H:517
NodeFArrayBox & minus(const NodeFArrayBox &a_src, const Box &a_subbox, int a_srccomp, int a_destcomp, int a_numcomp=1)
Definition: NodeFArrayBox.H:918
NodeFArrayBox & plus(const NodeFArrayBox &a_src, const Real &a_scale, int a_srccomp, int a_destcomp, int a_numcomp=1)
Definition: NodeFArrayBox.H:780
size_t size(const Box &a_R, const Interval &a_comps) const
NodeFArrayBox & mult(const NodeFArrayBox &a_src, int a_srccomp, int a_destcomp, int a_numcomp=1)
Definition: NodeFArrayBox.H:1030
const int * loVect() const
Definition: NodeFArrayBox.H:1213
NodeFArrayBox & negate(const Box &a_subbox, int a_comp=0, int a_numcomp=1)
Definition: NodeFArrayBox.H:640
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:1069
bool cellCentered() const
Definition: Box.H:1939
NodeFArrayBox & mult(Real a_r, const Box &a_subbox, int a_comp=0, int a_numcomp=1)
Definition: NodeFArrayBox.H:989
static int preAllocatable()
Definition: NodeFArrayBox.H:316
NodeFArrayBox & negate()
Definition: NodeFArrayBox.H:665
BaseFab< T > & shift(const IntVect &a_v)
{ domain modification functions}
Definition: BaseFabImplem.H:516
const int * hiVect() const
Definition: NodeFArrayBox.H:1225
Real sumPow(const Box &a_subbox, int a_p=2, int a_comp=0, int a_numcomp=1) const
Definition: NodeFArrayBox.H:378
Real sum(const Box &a_subbox, int a_comp, int a_numcomp=1) const
Definition: NodeFArrayBox.H:591
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:423
void copy(const NodeFArrayBox &a_src)
int maskEQ(BaseFab< int > &a_mask, Real a_val, int a_comp=0) const
Definition: NodeFArrayBox.H:504
NodeFArrayBox & mult(Real a_r, int a_comp, int a_numcomp=1)
Definition: NodeFArrayBox.H:976
IntVect maxIndex(int a_comp=0) const
Real sum(int a_comp, int a_numcomp=1) const
void abs()
Definition: NodeFArrayBox.H:541
NodeFArrayBox & plus(Real a_r, const Box &a_subbox, int a_comp=0, int a_numcomp=1)
Definition: NodeFArrayBox.H:676
NodeFArrayBox & divide(Real a_r, const Box &a_subbox, int a_comp=0, int a_numcomp=1)
Definition: NodeFArrayBox.H:1118
NodeFArrayBox & minus(const NodeFArrayBox &a_src, int a_srccomp, int a_destcomp, int a_numcomp=1)
Definition: NodeFArrayBox.H:902
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:402
const int * nCompPtr() const
Definition: BaseFabImplem.H:366
const Real * dataPtr(int a_n=0) const
Definition: NodeFArrayBox.H:1262
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:412
Box m_box
Definition: NodeFArrayBox.H:1276
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:613
NodeFArrayBox & divide(const NodeFArrayBox &a_x)
Definition: NodeFArrayBox.H:1145
Real * dataPtr(int a_n=0)
Definition: NodeFArrayBox.H:1248
NodeFArrayBox & divide(const NodeFArrayBox &a_src, const Box &a_subbox, int a_srccomp, int a_destcomp, int a_numcomp=1)
Definition: NodeFArrayBox.H:1175
Real min(int a_comp=0) const
Definition: NodeFArrayBox.H:391
void abs(const Box &a_subbox, int a_comp=0, int a_numcomp=1)
Definition: NodeFArrayBox.H:570
Structure for passing component ranges in code.
Definition: Interval.H:23
int nComp() const
Definition: NodeFArrayBox.H:549
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:889
double Real
Definition: REAL.H:33
NodeFArrayBox & mult(const NodeFArrayBox &a_x)
Definition: NodeFArrayBox.H:1016
const int * hiVect() const
Definition: BaseFabImplem.H:361
Real norm(int a_p=2, int a_comp=0, int a_numcomp=1) const
Definition: NodeFArrayBox.H:366
NodeFArrayBox & operator-=(Real a_r)
Definition: NodeFArrayBox.H:865
NodeFArrayBox & plus(const NodeFArrayBox &a_src, const Real &a_scale)
Definition: NodeFArrayBox.H:767
FArrayBox & minus(const FArrayBox &a_x)
NodeFArrayBox & operator=(NodeFArrayBox &&a_in)=default
NodeFArrayBox & plus(Real a_r)
Definition: NodeFArrayBox.H:737
IntVect minIndex(int a_comp=0) const
const int * nCompPtr() const
Definition: NodeFArrayBox.H:1235
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:1196
Real sum(int a_comp, int a_numcomp=1) const
Definition: NodeFArrayBox.H:581
int maskLE(BaseFab< int > &a_mask, Real a_val, int a_comp=0) const
Definition: NodeFArrayBox.H:490
T * dataPtr(int a_n=0)
Definition: BaseFabImplem.H:373
IntVect minIndex(const Box &a_subbox, int a_comp=0) const
Definition: NodeFArrayBox.H:444
NodeFArrayBox & operator*=(Real a_r)
Definition: NodeFArrayBox.H:955
NodeFArrayBox & negate(int a_comp, int a_numcomp=1)
Definition: NodeFArrayBox.H:653
A Rectangular Domain on an Integer Lattice.
Definition: Box.H:469
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:476
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:836
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:940
Real dotProduct(const NodeFArrayBox &a_fab2, const Box &box) const
Definition: NodeFArrayBox.H:210
NodeFArrayBox & invert(Real a_r, const Box &a_subbox, int a_comp=0, int a_numcomp=1)
Definition: NodeFArrayBox.H:626
NodeFArrayBox(const Box &a_bx)
Definition: NodeFArrayBox.H:146
Real & operator()(const IntVect &a_p, int N=0)
Definition: NodeFArrayBox.H:699
void define(const Box &a_bx, int a_nComp=1)
An integer Vector in SpaceDim-dimensional space.
Definition: CHArray.H:42
Definition: FArrayBox.H:45
IntVect minIndex(int a_comp=0) const
Definition: NodeFArrayBox.H:434
NodeFArrayBox & divide(Real a_r)
Definition: NodeFArrayBox.H:1094
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:349
NodeFArrayBox & mult(Real a_r)
Definition: NodeFArrayBox.H:965
NodeFArrayBox & plus(const NodeFArrayBox &a_x)
Definition: NodeFArrayBox.H:755
const int * loVect() const
{ Fortran interface functions}
Definition: BaseFabImplem.H:356
Box & shift(int dir, int nzones)
shift functions
Definition: Box.H:2083
int nComp() const
{ accessors}
Definition: BaseFabImplem.H:264
void const char const int const int * N
Definition: Lapack.H:83
NodeFArrayBox & plus_real(Real a_r)
Definition: NodeFArrayBox.H:743
Real dotProduct(const NodeFArrayBox &a_fab2) const
Definition: NodeFArrayBox.H:205
NodeFArrayBox & plus(Real a_r, int a_comp, int a_numcomp=1)
Definition: NodeFArrayBox.H:690
NodeFArrayBox & divide(const NodeFArrayBox &a_src, int a_srccomp, int a_destcomp, int a_numcomp=1)
Definition: NodeFArrayBox.H:1158
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:848
NodeFArrayBox & operator+=(Real a_r)
Definition: NodeFArrayBox.H:715
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:1047
FArrayBox m_fab
Definition: NodeFArrayBox.H:1279
NodeFArrayBox & divide(Real a_r, int a_comp, int a_numcomp=1)
Definition: NodeFArrayBox.H:1105
int linearSize(void) const
NodeFArrayBox & operator/=(Real a_r)
Definition: NodeFArrayBox.H:1084
void abs(int a_comp, int a_numcomp=1)
Definition: NodeFArrayBox.H:559
NodeFArrayBox & invert(Real a_r)
Definition: NodeFArrayBox.H:602
A wrapper for an FArrayBox to contain NODE-centered data.
Definition: NodeFArrayBox.H:122
FArrayBox & mult(Real a_r)