diff options
author | 2019-09-13 14:50:09 -0700 | |
---|---|---|
committer | 2019-09-13 14:50:09 -0700 | |
commit | 6232f62665f4b5897ff6e779824e2ea4565054b8 (patch) | |
tree | 1e07e9e39f0287c16a37bca0e9c26f5ead863709 /Source/Laser/LaserParticleContainer.cpp | |
parent | d5031c61df77b5c6490b98b3fd0346188b10752c (diff) | |
parent | 1e0126346ff5cc46e01e8bb006a1677b71776afb (diff) | |
download | WarpX-6232f62665f4b5897ff6e779824e2ea4565054b8.tar.gz WarpX-6232f62665f4b5897ff6e779824e2ea4565054b8.tar.zst WarpX-6232f62665f4b5897ff6e779824e2ea4565054b8.zip |
Merge pull request #351 from dpgrote/remove_giv_array
Removed m_giv which was being set but not used.
Diffstat (limited to 'Source/Laser/LaserParticleContainer.cpp')
-rw-r--r-- | Source/Laser/LaserParticleContainer.cpp | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/Source/Laser/LaserParticleContainer.cpp b/Source/Laser/LaserParticleContainer.cpp index 15e82e940..2adf751e1 100644 --- a/Source/Laser/LaserParticleContainer.cpp +++ b/Source/Laser/LaserParticleContainer.cpp @@ -444,8 +444,6 @@ LaserParticleContainer::Evolve (int lev, // For now, laser particles do not take the current buffers into account const long np_current = np; - m_giv[thread_num].resize(np); - plane_Xp.resize(np); plane_Yp.resize(np); amplitude_E.resize(np); @@ -670,7 +668,6 @@ LaserParticleContainer::update_laser_particle( Real * const AMREX_RESTRICT xp = m_xp[thread_num].dataPtr(); Real * const AMREX_RESTRICT yp = m_yp[thread_num].dataPtr(); Real * const AMREX_RESTRICT zp = m_zp[thread_num].dataPtr(); - Real * const AMREX_RESTRICT giv = m_giv[thread_num].dataPtr(); Real tmp_p_X_0 = p_X[0]; Real tmp_p_X_1 = p_X[1]; Real tmp_p_X_2 = p_X[2]; @@ -700,7 +697,6 @@ LaserParticleContainer::update_laser_particle( } // Get the corresponding momenta const Real gamma = gamma_boost/std::sqrt(1. - v_over_c*v_over_c); - giv[i] = 1./gamma; puxp[i] = gamma * vx; puyp[i] = gamma * vy; puzp[i] = gamma * vz; |