aboutsummaryrefslogtreecommitdiff
path: root/Source/FieldSolver/SpectralSolver/SpectralFieldData.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/FieldSolver/SpectralSolver/SpectralFieldData.cpp')
-rw-r--r--Source/FieldSolver/SpectralSolver/SpectralFieldData.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/Source/FieldSolver/SpectralSolver/SpectralFieldData.cpp b/Source/FieldSolver/SpectralSolver/SpectralFieldData.cpp
index 6d7d18b5f..3926df286 100644
--- a/Source/FieldSolver/SpectralSolver/SpectralFieldData.cpp
+++ b/Source/FieldSolver/SpectralSolver/SpectralFieldData.cpp
@@ -38,7 +38,8 @@ SpectralFieldIndex::SpectralFieldIndex (const bool update_with_rho,
const bool do_multi_J,
const bool dive_cleaning,
const bool divb_cleaning,
- const bool pml)
+ const bool pml,
+ const bool pml_rz)
{
// TODO Use these to allocate rho_old, rho_new, F, and G only when needed
amrex::ignore_unused(update_with_rho);
@@ -73,6 +74,13 @@ SpectralFieldIndex::SpectralFieldIndex (const bool update_with_rho,
Jy_new = c++;
Jz_new = c++;
}
+
+ if (pml_rz)
+ {
+ Er_pml = c++; Et_pml = c++;
+ Br_pml = c++; Bt_pml = c++;
+ }
+
}
else // PML
{