chombo-discharge
Loading...
Searching...
No Matches
Source
AmrMesh
CD_PetscAMRCell.H
Go to the documentation of this file.
1
/* chombo-discharge
2
* Copyright © 2026 SINTEF Energy Research.
3
* Please refer to Copyright.txt and LICENSE in the chombo-discharge root directory.
4
*/
5
12
#ifndef CD_PetscAMRCell_H
13
#define CD_PetscAMRCell_H
14
15
#ifdef CH_USE_PETSC
16
17
// Petsc includes
18
#include "petsc.h"
19
20
// Chombo includes
21
#include <SPMD.H>
22
23
// Our includes
24
#include <CD_NamespaceHeader.H>
25
35
class
PetscAMRCell
36
{
37
public
:
41
PetscAMRCell
()
noexcept
;
42
46
~
PetscAMRCell
()
noexcept
;
47
51
PetscAMRCell
(
const
PetscAMRCell
&) =
default
;
52
56
PetscAMRCell
(
PetscAMRCell
&&) =
default
;
57
61
PetscAMRCell
&
62
operator
=(
const
PetscAMRCell
&) =
default
;
63
67
PetscAMRCell
&
68
operator
=(
PetscAMRCell
&&) =
default
;
69
80
void
81
define(
const
PetscInt
a_petscRowPhase0
,
82
const
PetscInt
a_petscRowPhase1
,
83
const
bool
a_isCoveredByFinerGrid
,
84
const
bool
a_isCoarCF
,
85
const
bool
a_isFineCF
,
86
const
bool
a_isGhostCF
,
87
const
bool
a_isDomainBoundaryCell
)
noexcept
;
88
94
void
95
setPetscRow
(
const
int
a_phase
,
const
PetscInt
a_row
)
noexcept
;
96
101
void
102
setCoveredByFinerGrid
(
const
bool
a_coveredByFinerGrid
)
noexcept
;
103
108
void
109
setCoarCF
(
const
bool
a_isCoarCF
)
noexcept
;
110
115
void
116
setFineCF
(
const
bool
a_isFineCF
)
noexcept
;
117
122
void
123
setGhostCF
(
const
bool
a_isGhostCF
)
noexcept
;
124
129
void
130
setDomainBoundaryCell
(
const
bool
a_isDomainBoundaryCell
)
noexcept
;
131
135
PetscInt
136
getPetscRow
(
const
int
a_iphase
)
const
noexcept
;
137
141
bool
142
isCoveredByFinerGrid
()
const
noexcept
;
143
147
bool
148
isCoarCF
()
const
noexcept
;
149
153
bool
154
isFineCF
()
const
noexcept
;
155
159
bool
160
isGhostCF
()
const
noexcept
;
161
165
bool
166
isDomainBoundaryCell
()
const
noexcept
;
167
171
PetscInt
m_petscRows
[2];
172
176
bool
m_isCoveredByFinerGrid
;
177
181
bool
m_isGhostCF
;
182
186
bool
m_isCoarCF
;
187
191
bool
m_isFineCF
;
192
196
bool
m_isDomainBoundaryCell
;
197
};
198
202
constexpr
int
203
linearSize
(
const
PetscAMRCell
&
a_amrCell
);
204
210
void
211
linearIn(
PetscAMRCell
&
a_amrCell
,
const
void
*
const
a_buffer
);
212
218
void
219
linearOut(
void
*
const
a_buffer
,
const
PetscAMRCell
&
a_amrCell
);
220
221
#include <CD_NamespaceFooter.H>
222
223
#endif
224
225
#endif
TracerParticleSolver
Base class for a tracer particle solver. This solver can advance particles in a pre-defined velocity ...
Definition
CD_TracerParticleSolver.H:37
TracerParticleSolver::TracerParticleSolver
TracerParticleSolver()
Default constructor.
Definition
CD_TracerParticleSolverImplem.H:25
Generated by
1.9.8