Skip to content

Commit

Permalink
2D kernels for -ok 1 -ot 0.
Browse files Browse the repository at this point in the history
  • Loading branch information
vladotomov committed Oct 25, 2024
1 parent a00cb3c commit eb37314
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions laghos_assembly.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -535,6 +535,7 @@ static void ForceMult(const int DIM, const int D1D, const int Q1D,
static std::unordered_map<int, fForceMult> call =
{
// 2D
{0x222,&ForceMult2D<2,2,2,1>},
{0x234,&ForceMult2D<2,3,4,2>},
{0x246,&ForceMult2D<2,4,6,3>},
{0x258,&ForceMult2D<2,5,8,4>},
Expand Down Expand Up @@ -942,6 +943,7 @@ static void ForceMultTranspose(const int DIM, const int D1D, const int Q1D,
const int id = ((DIM)<<8)|(D1D)<<4|(Q1D);
static std::unordered_map<int, fForceMultTranspose> call =
{
{0x222,&ForceMultTranspose2D<2,2,2,1>},
{0x234,&ForceMultTranspose2D<2,3,4,2>},
{0x246,&ForceMultTranspose2D<2,4,6,3>},
{0x258,&ForceMultTranspose2D<2,5,8,4>},
Expand Down
1 change: 1 addition & 0 deletions laghos_solver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1319,6 +1319,7 @@ void QUpdate::UpdateQuadratureData(const Vector &S, QuadratureData &qdata)
static std::unordered_map<int, fQKernel> qupdate =
{
// 2D.
{0x22,&QKernel<2,2>},
{0x24,&QKernel<2,4>}, {0x26,&QKernel<2,6>},
{0x28,&QKernel<2,8>}, {0x2A,&QKernel<2,10>},
// 3D.
Expand Down

0 comments on commit eb37314

Please sign in to comment.