Skip to content

Commit

Permalink
Distributions: non-private members (#737)
Browse files Browse the repository at this point in the history
Distributions that are simple struct members, do not hide the
properties. This makes access and manipulation from Python
bindings easier and is needed to quickly read the properties
for covariance matrix calculations.
  • Loading branch information
ax3l authored Oct 11, 2024
1 parent fdd8d8b commit 23b2808
Show file tree
Hide file tree
Showing 8 changed files with 5 additions and 11 deletions.
1 change: 0 additions & 1 deletion src/particles/distribution/Gaussian.H
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,6 @@ namespace impactx::distribution
pt = a2;
}

private:
amrex::ParticleReal m_lambdaX, m_lambdaY, m_lambdaT; //! related position axis intercepts (length) of the phase space ellipse
amrex::ParticleReal m_lambdaPx, m_lambdaPy, m_lambdaPt; //! related momentum axis intercepts of the phase space ellipse
amrex::ParticleReal m_muxpx, m_muypy, m_mutpt; //! correlation length-momentum
Expand Down
1 change: 0 additions & 1 deletion src/particles/distribution/KVdist.H
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,6 @@ namespace impactx::distribution
pt = a2;
}

private:
amrex::ParticleReal m_lambdaX, m_lambdaY, m_lambdaT; //! related position axis intercepts (length) of the phase space ellipse
amrex::ParticleReal m_lambdaPx, m_lambdaPy, m_lambdaPt; //! related momentum axis intercepts of the phase space ellipse
amrex::ParticleReal m_muxpx, m_muypy, m_mutpt; //! correlation length-momentum
Expand Down
1 change: 0 additions & 1 deletion src/particles/distribution/Kurth4D.H
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,6 @@ namespace impactx::distribution
pt = a2;
}

private:
amrex::ParticleReal m_lambdaX, m_lambdaY, m_lambdaT; //! related position axis intercepts (length) of the phase space ellipse
amrex::ParticleReal m_lambdaPx, m_lambdaPy, m_lambdaPt; //! related momentum axis intercepts of the phase space ellipse
amrex::ParticleReal m_muxpx, m_muypy, m_mutpt; //! correlation length-momentum
Expand Down
1 change: 0 additions & 1 deletion src/particles/distribution/Kurth6D.H
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,6 @@ namespace impactx::distribution
pt = a2;
}

private:
amrex::ParticleReal m_lambdaX, m_lambdaY, m_lambdaT; //! related position axis intercepts (length) of the phase space ellipse
amrex::ParticleReal m_lambdaPx, m_lambdaPy, m_lambdaPt; //! related momentum axis intercepts of the phase space ellipse
amrex::ParticleReal m_muxpx, m_muypy, m_mutpt; //! correlation length-momentum
Expand Down
1 change: 0 additions & 1 deletion src/particles/distribution/Semigaussian.H
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,6 @@ namespace impactx::distribution
pt = a2;
}

private:
amrex::ParticleReal m_lambdaX, m_lambdaY, m_lambdaT; //! related position axis intercepts (length) of the phase space ellipse
amrex::ParticleReal m_lambdaPx, m_lambdaPy, m_lambdaPt; //! related momentum axis intercepts of the phase space ellipse
amrex::ParticleReal m_muxpx, m_muypy, m_mutpt; //! correlation length-momentum
Expand Down
2 changes: 1 addition & 1 deletion src/particles/distribution/Thermal.H
Original file line number Diff line number Diff line change
Expand Up @@ -420,7 +420,6 @@ namespace distribution
pt = -pz * m_bg;
}

private:
amrex::ParticleReal m_k; //! linear focusing strength (1/meters)
amrex::ParticleReal m_T1, m_T2; //! temperature of each particle population
amrex::ParticleReal m_normalize, m_normalize_halo; //! normalization constant of first/second population
Expand All @@ -431,6 +430,7 @@ namespace distribution
amrex::ParticleReal m_bg; ///< reference value of relativistic beta*gamma
amrex::ParticleReal m_w; ///< weight of the secondary (halo) population

private:
// radial profile data
amrex::ParticleReal const * m_cdf1 = nullptr; //! non-owning pointer to device core CDF
amrex::ParticleReal const * m_cdf2 = nullptr; //! non-owning pointer to device halo CDF
Expand Down
2 changes: 1 addition & 1 deletion src/particles/distribution/Triangle.H
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ namespace impactx::distribution
t = a1;
pt = a2;
}
private:

amrex::ParticleReal m_lambdaX, m_lambdaY, m_lambdaT; //! related position axis intercepts (length) of the phase space ellipse
amrex::ParticleReal m_lambdaPx, m_lambdaPy, m_lambdaPt; //! related momentum axis intercepts of the phase space ellipse
amrex::ParticleReal m_muxpx, m_muypy, m_mutpt; //! correlation length-momentum
Expand Down
7 changes: 3 additions & 4 deletions src/particles/distribution/Waterbag.H
Original file line number Diff line number Diff line change
Expand Up @@ -151,10 +151,9 @@ namespace impactx::distribution
pt = a2;
}

private:
amrex::ParticleReal m_lambdaX,m_lambdaY,m_lambdaT; //! related position axis intercepts (length) of the phase space ellipse
amrex::ParticleReal m_lambdaPx,m_lambdaPy,m_lambdaPt; //! related momentum axis intercepts of the phase space ellipse
amrex::ParticleReal m_muxpx,m_muypy,m_mutpt; //! correlation length-momentum
amrex::ParticleReal m_lambdaX, m_lambdaY, m_lambdaT; //! related position axis intercepts (length) of the phase space ellipse
amrex::ParticleReal m_lambdaPx, m_lambdaPy, m_lambdaPt; //! related momentum axis intercepts of the phase space ellipse
amrex::ParticleReal m_muxpx, m_muypy, m_mutpt; //! correlation length-momentum
};

} // namespace impactx::distribution
Expand Down

0 comments on commit 23b2808

Please sign in to comment.