|
Nektar++
|
Serial/AVX sum-factorised implementation of the advection block operator. More...
#include <LibUtilities/SimdLib/tinysimd.hpp>#include <LibUtilities/BasicUtils/Utils/UtilsKernels.hpp>#include <MultiRegions/ElmtOps/Advection/AdvectionBlockOp.hpp>#include <MultiRegions/ElmtOps/Advection/AdvectionBlockOpSerialAVXSumFacKernels.hpp>Go to the source code of this file.
Classes | |
| class | Nektar::MultiRegions::detail::AdvectionBlockOpImpl< ExecSpace, Implementation, TData > |
| Device StdMat advection block operator: dense standard-region derivative matrices through the vendor BLAS, followed by a pointwise derivative-factor and velocity kernel. More... | |
Namespaces | |
| namespace | Nektar |
| namespace | Nektar::MultiRegions |
| namespace | Nektar::MultiRegions::detail |
Macros | |
| #define | NEKTAR_BLOCKOP_SWITCH_1DCOORDS |
Serial/AVX sum-factorised implementation of the advection block operator.
Instead of a dense standard-region matrix, the SumFac strategy differentiates through the tensor-product structure of the basis: the PhysDerivTensor{1,2,3}DKernel routines (StdRegions/Operators/PhysDerivSumFacStdKernels.hpp) produce the derivatives along the reference tensor directions from the one-dimensional derivative matrices, and the Advection{1,2,3}DKernel routines (AdvectionBlockOpSerialAVXSumFacKernels.hpp) apply the collapsed-to-standard coordinate correction for simplex-type shapes, the geometric derivative factors and the dot product with the advection velocity. Each SIMD lane owns one element, so a group of simd_t::width elements advances in lock-step (width one on the Serial execution space).
v_Apply() dispatches on the block's shape type to the ShapeBlock() specialisations, whose definitions CMake generates from LibUtilities/BasicUtils/Switch/BlockOpShapeBlock.cpp.in, one translation unit per shape: each wraps OperatorND() in a switch over the element sizes so that compile-time constants reach the kernels, falling back to a runtime-sized call for other sizes.
This header provides the definition of detail::AdvectionBlockOpImpl for the Serial and AVX execution spaces with the SumFac implementation tag; see AdvectionBlockOpSerialAVXStdMat.hpp for the StdMat sibling and the note on the one-definition-per-translation-unit scheme.
Definition in file AdvectionBlockOpSerialAVXSumFac.hpp.
| #define NEKTAR_BLOCKOP_SWITCH_1DCOORDS |
Definition at line 87 of file AdvectionBlockOpSerialAVXSumFac.hpp.