diff options
author | 2019-05-21 10:37:56 -0700 | |
---|---|---|
committer | 2019-05-21 10:37:56 -0700 | |
commit | 78dd050f9d75fafd9b7333ac173df5ed6667a4f5 (patch) | |
tree | f3f445b8c29963fe995abc98f2141aafc5e2e557 /Source/FieldSolver/WarpXPushFieldsEM.cpp | |
parent | 7195cc8eecf81896f3f2cd57eaf6161dd6834f5c (diff) | |
parent | feb361a531a3159b86796920b4d5db14582574e0 (diff) | |
download | WarpX-78dd050f9d75fafd9b7333ac173df5ed6667a4f5.tar.gz WarpX-78dd050f9d75fafd9b7333ac173df5ed6667a4f5.tar.zst WarpX-78dd050f9d75fafd9b7333ac173df5ed6667a4f5.zip |
Merge branch 'dev' into RZgeometry
Diffstat (limited to 'Source/FieldSolver/WarpXPushFieldsEM.cpp')
-rw-r--r-- | Source/FieldSolver/WarpXPushFieldsEM.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/Source/FieldSolver/WarpXPushFieldsEM.cpp b/Source/FieldSolver/WarpXPushFieldsEM.cpp index 471e2fcba..db71a07b1 100644 --- a/Source/FieldSolver/WarpXPushFieldsEM.cpp +++ b/Source/FieldSolver/WarpXPushFieldsEM.cpp @@ -65,6 +65,10 @@ WarpX::EvolveB (int lev, PatchType patch_type, amrex::Real dt) MultiFab* cost = costs[lev].get(); const IntVect& rr = (lev > 0) ? refRatio(lev-1) : IntVect::TheUnitVector(); + // xmin is only used by the picsar kernel with cylindrical geometry, + // in which case it is actually rmin. + const Real xmin = Geom(0).ProbLo(0); + // Loop through the grids, and over the tiles within each grid #ifdef _OPENMP #pragma omp parallel if (Gpu::notInLaunchRegion()) @@ -77,10 +81,6 @@ WarpX::EvolveB (int lev, PatchType patch_type, amrex::Real dt) const Box& tby = mfi.tilebox(By_nodal_flag); const Box& tbz = mfi.tilebox(Bz_nodal_flag); - // xmin is only used by the picsar kernel with cylindrical geometry, - // in which case it is actually rmin. - const Real xmin = mfi.tilebox().smallEnd(0)*dx[0]; - if (do_nodal) { auto const& Bxfab = Bx->array(mfi); auto const& Byfab = By->array(mfi); @@ -225,6 +225,10 @@ WarpX::EvolveE (int lev, PatchType patch_type, amrex::Real dt) MultiFab* cost = costs[lev].get(); const IntVect& rr = (lev > 0) ? refRatio(lev-1) : IntVect::TheUnitVector(); + // xmin is only used by the picsar kernel with cylindrical geometry, + // in which case it is actually rmin. + const Real xmin = Geom(0).ProbLo(0); + // Loop through the grids, and over the tiles within each grid #ifdef _OPENMP #pragma omp parallel if (Gpu::notInLaunchRegion()) @@ -237,10 +241,6 @@ WarpX::EvolveE (int lev, PatchType patch_type, amrex::Real dt) const Box& tey = mfi.tilebox(Ey_nodal_flag); const Box& tez = mfi.tilebox(Ez_nodal_flag); - // xmin is only used by the picsar kernel with cylindrical geometry, - // in which case it is actually rmin. - const Real xmin = mfi.tilebox().smallEnd(0)*dx[0]; - if (do_nodal) { auto const& Exfab = Ex->array(mfi); auto const& Eyfab = Ey->array(mfi); |