From 9d4caa204ae770a8d5c12741205720639fcd3855 Mon Sep 17 00:00:00 2001 From: Luca Fedeli Date: Fri, 10 Jan 2020 12:32:51 +0100 Subject: fixed bug --- Source/Particles/PhysicalParticleContainer.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'Source/Particles/PhysicalParticleContainer.cpp') diff --git a/Source/Particles/PhysicalParticleContainer.cpp b/Source/Particles/PhysicalParticleContainer.cpp index 94d9bc363..8777ec9b1 100644 --- a/Source/Particles/PhysicalParticleContainer.cpp +++ b/Source/Particles/PhysicalParticleContainer.cpp @@ -1614,10 +1614,9 @@ PhysicalParticleContainer::PushPX(WarpXParIter& pti, #ifdef WARPX_QED - auto t_chi_max = m_shr_p_qs_engine->get_ref_ctrl().chi_part_min; - if(do_classical_radiation_reaction){ if(m_do_qed_quantum_sync){ + const auto t_chi_max = m_shr_p_qs_engine->get_ref_ctrl().chi_part_min; amrex::ParallelFor( pti.numParticles(), [=] AMREX_GPU_DEVICE (long i) { -- cgit v1.2.3