diff options
author | 2019-12-12 13:00:02 -0800 | |
---|---|---|
committer | 2019-12-12 13:00:02 -0800 | |
commit | f225e540585be9fdde0f0520215f5f01a5efe38d (patch) | |
tree | 335787bfbeb5e56af069603d4d630ea761cda9bb /Source/WarpX.cpp | |
parent | c93e86954204542a73d978a41d0bda107dd7be54 (diff) | |
download | WarpX-f225e540585be9fdde0f0520215f5f01a5efe38d.tar.gz WarpX-f225e540585be9fdde0f0520215f5f01a5efe38d.tar.zst WarpX-f225e540585be9fdde0f0520215f5f01a5efe38d.zip |
Added Python wrapper for the PML fields
Diffstat (limited to 'Source/WarpX.cpp')
-rw-r--r-- | Source/WarpX.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/Source/WarpX.cpp b/Source/WarpX.cpp index d94e35f61..c1eda30ba 100644 --- a/Source/WarpX.cpp +++ b/Source/WarpX.cpp @@ -1251,6 +1251,17 @@ WarpX::ComputeDivE (MultiFab& divE, int dcomp, } } +PML* +WarpX::GetPML (int lev) +{ + if (do_pml) { + // This should check if pml was initialized + return pml[lev].get(); + } else { + return nullptr; + } +} + void WarpX::BuildBufferMasks () { |