chombo-discharge
Public Member Functions | List of all members
IrregAddOp Class Reference

A Copier class for making copying between LevelData<BaseIVFAB<Real>> easier. This is an incrementation operator. More...

#include <CD_IrregAddOp.H>

Inheritance diagram for IrregAddOp:
Inheritance graph
[legend]
Collaboration diagram for IrregAddOp:
Collaboration graph
[legend]

Public Member Functions

 IrregAddOp () noexcept
 Constructor (does nothing)
 
virtual ~IrregAddOp () noexcept
 Destructor (does nothing)
 
virtual void linearIn (BaseIVFAB< Real > &a_data, void *a_buffer, const Box &a_region, const Interval &a_comps) const override
 Linearization function. We linearize the buffer onto arg, but since this is an addition operator we need to add the result. More...
 
virtual void op (BaseIVFAB< Real > &a_dst, const Box &a_regionFrom, const Interval &a_dstVars, const Box &a_regionTo, const BaseIVFAB< Real > &a_src, const Interval &a_srcVars) const override
 Operator function. Increments data with source. More...
 

Detailed Description

A Copier class for making copying between LevelData<BaseIVFAB<Real>> easier. This is an incrementation operator.

Member Function Documentation

◆ linearIn()

void IrregAddOp::linearIn ( BaseIVFAB< Real > &  a_data,
void *  a_buffer,
const Box &  a_region,
const Interval &  a_comps 
) const
overridevirtual

Linearization function. We linearize the buffer onto arg, but since this is an addition operator we need to add the result.

Parameters
[in,out]a_dataData to be incremented with buffer
[in,out]a_bufferData buffer (this is another BaseIVFAB<Real>)
[in]a_regionRegion
[in]a_compsComponents to do.

◆ op()

void IrregAddOp::op ( BaseIVFAB< Real > &  a_dst,
const Box &  a_regionFrom,
const Interval &  a_dstVars,
const Box &  a_regionTo,
const BaseIVFAB< Real > &  a_src,
const Interval &  a_srcVars 
) const
overridevirtual

Operator function. Increments data with source.

Parameters
[in,out]a_dstDestination data.
[in]a_regionFromSource regionw
[in]a_dstVarsDestination variables
[in]a_regionToDestination region
[in]a_srcSource data
[in]a_srcVarsSource variables

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