chombo-discharge
CD_EBAddOp.H
Go to the documentation of this file.
1 /* chombo-discharge
2  * Copyright © 2021 SINTEF Energy Research.
3  * Please refer to Copyright.txt and LICENSE in the chombo-discharge root directory.
4  */
5 
12 #ifndef CD_EBAddOp_H
13 #define CD_EBAddOp_H
14 
15 // Chombo includes
16 #include <BoxLayoutData.H>
17 #include <EBCellFAB.H>
18 
19 // Our includes
20 #include <CD_NamespaceHeader.H>
21 
25 class EBAddOp : public LDOperator<EBCellFAB>
26 {
27 public:
31  EBAddOp();
32 
36  virtual ~EBAddOp();
37 
45  virtual void
46  linearIn(EBCellFAB& a_data, void* a_buffer, const Box& a_region, const Interval& a_comps) const override;
47 
57  virtual void
58  op(EBCellFAB& a_dst,
59  const Box& a_regionFrom,
60  const Interval& a_dstVars,
61  const Box& a_regionTo,
62  const EBCellFAB& a_src,
63  const Interval& a_srcVars) const override;
64 };
65 
66 #include <CD_NamespaceFooter.H>
67 
68 #endif
A Copier class for making copying between BoxLayoutData<EBCellFAB> easier. This increments EBCellFABs...
Definition: CD_EBAddOp.H:26
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.
Definition: CD_EBAddOp.cpp:49
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 n...
Definition: CD_EBAddOp.cpp:30
EBAddOp()
Constructor (does nothing)
Definition: CD_EBAddOp.cpp:19
virtual ~EBAddOp()
Destructor (does nothing)
Definition: CD_EBAddOp.cpp:24