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 Feb 14, 2025
1 parent 4e7c288 commit 8fe40cf
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/particles/CovarianceMatrix.H
Original file line number Diff line number Diff line change
Expand Up @@ -40,16 +40,16 @@ namespace impactx
set_beam_current_A (amrex::ParticleReal const beam_current_A)
{
using namespace amrex::literals;

beam_current = beam_current_A;

return *this;
}

/** Get envelope beam current for 2D space charge
*
* @returns beam current in A
*/
*/
amrex::ParticleReal
beam_current_A ()
{
Expand All @@ -66,7 +66,7 @@ namespace impactx
set_covariance_matrix (CovarianceMatrix const covariance_matrix)

Check notice

Code scanning / CodeQL

Large object passed by value Note

This parameter of type
const CovarianceMatrix
is 288 bytes - consider passing a const pointer/reference instead.
{
cm = covariance_matrix;

return *this;
}

Expand Down

0 comments on commit 8fe40cf

Please sign in to comment.