| 1 |
// Copyright (c) 2010-2025, Lawrence Livermore National Security, LLC. Produced |
| 2 |
// at the Lawrence Livermore National Laboratory. All Rights reserved. See files |
| 3 |
// LICENSE and NOTICE for details. LLNL-CODE-806117. |
| 4 |
// |
| 5 |
// This file is part of the MFEM library. For more information and source code |
| 6 |
// availability visit https://mfem.org. |
| 7 |
// |
| 8 |
// MFEM is free software; you can redistribute it and/or modify it under the |
| 9 |
// terms of the BSD-3 license. We welcome feedback and contributions, see file |
| 10 |
// CONTRIBUTING.md for details. |
| 11 |
|
| 12 |
#include "../pa.hpp" |
| 13 |
#include "mult3.hpp" |
| 14 |
|
| 15 |
namespace mfem |
| 16 |
{ |
| 17 |
|
| 18 |
void TMOP_Integrator::AddMultPA_3D(const Vector &x, Vector &y) const |
| 19 |
{ |
| 20 |
const int mid = metric->Id(); |
| 21 |
|
| 22 |
TMOPAddMultPA3D ker(this, x, y); |
| 23 |
|
| 24 |
// Calls TMOPAddMultPA3D::Mult for the given mid. |
| 25 |
if (mid == 302) { return tmop::Kernel<302>(ker); } |
| 26 |
if (mid == 303) { return tmop::Kernel<303>(ker); } |
| 27 |
if (mid == 315) { return tmop::Kernel<315>(ker); } |
| 28 |
if (mid == 318) { return tmop::Kernel<318>(ker); } |
| 29 |
if (mid == 321) { return tmop::Kernel<321>(ker); } |
| 30 |
if (mid == 332) { return tmop::Kernel<332>(ker); } |
| 31 |
if (mid == 338) { return tmop::Kernel<338>(ker); } |
| 32 |
|
| 33 |
MFEM_ABORT("Unsupported TMOP metric " << mid); |
| 34 |
} |
| 35 |
|
| 36 |
} // namespace mfem |