Nektar++
Loading...
Searching...
No Matches
Classes | Namespaces | Macros
AdvectionBlockOpDeviceSumFac.hpp File Reference

Device sum-factorised implementation of the advection block operator, serving both the SumFac and the SumFacTOP strategy. More...

#include <LibUtilities/BasicUtils/Utils/UtilsKernels.hpp>
#include <MultiRegions/ElmtOps/Advection/AdvectionBlockOp.hpp>
#include <MultiRegions/ElmtOps/Advection/AdvectionBlockOpDeviceSumFacKernels.hpp>
#include <MultiRegions/ElmtOps/Advection/AdvectionBlockOpDeviceSumFacTOPKernels.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
 

Detailed Description

Device sum-factorised implementation of the advection block operator, serving both the SumFac and the SumFacTOP strategy.

The derivatives along the reference tensor directions are formed from the one-dimensional derivative matrices and then finished by applying the collapsed-to-standard coordinate correction for simplex-type shapes, the geometric derivative factors and the dot product with the advection velocity. Both stages happen inside a single kernel per element.

This one header is included by the translation units CMake generates for either sum-factorisation strategy on the Device execution space; the Implementation tag selects between the two kernel families at compile time, when the enable_if-constrained AdvectionKernelLauncher overloads resolve:

The two strategies want different storage and derivative-factor layouts; see the class description.

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.

Note
CMake includes this header into the registration translation units it generates for this operator, execution space and implementation; it should not normally be included by any other translation unit. Other code goes through AdvectionOp.hpp and the operator factory: including this header directly instantiates the whole template set in that translation unit, which is what the generated sources exist to avoid.

Definition in file AdvectionBlockOpDeviceSumFac.hpp.

Macro Definition Documentation

◆ NEKTAR_BLOCKOP_SWITCH_1DCOORDS

#define NEKTAR_BLOCKOP_SWITCH_1DCOORDS

Definition at line 91 of file AdvectionBlockOpDeviceSumFac.hpp.