Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Oct 10, 2024
1 parent 0044f78 commit cd4c989
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/particles/elements/Drift.H
Original file line number Diff line number Diff line change
Expand Up @@ -163,20 +163,20 @@ namespace impactx
}

/** This function returns the linear transport map.
*
*
* @returns 6x6 transport matrix
*/
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE

amrex::Array2D<amrex::ParticleReal, 1, 6, 1, 6>
transport_map(RefPart & AMREX_RESTRICT refpart) {

using namespace amrex::literals; // for _rt and _prt
elements::LinearTransport::Map6x6 R = {};

// length of the current slice
amrex::ParticleReal const slice_ds = m_ds / nslice();

// access reference particle values to find beta*gamma^2
amrex::ParticleReal const pt_ref = refpart.pt;
amrex::ParticleReal const betgam2 = std::pow(pt_ref, 2) - 1.0_prt;
Expand All @@ -192,7 +192,7 @@ namespace impactx
R(5,6) = slice_ds/betgam2;
R(6,6) = 1.0_prt;
return R;

}

};
Expand Down

0 comments on commit cd4c989

Please sign in to comment.