WarpX
Public Member Functions | List of all members
Compute_shape_factor_pair< depos_order > Struct Template Reference

#include <ShapeFactors.H>

Public Member Functions

template<typename T >
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE int operator() (T *const sx_old, T *const sx_new, T xold, T xnew) const
 

Detailed Description

template<int depos_order>
struct Compute_shape_factor_pair< depos_order >

Compute shape factors for two positions that are within half a grid cell of the same cell interface and return the common index of the leftmost cell where particle writes, which is correctly determined by the average of the positions. This is used for computing the segment weights transverse to the current density direction in the Villasenor deposition algorithm.

Member Function Documentation

◆ operator()()

template<int depos_order>
template<typename T >
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE int Compute_shape_factor_pair< depos_order >::operator() ( T *const  sx_old,
T *const  sx_new,
xold,
xnew 
) const
inline

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