XGCa
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
velocity_interpolate.hpp
Go to the documentation of this file.
1 
12 #ifndef VELOCITY_INTERPOLATE_HPP
13 #define VELOCITY_INTERPOLATE_HPP
14 
15 #include <petscversion.h>
16 #if PETSC_VERSION_GE(3,14,0)
17 #include <petscsystypes.h>
18 #include <petscsys.h>
19 #include <petscdmplex.h>
20 #include <petscds.h>
21 #include "petscdmswarm.h"
22 #include "petscksp.h"
23 
24 extern "C"
25 {
26  // For description see source file
27  void initialize_pseudo_inverse_interpolation(DM &dm, PetscInt order, const PetscInt Nspecies, \
28  const PetscReal vPara_min, const PetscReal vPara_max, \
29  const PetscInt num_vPara, const PetscReal vPerp_min, \
30  const PetscReal vPerp_max, const PetscInt num_vPerp);
31 
32  // For description see source file
33  void pseudo_inverse_interpolate_particles_to_velocity_grid(DM &dm, PetscReal *particle_coords_fptr, \
34  PetscReal *particle_weights_fptr, \
35  const PetscInt Nparticles, PetscInt order, \
36  const PetscInt Nspecies, PetscReal *grid_coords_fptr, \
37  PetscReal *grid_weights_fptr, PetscInt *Ngrid);
38 
39  // For description see source file
40  void pseudo_inverse_interpolate_velocity_grid_to_particles(DM &dm, PetscReal *grid_coords_fptr, \
41  PetscReal *grid_weights_fptr, const PetscInt Ngrid, \
42  PetscInt order, const PetscInt Nspecies, \
43  PetscReal *particle_coords_fptr, PetscReal *particle_weights_fptr, const PetscInt Nparticles, bool *ksp_converged);
44 }
45 
46 #endif
47 
48 #endif
void pseudo_inverse_interpolate_particles_to_velocity_grid(DM &dm, PetscReal *particle_coords_fptr, PetscReal *particle_weights_fptr, const PetscInt Nparticles, PetscInt order, const PetscInt Nspecies, PetscReal *grid_coords_fptr, PetscReal *grid_weights_fptr, PetscInt *Ngrid)
Definition: velocity_interpolate.cpp:130
void initialize_pseudo_inverse_interpolation(DM &dm, PetscInt order, const PetscInt Nspecies, const PetscReal vPara_min, const PetscReal vPara_max, const PetscInt num_vPara, const PetscReal vPerp_min, const PetscReal vPerp_max, const PetscInt num_vPerp)
Definition: velocity_interpolate.cpp:67
void pseudo_inverse_interpolate_velocity_grid_to_particles(DM &dm, PetscReal *grid_coords_fptr, PetscReal *grid_weights_fptr, const PetscInt Ngrid, PetscInt order, const PetscInt Nspecies, PetscReal *particle_coords_fptr, PetscReal *particle_weights_fptr, const PetscInt Nparticles, bool *ksp_converged)
Definition: velocity_interpolate.cpp:270