Skip to content

Commit

Permalink
Start of the project to add simulated synchronization of the bunch
Browse files Browse the repository at this point in the history
longitudinal position with the RF cavities. This commit just adds
the declaration for a routine to get the median bunch cdt.
  • Loading branch information
Eric G. Stern committed Aug 22, 2024
1 parent 76d0538 commit d030549
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/synergia/bunch/core_diagnostics.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ struct Core_diagnostics {
static std::vector<double> kokkos_view_to_stl_vector(karray1d const& view);
static std::vector<double> kokkos_view_to_stl_vector(
karray2d_row const& view);

// calculate the median bunch cdt for each MPI rank and take the median of that
static calculate_median_cdt(Bunch const& bunch);

};

#endif /* CORE_DIAGNOSTICS_H_ */

0 comments on commit d030549

Please sign in to comment.