aboutsummaryrefslogtreecommitdiff
path: root/Source
diff options
context:
space:
mode:
Diffstat (limited to 'Source')
-rw-r--r--Source/WarpXComm.cpp20
-rw-r--r--Source/WarpXPML.cpp20
2 files changed, 16 insertions, 24 deletions
diff --git a/Source/WarpXComm.cpp b/Source/WarpXComm.cpp
index 32b9e80f5..69a57d2ac 100644
--- a/Source/WarpXComm.cpp
+++ b/Source/WarpXComm.cpp
@@ -257,9 +257,8 @@ WarpX::FillBoundaryE (int lev, PatchType patch_type)
}
const auto& period = Geom(lev).periodicity();
- (*Efield_fp[lev][0]).FillBoundary(period);
- (*Efield_fp[lev][1]).FillBoundary(period);
- (*Efield_fp[lev][2]).FillBoundary(period);
+ Vector<MultiFab*> mf{Efield_fp[lev][0].get(),Efield_fp[lev][1].get(),Efield_fp[lev][2].get()};
+ amrex::FillBoundary(mf, period);
}
else if (patch_type == PatchType::coarse)
{
@@ -273,9 +272,8 @@ WarpX::FillBoundaryE (int lev, PatchType patch_type)
}
const auto& cperiod = Geom(lev-1).periodicity();
- (*Efield_cp[lev][0]).FillBoundary(cperiod);
- (*Efield_cp[lev][1]).FillBoundary(cperiod);
- (*Efield_cp[lev][2]).FillBoundary(cperiod);
+ Vector<MultiFab*> mf{Efield_cp[lev][0].get(),Efield_cp[lev][1].get(),Efield_cp[lev][2].get()};
+ amrex::FillBoundary(mf, cperiod);
}
}
@@ -300,9 +298,8 @@ WarpX::FillBoundaryB (int lev, PatchType patch_type)
pml[lev]->FillBoundaryB(patch_type);
}
const auto& period = Geom(lev).periodicity();
- (*Bfield_fp[lev][0]).FillBoundary(period);
- (*Bfield_fp[lev][1]).FillBoundary(period);
- (*Bfield_fp[lev][2]).FillBoundary(period);
+ Vector<MultiFab*> mf{Bfield_fp[lev][0].get(),Bfield_fp[lev][1].get(),Bfield_fp[lev][2].get()};
+ amrex::FillBoundary(mf, period);
}
else if (patch_type == PatchType::coarse)
{
@@ -315,9 +312,8 @@ WarpX::FillBoundaryB (int lev, PatchType patch_type)
pml[lev]->FillBoundaryB(patch_type);
}
const auto& cperiod = Geom(lev-1).periodicity();
- (*Bfield_cp[lev][0]).FillBoundary(cperiod);
- (*Bfield_cp[lev][1]).FillBoundary(cperiod);
- (*Bfield_cp[lev][2]).FillBoundary(cperiod);
+ Vector<MultiFab*> mf{Bfield_cp[lev][0].get(),Bfield_cp[lev][1].get(),Bfield_cp[lev][2].get()};
+ amrex::FillBoundary(mf, cperiod);
}
}
diff --git a/Source/WarpXPML.cpp b/Source/WarpXPML.cpp
index 1268cc592..b07d4164d 100644
--- a/Source/WarpXPML.cpp
+++ b/Source/WarpXPML.cpp
@@ -649,16 +649,14 @@ PML::FillBoundaryE (PatchType patch_type)
if (patch_type == PatchType::fine && pml_E_fp[0] && pml_E_fp[0]->nGrowVect().max() > 0)
{
const auto& period = m_geom->periodicity();
- pml_E_fp[0]->FillBoundary(period);
- pml_E_fp[1]->FillBoundary(period);
- pml_E_fp[2]->FillBoundary(period);
+ Vector<MultiFab*> mf{pml_E_fp[0].get(),pml_E_fp[1].get(),pml_E_fp[2].get()};
+ amrex::FillBoundary(mf, period);
}
else if (patch_type == PatchType::coarse && pml_E_cp[0] && pml_E_cp[0]->nGrowVect().max() > 0)
{
const auto& period = m_cgeom->periodicity();
- pml_E_cp[0]->FillBoundary(period);
- pml_E_cp[1]->FillBoundary(period);
- pml_E_cp[2]->FillBoundary(period);
+ Vector<MultiFab*> mf{pml_E_cp[0].get(),pml_E_cp[1].get(),pml_E_cp[2].get()};
+ amrex::FillBoundary(mf, period);
}
}
@@ -675,16 +673,14 @@ PML::FillBoundaryB (PatchType patch_type)
if (patch_type == PatchType::fine && pml_B_fp[0])
{
const auto& period = m_geom->periodicity();
- pml_B_fp[0]->FillBoundary(period);
- pml_B_fp[1]->FillBoundary(period);
- pml_B_fp[2]->FillBoundary(period);
+ Vector<MultiFab*> mf{pml_B_fp[0].get(),pml_B_fp[1].get(),pml_B_fp[2].get()};
+ amrex::FillBoundary(mf, period);
}
else if (patch_type == PatchType::coarse && pml_B_cp[0])
{
const auto& period = m_cgeom->periodicity();
- pml_B_cp[0]->FillBoundary(period);
- pml_B_cp[1]->FillBoundary(period);
- pml_B_cp[2]->FillBoundary(period);
+ Vector<MultiFab*> mf{pml_B_cp[0].get(),pml_B_cp[1].get(),pml_B_cp[2].get()};
+ amrex::FillBoundary(mf, period);
}
}