Chombo + EB  3.2
Public Member Functions | Public Attributes | List of all members
SumOp Class Reference

Class to do summing operation in the context of CopyTo. More...

#include <ReductionOps.H>

Inheritance diagram for SumOp:
Inheritance graph
[legend]

Public Member Functions

 SumOp ()
 
 SumOp (int a_summingDir)
 
 SumOp (const Vector< int > &a_summingDir)
 
virtual void linearOut (const FArrayBox &arg, void *buf, const Box &R, const Interval &comps) const
 
virtual void linearIn (FArrayBox &arg, void *buf, const Box &R, const Interval &comps) const
 
void op (FArrayBox &dest, const Box &RegionFrom, const Interval &Cdest, const Box &RegionTo, const FArrayBox &src, const Interval &Csrc) const
 
- Public Member Functions inherited from LDOperator< FArrayBox >
virtual ~LDOperator ()
 
virtual int size (const FArrayBox &arg, const Box &b, const Interval &comps) const
 
virtual bool threadSafe () const
 this boolean only has to do with whether the op(...) function is thread safe More...
 

Public Attributes

Real scale
 
Vector< int > m_summingDir
 

Detailed Description

Class to do summing operation in the context of CopyTo.

This class will perform a summing operation of the data in src in the summingDir direction(s), multiplying by the scale, and placing the sum in the corresponding location in dest

Constructor & Destructor Documentation

◆ SumOp() [1/3]

SumOp::SumOp ( )

◆ SumOp() [2/3]

SumOp::SumOp ( int  a_summingDir)

◆ SumOp() [3/3]

SumOp::SumOp ( const Vector< int > &  a_summingDir)

Member Function Documentation

◆ linearOut()

virtual void SumOp::linearOut ( const FArrayBox arg,
void *  buf,
const Box R,
const Interval comps 
) const
virtual

Reimplemented from LDOperator< FArrayBox >.

Referenced by FaceSumOp::~FaceSumOp().

◆ linearIn()

virtual void SumOp::linearIn ( FArrayBox arg,
void *  buf,
const Box R,
const Interval comps 
) const
virtual

Reimplemented from LDOperator< FArrayBox >.

Referenced by FaceSumOp::~FaceSumOp().

◆ op()

void SumOp::op ( FArrayBox dest,
const Box RegionFrom,
const Interval Cdest,
const Box RegionTo,
const FArrayBox src,
const Interval Csrc 
) const
virtual

Reimplemented from LDOperator< FArrayBox >.

Referenced by FaceSumOp::~FaceSumOp().

Member Data Documentation

◆ scale

Real SumOp::scale

◆ m_summingDir

Vector<int> SumOp::m_summingDir

The documentation for this class was generated from the following file: