Chombo + EB  3.0
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
 

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::SumOp ( )
SumOp::SumOp ( int  a_summingDir)
SumOp::SumOp ( const Vector< int > &  a_summingDir)

Member Function Documentation

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

Reimplemented from LDOperator< FArrayBox >.

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

Reimplemented from LDOperator< FArrayBox >.

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 >.

Member Data Documentation

Real SumOp::scale
Vector<int> SumOp::m_summingDir

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