diff options
author | 2019-10-15 16:55:09 -0700 | |
---|---|---|
committer | 2019-10-15 16:55:09 -0700 | |
commit | a8e92c5b1098957368561609c0d9e08dd6ee8b94 (patch) | |
tree | 5941461cf0bc382b629e3ff49fa52250f14586e5 /Source/Particles/PhysicalParticleContainer.cpp | |
parent | 545c060389ecd37cd446c16fcb4cc05c0aaeb795 (diff) | |
download | WarpX-a8e92c5b1098957368561609c0d9e08dd6ee8b94.tar.gz WarpX-a8e92c5b1098957368561609c0d9e08dd6ee8b94.tar.zst WarpX-a8e92c5b1098957368561609c0d9e08dd6ee8b94.zip |
Add E_external
Diffstat (limited to 'Source/Particles/PhysicalParticleContainer.cpp')
-rw-r--r-- | Source/Particles/PhysicalParticleContainer.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/Source/Particles/PhysicalParticleContainer.cpp b/Source/Particles/PhysicalParticleContainer.cpp index 82aacbda8..7c8c4024e 100644 --- a/Source/Particles/PhysicalParticleContainer.cpp +++ b/Source/Particles/PhysicalParticleContainer.cpp @@ -1130,9 +1130,9 @@ PhysicalParticleContainer::Evolve (int lev, exfab, eyfab, ezfab, bxfab, byfab, bzfab); } - Exp.assign(np,0.0); - Eyp.assign(np,0.0); - Ezp.assign(np,0.0); + Exp.assign(np,WarpX::E_external[0]); + Eyp.assign(np,WarpX::E_external[1]); + Ezp.assign(np,WarpX::E_external[2]); Bxp.assign(np,WarpX::B_external[0]); Byp.assign(np,WarpX::B_external[1]); Bzp.assign(np,WarpX::B_external[2]); @@ -1666,9 +1666,9 @@ PhysicalParticleContainer::PushP (int lev, Real dt, const FArrayBox& byfab = By[pti]; const FArrayBox& bzfab = Bz[pti]; - Exp.assign(np,0.0); - Eyp.assign(np,0.0); - Ezp.assign(np,0.0); + Exp.assign(np,WarpX::E_external[0]); + Eyp.assign(np,WarpX::E_external[1]); + Ezp.assign(np,WarpX::E_external[2]); Bxp.assign(np,WarpX::B_external[0]); Byp.assign(np,WarpX::B_external[1]); Bzp.assign(np,WarpX::B_external[2]); |