Go to the source code of this file.
|
| template<typename index_type , typename Tile , typename Index , typename CopyFunc , amrex::EnableIf_t< std::is_integral< Index >::value, int > foo = 0> |
| int | splitScatteringParticles (const index_type &n_total_pairs, Tile &ptile1, Tile &ptile2, const Index *AMREX_RESTRICT mask, CopyFunc &©1, CopyFunc &©2, const amrex::ParticleReal m1, const amrex::ParticleReal m2, const index_type *AMREX_RESTRICT p_pair_indices_1, const index_type *AMREX_RESTRICT p_pair_indices_2, const amrex::ParticleReal *AMREX_RESTRICT p_pair_reaction_weight) noexcept |
| | Function that performs the particle scattering and injection due to binary collisions. More...
|
| |
◆ splitScatteringParticles()
template<typename index_type , typename Tile , typename Index , typename CopyFunc , amrex::EnableIf_t< std::is_integral< Index >::value, int > foo = 0>
| int splitScatteringParticles |
( |
const index_type & |
n_total_pairs, |
|
|
Tile & |
ptile1, |
|
|
Tile & |
ptile2, |
|
|
const Index *AMREX_RESTRICT |
mask, |
|
|
CopyFunc && |
copy1, |
|
|
CopyFunc && |
copy2, |
|
|
const amrex::ParticleReal |
m1, |
|
|
const amrex::ParticleReal |
m2, |
|
|
const index_type *AMREX_RESTRICT |
p_pair_indices_1, |
|
|
const index_type *AMREX_RESTRICT |
p_pair_indices_2, |
|
|
const amrex::ParticleReal *AMREX_RESTRICT |
p_pair_reaction_weight |
|
) |
| |
|
noexcept |
Function that performs the particle scattering and injection due to binary collisions.
- Returns
- num_added the number of particles added to each species.