XGC1
shift.hpp
Go to the documentation of this file.
1 #ifndef SHIFT_HPP
2 #define SHIFT_HPP
3 
4 #include "plasma.hpp"
6 #include "grid.hpp"
7 #include "sort.hpp"
8 
9 #ifdef USE_MPI
10 template<class DataType>
11 void transpose_and_shift(Kokkos::View<int*,HostType>& sendcnt, Kokkos::View<int*,HostType>& sdispls, Kokkos::View<int*,HostType>& recvcnt, Kokkos::View<int*,HostType>& rdispls, Cabana::AoSoA<DataType,DeviceType,VEC_LEN>& local_particles, int n_staying, int n_leaving, int n_arriving, const MyMPI& mpi);
12 #endif
13 
14 void shift(Species<DeviceType> &species, SortViews<DeviceType> &sort_views, const Grid<DeviceType> &grid, const MagneticField<DeviceType> &magnetic_field, const DomainDecomposition<DeviceType> &pol_decomp, bool plane_sort_only=false);
15 
17 
18 #endif
Definition: magnetic_field.hpp:12
Definition: plasma.hpp:13
Definition: species.hpp:75
Definition: magnetic_field.F90:1
type(ptl_type), dimension(:), allocatable, target local_particles
Definition: resamp_mod.F90:150
subroutine plasma(grid, itr, p, dene_out, deni_out, Te_out, Ti_out, Vparai_out, ignore_vacuum)
Calculate the plasma density, temperature, and parallel velocity for a point in triangle itr using pl...
Definition: neutral_totalf.F90:1548
void transpose_and_shift(Kokkos::View< int *, HostType > &sendcnt, Kokkos::View< int *, HostType > &sdispls, Kokkos::View< int *, HostType > &recvcnt, Kokkos::View< int *, HostType > &rdispls, Cabana::AoSoA< DataType, DeviceType, VEC_LEN > &local_particles, int n_staying, int n_leaving, int n_arriving, const MyMPI &mpi)
Definition: shift.cpp:167
void shift(Species< DeviceType > &species, SortViews< DeviceType > &sort_views, const Grid< DeviceType > &grid, const MagneticField< DeviceType > &magnetic_field, const DomainDecomposition< DeviceType > &pol_decomp, bool plane_sort_only=false)
Definition: shift.cpp:253
void shift_all_species(Plasma &plasma, const Grid< DeviceType > &grid, const MagneticField< DeviceType > &magnetic_field, const DomainDecomposition< DeviceType > &pol_decomp)
Definition: shift.cpp:383
Definition: my_mpi.hpp:19
Definition: sort.hpp:9