aboutsummaryrefslogtreecommitdiff
path: root/Source/Particles/PhysicalParticleContainer.cpp
diff options
context:
space:
mode:
authorGravatar MaxThevenet <mthevenet@lbl.gov> 2020-01-10 08:15:13 -0800
committerGravatar GitHub <noreply@github.com> 2020-01-10 08:15:13 -0800
commit160d752af70ec454c7b220705378c42e0df9b29a (patch)
tree2e2949a829bed167225d7f0169dbbca28ba9ddbe /Source/Particles/PhysicalParticleContainer.cpp
parenta4284d97b17ff50a3837d99d039aa23511045eae (diff)
parent9d4caa204ae770a8d5c12741205720639fcd3855 (diff)
downloadWarpX-160d752af70ec454c7b220705378c42e0df9b29a.tar.gz
WarpX-160d752af70ec454c7b220705378c42e0df9b29a.tar.zst
WarpX-160d752af70ec454c7b220705378c42e0df9b29a.zip
Merge pull request #608 from lucafedeli88/fix_bug_qed
[mini-PR] fix a segfault bug
Diffstat (limited to 'Source/Particles/PhysicalParticleContainer.cpp')
-rw-r--r--Source/Particles/PhysicalParticleContainer.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/Source/Particles/PhysicalParticleContainer.cpp b/Source/Particles/PhysicalParticleContainer.cpp
index ffe0bb20f..f22f94e9b 100644
--- a/Source/Particles/PhysicalParticleContainer.cpp
+++ b/Source/Particles/PhysicalParticleContainer.cpp
@@ -1616,10 +1616,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) {