A Copier class for making copying between BoxLayoutData<EBCellFAB> easier. This increments EBCellFABs when calling copyTo (with the correct Copier).
More...
#include <CD_EBAddOp.H>
|
|
| EBAddOp () |
| | Constructor (does nothing).
|
|
virtual | ~EBAddOp () |
| | Destructor (does nothing).
|
| virtual void | linearIn (EBCellFAB &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.
|
| virtual void | op (EBCellFAB &a_dst, const Box &a_regionFrom, const Interval &a_dstVars, const Box &a_regionTo, const EBCellFAB &a_src, const Interval &a_srcVars) const override |
| | Operator function. Increments data with source.
|
| virtual bool | threadSafe () const override |
| | Report that op() and linearIn() are not thread safe.
|
A Copier class for making copying between BoxLayoutData<EBCellFAB> easier. This increments EBCellFABs when calling copyTo (with the correct Copier).
◆ linearIn()
| void EBAddOp::linearIn |
( |
EBCellFAB & | 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_data | Data to be incremented with buffer |
| [in,out] | a_buffer | Data buffer (this is another EBCellFAB) |
| [in] | a_region | Region |
| [in] | a_comps | Components to do. |
◆ op()
| void EBAddOp::op |
( |
EBCellFAB & | a_dst, |
|
|
const Box & | a_regionFrom, |
|
|
const Interval & | a_dstVars, |
|
|
const Box & | a_regionTo, |
|
|
const EBCellFAB & | a_src, |
|
|
const Interval & | a_srcVars ) const |
|
overridevirtual |
Operator function. Increments data with source.
- Parameters
-
| [in,out] | a_dst | Destination data. |
| [in] | a_regionFrom | Source regionw |
| [in] | a_dstVars | Destination variables |
| [in] | a_regionTo | Destination region |
| [in] | a_src | Source data |
| [in] | a_srcVars | Source variables |
◆ threadSafe()
| bool EBAddOp::threadSafe |
( |
| ) |
const |
|
overridevirtual |
Report that op() and linearIn() are not thread safe.
Both functions increment the destination. Several copies can target the same destination box, and Chombo runs the copies of a copyTo() or exchange() in parallel unless the operator reports that it is not thread safe. Concurrent increments of the same box would lose updates.
- Returns
- false
The documentation for this class was generated from the following files: