diff options
author | 2019-02-01 18:16:25 -0800 | |
---|---|---|
committer | 2019-02-01 18:16:25 -0800 | |
commit | b5057a44cd8dba90960df04a923da27171593322 (patch) | |
tree | 659e22ef1813953bdf1d3d7811af7760287f2332 /Source/PhysicalParticleContainer.cpp | |
parent | 6d68373fb9a4cf17c5a80ae5b4330118f210c619 (diff) | |
download | WarpX-b5057a44cd8dba90960df04a923da27171593322.tar.gz WarpX-b5057a44cd8dba90960df04a923da27171593322.tar.zst WarpX-b5057a44cd8dba90960df04a923da27171593322.zip |
RZ: setup theta for particles
Diffstat (limited to 'Source/PhysicalParticleContainer.cpp')
-rw-r--r-- | Source/PhysicalParticleContainer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/PhysicalParticleContainer.cpp b/Source/PhysicalParticleContainer.cpp index a21285a17..564724f49 100644 --- a/Source/PhysicalParticleContainer.cpp +++ b/Source/PhysicalParticleContainer.cpp @@ -155,7 +155,7 @@ PhysicalParticleContainer::AddGaussianBeam(Real x_m, Real y_m, Real z_m, std::array<Real, 3> u; Real weight; for (long i = 0; i < npart; ++i) { -#if ( AMREX_SPACEDIM == 3 ) +#if ( AMREX_SPACEDIM == 3 | WARPX_RZ) weight = q_tot/npart/charge; Real x = distx(mt); Real y = disty(mt); |