Nektar++
Loading...
Searching...
No Matches
Namespaces | Functions
LaplacianBlockOpSerialAVXSumFacKernels.hpp File Reference

Kernels and launchers for the Serial/AVX sum-factorised weak Laplacian operator. More...

#include <MultiRegions/ElmtOps/BwdTrans/BwdTransBlockOpSerialAVXSumFacKernels.hpp>
#include <MultiRegions/ElmtOps/IProductWRTBase/IProductWRTBaseBlockOpSerialAVXSumFacKernels.hpp>
#include <MultiRegions/ElmtOps/PhysDeriv/PhysDerivBlockOpSerialAVXSumFacKernels.hpp>

Go to the source code of this file.

Namespaces

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

Functions

template<bool SCALE, bool DEFORMED, bool VARCOEFF, typename simd_type >
static NEK_FORCE_INLINE void Nektar::MultiRegions::detail::DiffusionCoeffwithWJSegKernel (const unsigned int ncoord, const unsigned int nq0, const bool useDiffCoeff, const typename simd_type::scalarType *diffCoeff, const simd_type *varDiffCoeff, const size_t varDiffCoeffSize, const simd_type *jac_ptr, const typename simd_type::scalarType *w0, const simd_type *df_ptr, simd_type *deriv0)
 Segment kernel contracting reference derivative with diffusion tensor and metric terms.
 
template<bool SCALE, bool DEFORMED, bool VARCOEFF, typename simd_type >
static NEK_FORCE_INLINE void Nektar::MultiRegions::detail::DiffusionCoeffwithWJTriKernel (const unsigned int ncoord, const unsigned int nq0, const unsigned int nq1, const bool useDiffCoeff, const typename simd_type::scalarType *diffCoeff, const simd_type *varDiffCoeff, const size_t varDiffCoeffSize, const simd_type *jac_ptr, const typename simd_type::scalarType *w0, const typename simd_type::scalarType *w1, const simd_type *df_ptr, const simd_type *hfac0, const simd_type *hfac1, simd_type *deriv0, simd_type *deriv1)
 Triangle kernel contracting reference derivatives with diffusion tensor and metric terms.
 
template<bool SCALE, bool DEFORMED, bool VARCOEFF, typename simd_type >
static NEK_FORCE_INLINE void Nektar::MultiRegions::detail::DiffusionCoeffwithWJQuadKernel (const unsigned int ncoord, const unsigned int nq0, const unsigned int nq1, const bool useDiffCoeff, const typename simd_type::scalarType *diffCoeff, const simd_type *varDiffCoeff, const size_t varDiffCoeffSize, const simd_type *jac_ptr, const typename simd_type::scalarType *w0, const typename simd_type::scalarType *w1, const simd_type *df_ptr, simd_type *deriv0, simd_type *deriv1)
 Quad kernel contracting reference derivatives with diffusion tensor and metric terms.
 
template<bool SCALE, bool DEFORMED, bool VARCOEFF, typename simd_type >
static NEK_FORCE_INLINE void Nektar::MultiRegions::detail::DiffusionCoeffwithWJHexKernel (const unsigned int nq0, const unsigned int nq1, const unsigned int nq2, const bool useDiffCoeff, const typename simd_type::scalarType *diffCoeff, const simd_type *varDiffCoeff, const size_t varDiffCoeffSize, const simd_type *jac_ptr, const typename simd_type::scalarType *w0, const typename simd_type::scalarType *w1, const typename simd_type::scalarType *w2, const simd_type *df_ptr, simd_type *deriv0, simd_type *deriv1, simd_type *deriv2)
 Hex kernel contracting reference derivatives with diffusion tensor and metric terms.
 
template<bool SCALE, bool DEFORMED, bool VARCOEFF, typename simd_type >
static NEK_FORCE_INLINE void Nektar::MultiRegions::detail::DiffusionCoeffwithWJTetKernel (const unsigned int nq0, const unsigned int nq1, const unsigned int nq2, const bool useDiffCoeff, const typename simd_type::scalarType *diffCoeff, const simd_type *varDiffCoeff, const size_t varDiffCoeffSize, const simd_type *jac_ptr, const typename simd_type::scalarType *w0, const typename simd_type::scalarType *w1, const typename simd_type::scalarType *w2, const simd_type *df_ptr, const simd_type *hfac0, const simd_type *hfac1, const simd_type *hfac2, const simd_type *hfac3, simd_type *deriv0, simd_type *deriv1, simd_type *deriv2)
 Tet kernel contracting reference derivatives with diffusion tensor and metric terms.
 
template<bool SCALE, bool DEFORMED, bool VARCOEFF, typename simd_type >
static NEK_FORCE_INLINE void Nektar::MultiRegions::detail::DiffusionCoeffwithWJPrismKernel (const unsigned int nq0, const unsigned int nq1, const unsigned int nq2, const bool useDiffCoeff, const typename simd_type::scalarType *diffCoeff, const simd_type *varDiffCoeff, const size_t varDiffCoeffSize, const simd_type *jac_ptr, const typename simd_type::scalarType *w0, const typename simd_type::scalarType *w1, const typename simd_type::scalarType *w2, const simd_type *df_ptr, const simd_type *hfac0, const simd_type *hfac3, simd_type *deriv0, simd_type *deriv1, simd_type *deriv2)
 Prism kernel contracting reference derivatives with diffusion tensor and metric terms.
 
template<bool SCALE, bool DEFORMED, bool VARCOEFF, typename simd_type >
static NEK_FORCE_INLINE void Nektar::MultiRegions::detail::DiffusionCoeffwithWJPyrKernel (const unsigned int nq0, const unsigned int nq1, const unsigned int nq2, const bool useDiffCoeff, const typename simd_type::scalarType *diffCoeff, const simd_type *varDiffCoeff, const size_t varDiffCoeffSize, const simd_type *jac_ptr, const typename simd_type::scalarType *w0, const typename simd_type::scalarType *w1, const typename simd_type::scalarType *w2, const simd_type *df_ptr, const simd_type *hfac0, const simd_type *hfac1, const simd_type *hfac3, simd_type *deriv0, simd_type *deriv1, simd_type *deriv2)
 Pyramid kernel contracting reference derivatives with diffusion tensor and metric terms.
 
template<LibUtilities::ShapeType SHAPE_TYPE, bool SCALE, bool DEFORMED, bool VARCOEFF, typename simd_type >
static NEK_FORCE_INLINE void Nektar::MultiRegions::detail::DiffusionCoeffwithWJ1DKernel (const unsigned int ncoord, const unsigned int nq0, const bool useDiffCoeff, const typename simd_type::scalarType *diffCoeff, const simd_type *varDiffCoeff, const size_t varDiffCoeffSize, const simd_type *jac_ptr, const typename simd_type::scalarType *w0, const simd_type *df_ptr, simd_type *deriv0)
 1D launcher dispatching to DiffusionCoeffwithWJSegKernel.
 
template<LibUtilities::ShapeType SHAPE_TYPE, bool SCALE, bool DEFORMED, bool VARCOEFF, typename simd_type >
static NEK_FORCE_INLINE void Nektar::MultiRegions::detail::DiffusionCoeffwithWJ2DKernel (const unsigned int ncoord, const unsigned int nq0, const unsigned int nq1, const bool useDiffCoeff, const typename simd_type::scalarType *diffCoeff, const simd_type *varDiffCoeff, const size_t varDiffCoeffSize, const simd_type *jac_ptr, const typename simd_type::scalarType *w0, const typename simd_type::scalarType *w1, const simd_type *df_ptr, const simd_type *h0, const simd_type *h1, simd_type *deriv0, simd_type *deriv1)
 2D launcher dispatching to shape-specific metric kernels.
 
template<LibUtilities::ShapeType SHAPE_TYPE, bool SCALE, bool DEFORMED, bool VARCOEFF, typename simd_type >
static NEK_FORCE_INLINE void Nektar::MultiRegions::detail::DiffusionCoeffwithWJ3DKernel (const unsigned int nq0, const unsigned int nq1, const unsigned int nq2, const bool useDiffCoeff, const typename simd_type::scalarType *diffCoeff, const simd_type *varDiffCoeff, const size_t varDiffCoeffSize, const simd_type *jac_ptr, const typename simd_type::scalarType *w0, const typename simd_type::scalarType *w1, const typename simd_type::scalarType *w2, const simd_type *df_ptr, const simd_type *h0, const simd_type *h1, const simd_type *h2, const simd_type *h3, simd_type *deriv0, simd_type *deriv1, simd_type *deriv2)
 3D launcher dispatching to shape-specific metric kernels.
 
template<LibUtilities::ShapeType SHAPE_TYPE, bool DEFORMED, bool VARCOEFF, typename TSizeParameter1D , typename simd_type >
static NEK_FORCE_INLINE void Nektar::MultiRegions::detail::LaplacianKernelLauncher (const TSizeParameter1D sizeParam1D, const bool isModified, const unsigned int ncoord, const bool useDiffCoeff, const typename simd_type::scalarType *diffCoeff, const simd_type *varDiffCoeff, const size_t varDiffCoeffSize, const typename simd_type::scalarType *basis0, const typename simd_type::scalarType *D0, const typename simd_type::scalarType *w0, const simd_type *NtoM, const simd_type *NtoMTrans, const simd_type *jac, const simd_type *df, simd_type *deriv0, simd_type *bwd, const simd_type *in, simd_type *out)
 1D launcher stringing together the five sum-factorised stages for one element group.
 
template<LibUtilities::ShapeType SHAPE_TYPE, bool DEFORMED, bool VARCOEFF, typename TSizeParameter2D , typename simd_type >
static NEK_FORCE_INLINE void Nektar::MultiRegions::detail::LaplacianKernelLauncher (const TSizeParameter2D sizeParam2D, const bool isModified, const unsigned int ncoord, const bool useDiffCoeff, const typename simd_type::scalarType *diffCoeff, const simd_type *varDiffCoeff, const size_t varDiffCoeffSize, const typename simd_type::scalarType *basis0, const typename simd_type::scalarType *basis1, const typename simd_type::scalarType *D0, const typename simd_type::scalarType *D1, const typename simd_type::scalarType *w0, const typename simd_type::scalarType *w1, const simd_type *f0, const simd_type *f1, const simd_type *NtoM, const simd_type *NtoMTrans, const simd_type *jac, const simd_type *df, simd_type *wsp0, simd_type *deriv0, simd_type *deriv1, simd_type *bwd, const simd_type *in, simd_type *out)
 2D launcher stringing together the five sum-factorised stages for one element group.
 
template<LibUtilities::ShapeType SHAPE_TYPE, bool DEFORMED, bool VARCOEFF, typename TSizeParameter3D , typename simd_type >
static NEK_FORCE_INLINE void Nektar::MultiRegions::detail::LaplacianKernelLauncher (const TSizeParameter3D sizeParam3D, const bool isModified, const unsigned int ncoord, const bool useDiffCoeff, const typename simd_type::scalarType *diffCoeff, const simd_type *varDiffCoeff, const size_t varDiffCoeffSize, const typename simd_type::scalarType *basis0, const typename simd_type::scalarType *basis1, const typename simd_type::scalarType *basis2, const typename simd_type::scalarType *D0, const typename simd_type::scalarType *D1, const typename simd_type::scalarType *D2, const typename simd_type::scalarType *w0, const typename simd_type::scalarType *w1, const typename simd_type::scalarType *w2, const simd_type *f0, const simd_type *f1, const simd_type *f1m, const simd_type *f2, const simd_type *NtoM, const simd_type *NtoMTrans, const simd_type *jac, const simd_type *df, simd_type *wsp0, simd_type *wsp1, simd_type *wsp2, simd_type *deriv0, simd_type *deriv1, simd_type *deriv2, simd_type *bwd, const simd_type *in, simd_type *out)
 3D launcher stringing together the five sum-factorised stages for one element group.
 

Detailed Description

Kernels and launchers for the Serial/AVX sum-factorised weak Laplacian operator.

The sum-factorised weak Laplacian operator strings together five tensor-product stages on each element group:

  1. BwdTransKernelLauncher (BwdTrans family) to evaluate physical values;
  2. PhysDerivTensor{1,2,3}DKernel (PhysDeriv family) to evaluate reference derivatives;
  3. DiffusionCoeffwithWJ{1,2,3}DKernel (this header) to contract the reference derivatives with the diffusion tensor and geometry metric;
  4. SumDerivTensor{1,2,3}DKernel to sum transposed derivatives;
  5. IProductWRTBaseKernelLauncher (IProductWRTBase family) to take the inner product with the basis.

Definition in file LaplacianBlockOpSerialAVXSumFacKernels.hpp.