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

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

#include <LibUtilities/BasicUtils/Utils/UtilsKernels.hpp>
#include <MultiRegions/ElmtOps/LinAdvDiffReaction/LinAdvDiffReactionBlockOp.hpp>
#include <MultiRegions/ElmtOps/LinAdvDiffReaction/LinAdvDiffReactionBlockOpDeviceSumFacKernels.hpp>
#include <MultiRegions/ElmtOps/LinAdvDiffReaction/LinAdvDiffReactionBlockOpDeviceSumFacTOPKernels.hpp>

Go to the source code of this file.

Classes

class  Nektar::MultiRegions::detail::LinAdvDiffReactionBlockOpImpl< ExecSpace, Implementation, TData >
 Device StdMat block implementation of the linearised advection-diffusion-reaction operator: dense standard-region matrices through the vendor BLAS, around a pointwise metric kernel. More...
 

Namespaces

namespace  Nektar
 
namespace  Nektar::MultiRegions
 
namespace  Nektar::MultiRegions::detail
 

Macros

#define NEKTAR_BLOCKOP_SWITCH_CODE
 

Detailed Description

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

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 LinAdvDiffReactionKernelLauncher overloads resolve:

Both families are the corresponding Helmholtz kernels with this family's advection kernel spliced in after the derivative stage, and both reuse the Helmholtz workspace and shared-memory sizing functions (HelmholtzWorkSpaceSize, HelmholtzSharedMemorySize) unchanged, the intermediates being the same.

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, which CMake generates from LibUtilities/BasicUtils/Switch/BlockOpShapeBlock.cpp.in.

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 LinAdvDiffReactionOp.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 LinAdvDiffReactionBlockOpDeviceSumFac.hpp.

Macro Definition Documentation

◆ NEKTAR_BLOCKOP_SWITCH_CODE

#define NEKTAR_BLOCKOP_SWITCH_CODE

Definition at line 88 of file LinAdvDiffReactionBlockOpDeviceSumFac.hpp.