XGC1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Public Attributes | List of all members
DMWrapper Struct Reference

#include <DM_wrapper.hpp>

Public Member Functions

 DMWrapper ()
 
 ~DMWrapper ()
 
 DMWrapper (const DMWrapper &original)
 
DMWrapperoperator= (const DMWrapper &original)
 
PetscErrorCode 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)
 
PetscErrorCode destroy_DM ()
 

Public Attributes

bool is_owner
 
int dm_len
 Number of PETSc mesh objects to store. More...
 
Kokkos::View< DMObjects
*, Kokkos::LayoutRight,
HostType
obj
 Stores number of threads DMObjects. More...
 

Constructor & Destructor Documentation

DMWrapper::DMWrapper ( )
inline
DMWrapper::~DMWrapper ( )
inline
DMWrapper::DMWrapper ( const DMWrapper original)
inline

Member Function Documentation

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]nthreadsis the number of threads which sets the number of PETSc objects being created.
[in]orderis the interpolation order (0 = nearest neighbor), (1 = linear), (2 = quadratic), (3 = cubic), ....
[in]Nspeciesis the number of species being interpolated, typically 1.
[in]vPara_minis the minimum v|| of the velocity grid.
[in]vPara_maxis the maximum v|| of the velocity grid.
[in]num_vParais the number of grid points in v||.
[in]vPerp_minis the minimum v⊥ of the velocity grid.
[in]vPerp_maxis the maximum v⊥ of the velocity grid.
[in]num_vPerpis the number of grid points in v⊥.
Returns
PetscErrorCode
DMWrapper& DMWrapper::operator= ( const DMWrapper original)
inline

Member Data Documentation

int DMWrapper::dm_len

Number of PETSc mesh objects to store.

bool DMWrapper::is_owner
Kokkos::View<DMObjects*, Kokkos::LayoutRight, HostType> DMWrapper::obj

Stores number of threads DMObjects.


The documentation for this struct was generated from the following file: