chombo-discharge
Loading...
Searching...
No Matches
CD_IrregAddOp.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_IRREGADDOP_H
14#define CD_IRREGADDOP_H
15
16// Chombo includes
17#include <BoxLayoutData.H>
18#include <BaseIVFAB.H>
19
20// Our includes
21#include <CD_NamespaceHeader.H>
22
26class IrregAddOp : public LDOperator<BaseIVFAB<Real>>
27{
28public:
32 IrregAddOp() noexcept;
33
37 virtual ~IrregAddOp() noexcept;
38
46 virtual void
47 linearIn(BaseIVFAB<Real>& a_data, void* a_buffer, const Box& a_region, const Interval& a_comps) const override;
48
58 virtual void
60 const Box& a_regionFrom,
61 const Interval& a_dstVars,
62 const Box& a_regionTo,
64 const Interval& a_srcVars) const override;
65};
66
67#include <CD_NamespaceFooter.H>
68
69#endif
A Copier class for making copying between LevelData<BaseIVFAB<Real>> easier. This is an incrementatio...
Definition CD_IrregAddOp.H:27
IrregAddOp() noexcept
Constructor (does nothing)
Definition CD_IrregAddOp.cpp:21
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.
Definition CD_IrregAddOp.cpp:57
virtual ~IrregAddOp() noexcept
Destructor (does nothing)
Definition CD_IrregAddOp.cpp:26
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 n...
Definition CD_IrregAddOp.cpp:32
Base class for a tracer particle solver. This solver can advance particles in a pre-defined velocity ...
Definition CD_TracerParticleSolver.H:38