Nektar++
Loading...
Searching...
No Matches
Namespaces
DivergenceBlockOpDeviceStdMatKernels.hpp File Reference

Chain-rule kernel of the device StdMat divergence: contract the standard-region derivatives of every component with the element's derivative factors and sum them, one work item per point of the block. More...

#include <LibUtilities/Backends/Backends_Device_API.hpp>

Go to the source code of this file.

Namespaces

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

Detailed Description

Chain-rule kernel of the device StdMat divergence: contract the standard-region derivatives of every component with the element's derivative factors and sum them, one work item per point of the block.

The derivative factors are laid out transposed (DerivFactorKey with transpose = true, see GeometricDataWarehouse.hpp): per element the ndf = coordDim * dimension factors form contiguous planes, of one value each for a regular element and of nqTot values each for a deformed one. The deformed branch reaches factor c * dimension + d of element e at ndf * nqTot * e + nqTot * (c * dimension + d) + i, written as (ndf - 1) * nqTot * e + ... because the within-plane flat index added last, idx, already carries one nqTot * e.

Definition in file DivergenceBlockOpDeviceStdMatKernels.hpp.