Go to the source code of this file.
|
| amrex::Vector< amrex::Real > | ablastr::math::getFornbergStencilCoefficients (int n_order, ablastr::utils::enums::GridType a_grid_type) |
| | 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).
|
| |
| void | ablastr::math::ReorderFornbergCoefficients (amrex::Vector< amrex::Real > &ordered_coeffs, const amrex::Vector< amrex::Real > &unordered_coeffs, int order) |
| | Re-orders the Fornberg coefficients so that they can be used more conveniently for finite-order centering operations. For example, for finite-order centering of order 6, the Fornberg coefficients (c_0,c_1,c_2) are re-ordered as (c_2,c_1,c_0,c_0,c_1,c_2).
|
| |