Skip to content

Commit

Permalink
Update EmittanceInvariants.cpp
Browse files Browse the repository at this point in the history
Update default cubic roots alg.
  • Loading branch information
cemitch99 authored Sep 16, 2024
1 parent f33bd59 commit f22eaae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/particles/diagnostics/EmittanceInvariants.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ namespace impactx::diagnostics
// Caution: The order of e1,e2,e3 should be consistent with the
// order ex,ey,et in the limit of uncoupled transport.
// The order below is important and has been checked.
roots = CubicRootsAlg(a,b,c,d);
roots = CubicRootsTrig(a,b,c,d);
amrex::ParticleReal e1 = sqrt(std::get<1>(roots));
amrex::ParticleReal e2 = sqrt(std::get<2>(roots));
amrex::ParticleReal e3 = sqrt(std::get<0>(roots));
Expand Down

0 comments on commit f22eaae

Please sign in to comment.