XGCa
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
sort.hpp
Go to the documentation of this file.
1 #ifndef SORT_HPP
2 #define SORT_HPP
3 
4 #include "gen_perm.hpp"
6 #include "grid.hpp"
7 #include "sheath.hpp"
8 
9 void ptl_to_tmp_array_ph1(const TmpSpecies<DeviceType> &tmp_species, int np );
10 void ptl_to_tmp_array_ct(const TmpSpecies<DeviceType> &tmp_species, int np );
11 void ptl_to_tmp_array_ph2(const TmpSpecies<DeviceType> &tmp_species, int np );
12 void tmp_array_to_ptl_ph1(const TmpSpecies<DeviceType> &tmp_species, int np );
13 void tmp_array_to_ptl_ct(const TmpSpecies<DeviceType> &tmp_species, int np );
14 void tmp_array_to_ptl_ph2(const TmpSpecies<DeviceType> &tmp_species, int np );
15 
16 void sort_particles_by_triangle(const GeneratePermutation<DeviceType> &gen_perm, const Grid<DeviceType> &grid, const TmpSpecies<DeviceType> &tmp_species, const SheathParticles<DeviceType> &sheath_particles, int sheath_mode, bool sort_phase0);
17 void sort_particles_by_pid(const GeneratePermutation<DeviceType> &pid_gen_perm, const Grid<DeviceType> &grid, const MagneticField<DeviceType> &magnetic_field, const DomainDecomposition<DeviceType> &pol_decomp, const TmpSpecies<DeviceType> &tmp_species, bool sort_phase0);
18 #endif
void sort_particles_by_pid(const GeneratePermutation< DeviceType > &pid_gen_perm, const Grid< DeviceType > &grid, const MagneticField< DeviceType > &magnetic_field, const DomainDecomposition< DeviceType > &pol_decomp, const TmpSpecies< DeviceType > &tmp_species, bool sort_phase0)
Definition: sort.cpp:400
Definition: magnetic_field.hpp:9
Definition: grid.hpp:10
void tmp_array_to_ptl_ct(const TmpSpecies< DeviceType > &tmp_species, int num_particle)
Definition: sort.cpp:325
void tmp_array_to_ptl_ph1(const TmpSpecies< DeviceType > &tmp_species, int num_particle)
Definition: sort.cpp:297
Definition: sheath.hpp:16
void ptl_to_tmp_array_ph1(const TmpSpecies< DeviceType > &tmp_species, int num_particle)
Definition: sort.cpp:290
subroutine gen_perm(ilo, ihi, jlo, jhi, guess_min, inv_guess_d, n, gid, x, y, iperm)
Definition: gen_perm.F90:1
Definition: magnetic_field.F90:1
void sort_particles_by_triangle(const GeneratePermutation< DeviceType > &gen_perm, const Grid< DeviceType > &grid, const TmpSpecies< DeviceType > &tmp_species, const SheathParticles< DeviceType > &sheath_particles, int sheath_mode, bool sort_phase0)
Definition: sort.cpp:384
Definition: domain_decomposition.hpp:7
void tmp_array_to_ptl_ph2(const TmpSpecies< DeviceType > &tmp_species, int num_particle)
Definition: sort.cpp:311
void ptl_to_tmp_array_ct(const TmpSpecies< DeviceType > &tmp_species, int num_particle)
Definition: sort.cpp:318
void ptl_to_tmp_array_ph2(const TmpSpecies< DeviceType > &tmp_species, int num_particle)
Definition: sort.cpp:304
Definition: species.hpp:72
Definition: gen_perm.hpp:8