17 #ifndef _NODEFARRAYBOX_H_ 18 #define _NODEFARRAYBOX_H_ 21 #include "NamespaceHeader.H" 164 void define(
const Box& a_bx,
int a_nComp=1);
260 void copy(
const Box& a_regionFrom,
262 const Box& a_regionTo,
301 void linearIn(
const void*
const a_buf);
342 int a_numcomp = 1)
const 344 return m_fab.
norm(a_subbox, a_p, a_comp, a_numcomp);
358 int a_numcomp = 1)
const 360 return m_fab.
norm(a_p, a_comp, a_numcomp);
371 int a_numcomp = 1)
const 374 return m_fab.
sumPow(a_subbox, a_p, a_comp, a_numcomp);
393 int a_comp = 0)
const 414 int a_comp = 0)
const 435 int a_comp = 0)
const 455 int a_comp = 0)
const 468 int a_comp = 0)
const 482 int a_comp = 0)
const 496 int a_comp = 0)
const 509 int a_comp = 0)
const 522 int a_comp = 0)
const 564 m_fab.
abs(a_subbox, a_comp, a_numcomp);
572 int a_numcomp = 1)
const 574 return m_fab.
sum(a_comp, a_numcomp);
583 int a_numcomp = 1)
const 585 return m_fab.
sum(a_subbox, a_comp, a_numcomp);
671 m_fab.
plus(a_r, a_subbox, a_comp, a_numcomp);
735 return this->
plus(a_r);
776 m_fab.
plus(a_src.
m_fab, a_scale, a_srccomp, a_destcomp, a_numcomp);
810 m_fab.
plus(a_src.
m_fab, a_subbox, a_srccomp, a_destcomp, a_numcomp);
828 const Box& a_destbox,
833 m_fab.
plus(a_src.
m_fab, a_srcbox, a_destbox, a_srccomp, a_destcomp, a_numcomp);
840 const Box& a_destbox,
846 m_fab.
plus(a_src.
m_fab, a_srcbox, a_destbox, a_scale, a_srccomp, a_destcomp, a_numcomp);
932 const Box& a_destbox,
937 m_fab.
minus(a_src.
m_fab, a_srcbox, a_destbox, a_srccomp, a_destcomp, a_numcomp);
984 m_fab.
mult(a_r, a_subbox, a_comp, a_numcomp);
1038 const Box& a_subbox,
1043 m_fab.
mult(a_src.
m_fab, a_subbox, a_srccomp, a_destcomp, a_numcomp);
1060 const Box& a_srcbox,
1061 const Box& a_destbox,
1066 m_fab.
mult(a_src.
m_fab, a_srcbox, a_destbox, a_srccomp, a_destcomp, a_numcomp);
1109 const Box& a_subbox,
1166 const Box& a_subbox,
1187 const Box& a_srcbox,
1188 const Box& a_destbox,
1193 m_fab.
divide(a_src.
m_fab, a_srcbox, a_destbox, a_srccomp, a_destcomp, a_numcomp);
1279 #include "NamespaceFooter.H" int maskGE(BaseFab< int > &a_mask, Real a_val, int a_comp=0) const
Definition: NodeFArrayBox.H:520
NodeFArrayBox & plus(const NodeFArrayBox &a_src, int a_srccomp, int a_destcomp, int a_numcomp=1)
Definition: NodeFArrayBox.H:787
IntVect maxIndex(const Box &a_subbox, int a_comp=0) const
Definition: NodeFArrayBox.H:454
void shift(const IntVect &iv)
Definition: NodeFArrayBox.H:1258
NodeFArrayBox & plus(const NodeFArrayBox &a_src, const Box &a_subbox, int a_srccomp, int a_destcomp, int a_numcomp=1)
Definition: NodeFArrayBox.H:804
IntVect maxIndex(int a_comp=0) const
Definition: NodeFArrayBox.H:444
int maskGT(BaseFab< int > &a_mask, Real a_val, int a_comp=0) const
Definition: NodeFArrayBox.H:507
NodeFArrayBox & minus(const NodeFArrayBox &a_src, const Box &a_subbox, int a_srccomp, int a_destcomp, int a_numcomp=1)
Definition: NodeFArrayBox.H:908
NodeFArrayBox & plus(const NodeFArrayBox &a_src, const Real &a_scale, int a_srccomp, int a_destcomp, int a_numcomp=1)
Definition: NodeFArrayBox.H:770
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:1020
const int * loVect() const
Definition: NodeFArrayBox.H:1203
NodeFArrayBox & negate(const Box &a_subbox, int a_comp=0, int a_numcomp=1)
Definition: NodeFArrayBox.H:630
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:1059
NodeFArrayBox & mult(Real a_r, const Box &a_subbox, int a_comp=0, int a_numcomp=1)
Definition: NodeFArrayBox.H:979
static int preAllocatable()
Definition: NodeFArrayBox.H:306
NodeFArrayBox & negate()
Definition: NodeFArrayBox.H:655
BaseFab< T > & shift(const IntVect &a_v)
{ domain modification functions}
Definition: BaseFabImplem.H:516
const int * hiVect() const
Definition: NodeFArrayBox.H:1215
Real sumPow(const Box &a_subbox, int a_p=2, int a_comp=0, int a_numcomp=1) const
Definition: NodeFArrayBox.H:368
Real sum(const Box &a_subbox, int a_comp, int a_numcomp=1) const
Definition: NodeFArrayBox.H:581
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:413
void copy(const NodeFArrayBox &a_src)
int maskEQ(BaseFab< int > &a_mask, Real a_val, int a_comp=0) const
Definition: NodeFArrayBox.H:494
NodeFArrayBox & mult(Real a_r, int a_comp, int a_numcomp=1)
Definition: NodeFArrayBox.H:966
IntVect maxIndex(int a_comp=0) const
Real sum(int a_comp, int a_numcomp=1) const
void abs()
Definition: NodeFArrayBox.H:531
NodeFArrayBox & plus(Real a_r, const Box &a_subbox, int a_comp=0, int a_numcomp=1)
Definition: NodeFArrayBox.H:666
NodeFArrayBox & divide(Real a_r, const Box &a_subbox, int a_comp=0, int a_numcomp=1)
Definition: NodeFArrayBox.H:1108
NodeFArrayBox & minus(const NodeFArrayBox &a_src, int a_srccomp, int a_destcomp, int a_numcomp=1)
Definition: NodeFArrayBox.H:892
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:392
const int * nCompPtr() const
Definition: BaseFabImplem.H:366
const Real * dataPtr(int a_n=0) const
Definition: NodeFArrayBox.H:1252
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:402
Box m_box
Definition: NodeFArrayBox.H:1266
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:603
NodeFArrayBox & divide(const NodeFArrayBox &a_x)
Definition: NodeFArrayBox.H:1135
Real * dataPtr(int a_n=0)
Definition: NodeFArrayBox.H:1238
NodeFArrayBox & divide(const NodeFArrayBox &a_src, const Box &a_subbox, int a_srccomp, int a_destcomp, int a_numcomp=1)
Definition: NodeFArrayBox.H:1165
Real min(int a_comp=0) const
Definition: NodeFArrayBox.H:381
void abs(const Box &a_subbox, int a_comp=0, int a_numcomp=1)
Definition: NodeFArrayBox.H:560
Structure for passing component ranges in code.
Definition: Interval.H:23
int nComp() const
Definition: NodeFArrayBox.H:539
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:879
double Real
Definition: REAL.H:33
NodeFArrayBox & mult(const NodeFArrayBox &a_x)
Definition: NodeFArrayBox.H:1006
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:356
NodeFArrayBox & operator-=(Real a_r)
Definition: NodeFArrayBox.H:855
NodeFArrayBox & plus(const NodeFArrayBox &a_src, const Real &a_scale)
Definition: NodeFArrayBox.H:757
FArrayBox & minus(const FArrayBox &a_x)
NodeFArrayBox & operator=(NodeFArrayBox &&a_in)=default
NodeFArrayBox & plus(Real a_r)
Definition: NodeFArrayBox.H:727
IntVect minIndex(int a_comp=0) const
const int * nCompPtr() const
Definition: NodeFArrayBox.H:1225
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:1186
Real sum(int a_comp, int a_numcomp=1) const
Definition: NodeFArrayBox.H:571
int maskLE(BaseFab< int > &a_mask, Real a_val, int a_comp=0) const
Definition: NodeFArrayBox.H:480
T * dataPtr(int a_n=0)
Definition: BaseFabImplem.H:373
IntVect minIndex(const Box &a_subbox, int a_comp=0) const
Definition: NodeFArrayBox.H:434
NodeFArrayBox & operator*=(Real a_r)
Definition: NodeFArrayBox.H:945
NodeFArrayBox & negate(int a_comp, int a_numcomp=1)
Definition: NodeFArrayBox.H:643
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:466
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:826
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:930
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:616
NodeFArrayBox(const Box &a_bx)
Definition: NodeFArrayBox.H:146
Real & operator()(const IntVect &a_p, int N=0)
Definition: NodeFArrayBox.H:689
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:424
NodeFArrayBox & divide(Real a_r)
Definition: NodeFArrayBox.H:1084
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:339
NodeFArrayBox & mult(Real a_r)
Definition: NodeFArrayBox.H:955
NodeFArrayBox & plus(const NodeFArrayBox &a_x)
Definition: NodeFArrayBox.H:745
const int * loVect() const
{ Fortran interface functions}
Definition: BaseFabImplem.H:356
Box & shift(int dir, int nzones)
shift functions
Definition: Box.H:2067
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:733
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:680
NodeFArrayBox & divide(const NodeFArrayBox &a_src, int a_srccomp, int a_destcomp, int a_numcomp=1)
Definition: NodeFArrayBox.H:1148
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:838
NodeFArrayBox & operator+=(Real a_r)
Definition: NodeFArrayBox.H:705
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:1037
FArrayBox m_fab
Definition: NodeFArrayBox.H:1269
NodeFArrayBox & divide(Real a_r, int a_comp, int a_numcomp=1)
Definition: NodeFArrayBox.H:1095
int linearSize(void) const
NodeFArrayBox & operator/=(Real a_r)
Definition: NodeFArrayBox.H:1074
void abs(int a_comp, int a_numcomp=1)
Definition: NodeFArrayBox.H:549
NodeFArrayBox & invert(Real a_r)
Definition: NodeFArrayBox.H:592
A wrapper for an FArrayBox to contain NODE-centered data.
Definition: NodeFArrayBox.H:122
FArrayBox & mult(Real a_r)