WarpX
|
#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 |
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.
|
inline |