chombo-discharge
Loading...
Searching...
No Matches
Source
AmrMesh
CD_PetscAMRCell.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_PETSCAMRCELL_H
14
#define CD_PETSCAMRCELL_H
15
16
#ifdef CH_USE_PETSC
17
18
// Petsc includes
19
#include "petsc.h"
20
21
// Chombo includes
22
#include <SPMD.H>
23
24
// Our includes
25
#include <CD_NamespaceHeader.H>
26
36
class
PetscAMRCell
37
{
38
public
:
42
PetscAMRCell
()
noexcept
;
43
47
~
PetscAMRCell
()
noexcept
;
48
52
PetscAMRCell
(
const
PetscAMRCell
&) =
default
;
53
57
PetscAMRCell
(
PetscAMRCell
&&) =
default
;
58
62
PetscAMRCell
&
63
operator
=(
const
PetscAMRCell
&) =
default
;
64
68
PetscAMRCell
&
69
operator
=(
PetscAMRCell
&&) =
default
;
70
81
void
82
define(
const
PetscInt
a_petscRowPhase0
,
83
const
PetscInt
a_petscRowPhase1
,
84
const
bool
a_isCoveredByFinerGrid
,
85
const
bool
a_isCoarCF
,
86
const
bool
a_isFineCF
,
87
const
bool
a_isGhostCF
,
88
const
bool
a_isDomainBoundaryCell
)
noexcept
;
89
95
void
96
setPetscRow
(
const
int
a_phase
,
const
PetscInt
a_row
)
noexcept
;
97
102
void
103
setCoveredByFinerGrid
(
const
bool
a_coveredByFinerGrid
)
noexcept
;
104
109
void
110
setCoarCF
(
const
bool
a_isCoarCF
)
noexcept
;
111
116
void
117
setFineCF
(
const
bool
a_isFineCF
)
noexcept
;
118
123
void
124
setGhostCF
(
const
bool
a_isGhostCF
)
noexcept
;
125
130
void
131
setDomainBoundaryCell
(
const
bool
a_isDomainBoundaryCell
)
noexcept
;
132
136
PetscInt
137
getPetscRow
(
const
int
a_iphase
)
const
noexcept
;
138
142
bool
143
isCoveredByFinerGrid
()
const
noexcept
;
144
148
bool
149
isCoarCF
()
const
noexcept
;
150
154
bool
155
isFineCF
()
const
noexcept
;
156
160
bool
161
isGhostCF
()
const
noexcept
;
162
166
bool
167
isDomainBoundaryCell
()
const
noexcept
;
168
172
PetscInt
m_petscRows
[2];
173
177
bool
m_isCoveredByFinerGrid
;
178
182
bool
m_isGhostCF
;
183
187
bool
m_isCoarCF
;
188
192
bool
m_isFineCF
;
193
197
bool
m_isDomainBoundaryCell
;
198
};
199
203
constexpr
int
204
linearSize
(
const
PetscAMRCell
&
a_amrCell
);
205
211
void
212
linearIn(
PetscAMRCell
&
a_amrCell
,
const
void
*
const
a_buffer
);
213
219
void
220
linearOut(
void
*
const
a_buffer
,
const
PetscAMRCell
&
a_amrCell
);
221
222
#include <CD_NamespaceFooter.H>
223
224
#endif
225
226
#endif
TracerParticleSolver
Base class for a tracer particle solver. This solver can advance particles in a pre-defined velocity ...
Definition
CD_TracerParticleSolver.H:38
TracerParticleSolver::TracerParticleSolver
TracerParticleSolver()
Default constructor.
Definition
CD_TracerParticleSolverImplem.H:26
Generated by
1.9.8