1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
/* Copyright 2019 Remi Lehe
*
* This file is part of WarpX.
*
* License: BSD-3-Clause-LBNL
*/
#ifndef WARPX_PML_COMPONENT_H_
#define WARPX_PML_COMPONENT_H_
/* In WarpX, the split fields of the PML (e.g. Eyx, Eyz) are stored as
* components of a MultiFab (e.g. component 0 and 1 of the MultiFab for Ey)
* The correspondance between the component index (0,1) and its meaning
* (yx, yz, etc.) is defined in the present file */
struct PMLComp {
enum { xy=0, xz=1, xx=2,
yz=0, yx=1, yy=2,
zx=0, zy=1, zz=2,
x=0, y=1, z=2 }; // Used for the PML components of F
};
#endif
|