|
Nektar++
|
Kernel launchers of the Serial/AVX sum-factorised divergence: per element group, tensor-product differentiation of each vector component followed by the contraction with its row of derivative factors, one element per SIMD lane. More...
#include <LibUtilities/BasicUtils/NekInline.hpp>#include <MultiRegions/ElmtOps/PhysDeriv/PhysDerivBlockOpSerialAVXSumFacKernels.hpp>#include <MultiRegions/ElmtOps/ElmtHelper.hpp>Go to the source code of this file.
Namespaces | |
| namespace | Nektar |
| namespace | Nektar::MultiRegions |
| namespace | Nektar::MultiRegions::detail |
Functions | |
| template<LibUtilities::ShapeType SHAPE_TYPE, bool DEFORMED, typename TPhysSizeParameter1D , typename simd_type > | |
| static NEK_FORCE_INLINE void | Nektar::MultiRegions::detail::DivergenceKernelLauncher (const TPhysSizeParameter1D sizeParam1D, const typename simd_type::scalarType *D0, const simd_type *df_ptr, simd_type *wsp0, const simd_type *in0, simd_type *out) |
Differentiate one element group of a 1D block: out = du/dx, with u the single component at in0. | |
| template<LibUtilities::ShapeType SHAPE_TYPE, bool DEFORMED, typename TPhysSizeParameter2D , typename simd_type > | |
| static NEK_FORCE_INLINE void | Nektar::MultiRegions::detail::DivergenceKernelLauncher (const TPhysSizeParameter2D sizeParam2D, const typename simd_type::scalarType *D0, const typename simd_type::scalarType *D1, const simd_type *f0, const simd_type *f1, const simd_type *df_ptr, simd_type *wsp0, simd_type *wsp1, const simd_type *in0, const simd_type *in1, simd_type *out) |
Differentiate one element group of a 2D block: out = du/dx + dv/dy, with u and v the components at in0 and in1. | |
| template<LibUtilities::ShapeType SHAPE_TYPE, bool DEFORMED, typename TPhysSizeParameter3D , typename simd_type > | |
| static NEK_FORCE_INLINE void | Nektar::MultiRegions::detail::DivergenceKernelLauncher (const TPhysSizeParameter3D sizeParam3D, const typename simd_type::scalarType *D0, const typename simd_type::scalarType *D1, const typename simd_type::scalarType *D2, const simd_type *f0, const simd_type *f1, const simd_type *f1m, const simd_type *f2, const simd_type *df_ptr, simd_type *wsp0, simd_type *wsp1, simd_type *wsp2, const simd_type *in0, const simd_type *in1, const simd_type *in2, simd_type *out) |
Differentiate one element group of a 3D block: out = du/dx + dv/dy + dw/dz, with u, v and w the components at in0, in1 and in2. | |
Kernel launchers of the Serial/AVX sum-factorised divergence: per element group, tensor-product differentiation of each vector component followed by the contraction with its row of derivative factors, one element per SIMD lane.
The divergence is assembled entirely from the PhysDeriv kernels: for each vector component, PhysDerivTensor{1,2,3}DKernel (StdRegions/Operators/PhysDerivSumFacStdKernels.hpp) produces the reference-direction derivatives, and PhysDerivDir{1,2,3}DKernel<SHAPE_TYPE, APPEND, DEFORMED, DIR> (PhysDeriv/PhysDerivBlockOpSerialAVXSumFacKernels.hpp, included here) corrects them for a collapsed coordinate where the shape requires it and contracts them with row DIR of the derivative factors, either overwriting or – with APPEND set – accumulating onto the output. DivergenceKernelLauncher is the entry point the block operator (DivergenceBlockOpSerialAVXSumFac.hpp) calls for one element group; its one-, two- and three-dimensional overloads are selected by the type of the size parameter, and each chains those two calls per component, DIR following the component index, so that the output ends up holding \(\sum_c \partial u_c/\partial x_c\).
Definition in file DivergenceBlockOpSerialAVXSumFacKernels.hpp.