WarpX
Public Member Functions | List of all members
Compute_shape_factor< 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, T) const
 

Detailed Description

template<int depos_order>
struct Compute_shape_factor< depos_order >

Compute shape factor and return index of leftmost cell where particle writes. Specialized templates are defined below for orders 0 to 3. Shape factor functors may be evaluated with double arguments in current deposition to ensure that current deposited by particles that move only a small distance is still resolved. Without this safeguard, single and double precision versions can give disagreeing results in the time evolution for some problem setups.

Member Function Documentation

◆ operator()()

template<int depos_order>
template<typename T >
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE int Compute_shape_factor< depos_order >::operator() ( T *  const,
 
) const
inline

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