WarpX
Functions
SpectralKSpace.cpp File Reference
#include "SpectralKSpace.H"
#include "Utils/WarpXConst.H"
#include <AMReX_BLassert.H>
#include <AMReX_Box.H>
#include <AMReX_BoxList.H>
#include <AMReX_GpuComplex.H>
#include <AMReX_GpuDevice.H>
#include <AMReX_GpuLaunch.H>
#include <AMReX_GpuQualifiers.H>
#include <AMReX_IndexType.H>
#include <AMReX_IntVect.H>
#include <AMReX_MFIter.H>
#include <array>
#include <cmath>
#include <vector>

Functions

Vector< Real > getFornbergStencilCoefficients (const int n_order, const bool nodal)
 Returns an array of coefficients (Fornberg coefficients), corresponding to the weight of each point in a finite-difference approximation of a derivative (up to order n_order). More...
 

Function Documentation

◆ getFornbergStencilCoefficients()

Vector<Real> getFornbergStencilCoefficients ( const int  n_order,
const bool  nodal 
)

Returns an array of coefficients (Fornberg coefficients), corresponding to the weight of each point in a finite-difference approximation of a derivative (up to order n_order).

Parameters
[in]n_orderorder of the finite-difference approximation
[in]nodalwhether the finite-difference approximation is computed on a nodal grid or a staggered grid