#include <DM_wrapper.hpp>
DMWrapper::~DMWrapper |
( |
| ) |
|
|
inline |
DMWrapper::DMWrapper |
( |
const DMWrapper & |
original | ) |
|
|
inline |
PetscErrorCode DMWrapper::destroy_DM |
( |
| ) |
|
|
inline |
Destroys the PETSc DM and mass matrix objects used for the pseudo-inverse velocity interpolation.
- Returns
- PetscErrorCode
PetscErrorCode DMWrapper::initialize_pseudo_inverse_interpolation |
( |
int |
nthreads, |
|
|
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 |
|
) |
| |
|
inline |
Creates the PETSc DM and mass matrix objects used for the pseudo-inverse velocity interpolation, based on the 2D velocity grid parameters.
- Parameters
-
[in] | nthreads | is the number of threads which sets the number of PETSc objects being created. |
[in] | order | is the interpolation order (0 = nearest neighbor), (1 = linear), (2 = quadratic), (3 = cubic), .... |
[in] | Nspecies | is the number of species being interpolated, typically 1. |
[in] | vPara_min | is the minimum v|| of the velocity grid. |
[in] | vPara_max | is the maximum v|| of the velocity grid. |
[in] | num_vPara | is the number of grid points in v||. |
[in] | vPerp_min | is the minimum v⊥ of the velocity grid. |
[in] | vPerp_max | is the maximum v⊥ of the velocity grid. |
[in] | num_vPerp | is the number of grid points in v⊥. |
- Returns
- PetscErrorCode
Number of PETSc mesh objects to store.
The documentation for this struct was generated from the following file:
- /u/gitlab-xgc/builds/YGMz2TJ8/0/xgc/XGC-Devel/XGC_core/cpp/DM_wrapper.hpp