Skip to content

Commit 1f8e759

Browse files
committed
try removing unused temporary variables
1 parent e205462 commit 1f8e759

2 files changed

Lines changed: 1 addition & 7 deletions

File tree

Source/Particles/PhotonParticleContainer.cpp

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -216,12 +216,7 @@ PhotonParticleContainer::PushPX (WarpXParIter& pti,
216216
}
217217

218218
#ifdef WARPX_QED
219-
[[maybe_unused]] const auto& evolve_opt_tmp = evolve_opt;
220-
[[maybe_unused]] auto *p_optical_depth_BW_tmp = p_optical_depth_BW;
221-
[[maybe_unused]] auto *ux_tmp = ux; // for nvhpc
222-
[[maybe_unused]] auto *uy_tmp = uy;
223-
[[maybe_unused]] auto *uz_tmp = uz;
224-
[[maybe_unused]] auto dt_tmp = dt;
219+
[[maybe_unused]] const auto& evolve_opt_tmp = evolve_opt; // workaround for nvcc
225220
if constexpr (qed_control == has_qed) {
226221
evolve_opt(ux[i], uy[i], uz[i], Exp, Eyp, Ezp, Bxp, Byp, Bzp,
227222
dt, p_optical_depth_BW[i]);

Source/Particles/PhysicalParticleContainer.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1552,7 +1552,6 @@ PhysicalParticleContainer::PushPX (WarpXParIter& pti,
15521552
}
15531553

15541554
#ifdef WARPX_QED
1555-
[[maybe_unused]] auto foo_local_has_quantum_sync = local_has_quantum_sync;
15561555
[[maybe_unused]] auto *foo_podq = p_optical_depth_QSR;
15571556
[[maybe_unused]] const auto& foo_evolve_opt = evolve_opt; // have to do all these for nvcc
15581557
if constexpr (qed_control == has_qed) {

0 commit comments

Comments
 (0)