Skip to content

Commit

Permalink
Update gammapkt.cc
Browse files Browse the repository at this point in the history
  • Loading branch information
lukeshingles committed Aug 31, 2024
1 parent fcbd9d3 commit f05a287
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions gammapkt.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1074,9 +1074,7 @@ __host__ __device__ void pellet_gamma_decay(Packet &pkt) {
pkt.last_cross = BOUNDARY_NONE;

// initialise polarisation information
pkt.stokes[0] = 1.;
pkt.stokes[1] = 0.;
pkt.stokes[2] = 0.;
pkt.stokes = {1., 0., 0.};

pkt.pol_dir = cross_prod(pkt.dir, std::array<double, 3>{0., 0., 1.});
if ((dot(pkt.pol_dir, pkt.pol_dir)) < 1.e-8) {
Expand Down

0 comments on commit f05a287

Please sign in to comment.