diff options
author | 2019-10-28 13:53:37 -0700 | |
---|---|---|
committer | 2019-10-28 13:53:37 -0700 | |
commit | 865cd3ebc0c6e86feecafa0839aa6a3990408c0e (patch) | |
tree | 1342545ea7e3db5a55fe11648a69b864ee29c154 /Source/Particles/PhotonParticleContainer.cpp | |
parent | da52bf61ba64aac9a90917dcc6744d8b0a58185d (diff) | |
parent | 2eac8727874e11c3c8163b3d9ed1ec8854717753 (diff) | |
download | WarpX-865cd3ebc0c6e86feecafa0839aa6a3990408c0e.tar.gz WarpX-865cd3ebc0c6e86feecafa0839aa6a3990408c0e.tar.zst WarpX-865cd3ebc0c6e86feecafa0839aa6a3990408c0e.zip |
Merge branch 'dev' into initial_fields
Diffstat (limited to 'Source/Particles/PhotonParticleContainer.cpp')
-rw-r--r-- | Source/Particles/PhotonParticleContainer.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/Source/Particles/PhotonParticleContainer.cpp b/Source/Particles/PhotonParticleContainer.cpp index 3c70a957f..612da01ca 100644 --- a/Source/Particles/PhotonParticleContainer.cpp +++ b/Source/Particles/PhotonParticleContainer.cpp @@ -31,7 +31,7 @@ PhotonParticleContainer::PhotonParticleContainer (AmrCore* amr_core, int ispecie pp.query("do_qed_breit_wheeler", do_qed_breit_wheeler); //Check for processes which do not make sense for photons - bool test_quantum_sync; + bool test_quantum_sync = false; pp.query("do_qed_quantum_sync", test_quantum_sync); AMREX_ALWAYS_ASSERT_WITH_MESSAGE( test_quantum_sync == 0, @@ -45,9 +45,8 @@ void PhotonParticleContainer::InitData() { AddParticles(0); // Note - add on level 0 - if (maxLevel() > 0) { - Redistribute(); // We then redistribute - } + Redistribute(); // We then redistribute + } void @@ -74,7 +73,7 @@ PhotonParticleContainer::PushPX(WarpXParIter& pti, const ParticleReal* const AMREX_RESTRICT By = attribs[PIdx::By].dataPtr(); const ParticleReal* const AMREX_RESTRICT Bz = attribs[PIdx::Bz].dataPtr(); - if (WarpX::do_boosted_frame_diagnostic && do_boosted_frame_diags) + if (WarpX::do_back_transformed_diagnostics && do_back_transformed_diagnostics) { copy_attribs(pti, x, y, z); } |