aboutsummaryrefslogtreecommitdiff
path: root/Source/Particles/PhotonParticleContainer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/Particles/PhotonParticleContainer.cpp')
-rw-r--r--Source/Particles/PhotonParticleContainer.cpp9
1 files changed, 1 insertions, 8 deletions
diff --git a/Source/Particles/PhotonParticleContainer.cpp b/Source/Particles/PhotonParticleContainer.cpp
index cd23a238e..29a835735 100644
--- a/Source/Particles/PhotonParticleContainer.cpp
+++ b/Source/Particles/PhotonParticleContainer.cpp
@@ -136,14 +136,7 @@ PhotonParticleContainer::PushPX (WarpXParIter& pti,
const auto getExternalEB = GetExternalEBField(pti, offset);
// Lower corner of tile box physical domain (take into account Galilean shift)
- amrex::Real cur_time = WarpX::GetInstance().gett_new(lev);
- const auto& time_of_last_gal_shift = WarpX::GetInstance().time_of_last_gal_shift;
- amrex::Real time_shift = (cur_time - time_of_last_gal_shift);
- amrex::Array<amrex::Real,3> galilean_shift = {
- m_v_galilean[0]*time_shift,
- m_v_galilean[1]*time_shift,
- m_v_galilean[2]*time_shift };
- const std::array<Real, 3>& xyzmin = WarpX::LowerCorner(box, galilean_shift, gather_lev);
+ const std::array<amrex::Real, 3>& xyzmin = WarpX::LowerCorner(box, gather_lev, 0._rt);
const Dim3 lo = lbound(box);