diff options
Diffstat (limited to 'Source/BoundaryConditions/PML_RZ.cpp')
-rw-r--r-- | Source/BoundaryConditions/PML_RZ.cpp | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/Source/BoundaryConditions/PML_RZ.cpp b/Source/BoundaryConditions/PML_RZ.cpp index fc468aced..98ed12e7d 100644 --- a/Source/BoundaryConditions/PML_RZ.cpp +++ b/Source/BoundaryConditions/PML_RZ.cpp @@ -89,12 +89,7 @@ PML_RZ::ApplyDamping (amrex::MultiFab* Et_fp, amrex::MultiFab* Ez_fp, // Set tilebox to only include the upper radial cells const int nr_damp = m_ncell; - int nr_damp_min; - if (m_do_pml_in_domain) { - nr_damp_min = nr_domain - nr_damp; - } else { - nr_damp_min = nr_domain; - } + const int nr_damp_min = (m_do_pml_in_domain)?(nr_domain - nr_damp):(nr_domain); tilebox.setSmall(0, nr_damp_min + 1); amrex::ParallelFor( tilebox, Et_fp->nComp(), |