chombo-discharge
Loading...
Searching...
No Matches
CD_EBAddOp.H
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2021-2026 SINTEF Energy Research
3 *
4 * SPDX-License-Identifier: GPL-3.0-or-later
5 */
6
13#ifndef CD_EBADDOP_H
14#define CD_EBADDOP_H
15
16// Chombo includes
17#include <BoxLayoutData.H>
18#include <EBCellFAB.H>
19
20// Our includes
21#include <CD_NamespaceHeader.H>
22
27class EBAddOp : public LDOperator<EBCellFAB>
28{
29public:
33 EBAddOp();
34
38 virtual ~EBAddOp();
39
48 virtual void
49 linearIn(EBCellFAB& a_data, void* a_buffer, const Box& a_region, const Interval& a_comps) const override;
50
60 virtual void
61 op(EBCellFAB& a_dst,
62 const Box& a_regionFrom,
63 const Interval& a_dstVars,
64 const Box& a_regionTo,
65 const EBCellFAB& a_src,
66 const Interval& a_srcVars) const override;
67};
68
69#include <CD_NamespaceFooter.H>
70
71#endif
A Copier class for making copying between BoxLayoutData<EBCellFAB> easier. This increments EBCellFABs...
Definition CD_EBAddOp.H:28
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:50
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:31
EBAddOp()
Constructor (does nothing)
Definition CD_EBAddOp.cpp:20
virtual ~EBAddOp()
Destructor (does nothing)
Definition CD_EBAddOp.cpp:25