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

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

#include <ReductionOps.H>

Inheritance diagram for SpreadingOp:
Inheritance graph
[legend]

Public Member Functions

 SpreadingOp ()
 
 SpreadingOp (int a_spreadingDir)
 
 SpreadingOp (const Vector< int > &a_spreadingDir)
 
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
 
void applyOp (FArrayBox &dest, const Box &RegionFrom, const Interval &Cdest, const Box &RegionTo, const FArrayBox &src, const Interval &Csrc, Real a_scale) const
 
- Public Member Functions inherited from LDOperator< FArrayBox >
virtual ~LDOperator ()
 
virtual int size (const FArrayBox &arg, const Box &b, const Interval &comps) const
 
virtual void linearOut (const FArrayBox &arg, void *buf, const Box &R, 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_spreadingDir
 

Detailed Description

Class to do spreading operation in the context of CopyTo.

This class will perform a spreading operation of the data in src along the summingDir direction(s), multiplying by the scale, and placing the src values in the corresponding locations in dest.

Constructor & Destructor Documentation

◆ SpreadingOp() [1/3]

SpreadingOp::SpreadingOp ( )

◆ SpreadingOp() [2/3]

SpreadingOp::SpreadingOp ( int  a_spreadingDir)

◆ SpreadingOp() [3/3]

SpreadingOp::SpreadingOp ( const Vector< int > &  a_spreadingDir)

Member Function Documentation

◆ linearIn()

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

Reimplemented from LDOperator< FArrayBox >.

◆ op()

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

Reimplemented from LDOperator< FArrayBox >.

◆ applyOp()

void SpreadingOp::applyOp ( FArrayBox dest,
const Box RegionFrom,
const Interval Cdest,
const Box RegionTo,
const FArrayBox src,
const Interval Csrc,
Real  a_scale 
) const

Member Data Documentation

◆ scale

Real SpreadingOp::scale

◆ m_spreadingDir

Vector<int> SpreadingOp::m_spreadingDir

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