12 #include "../general/forall.hpp"
15 #include "libceed/mass.hpp"
30 if (mesh->
GetNE() == 0) {
return; }
34 = IntRule ? IntRule : &MassIntegrator::GetRule(el, el, *T);
35 if (DeviceCanUseCeed())
38 ceedDataPtr =
new CeedData;
39 InitCeedCoeff(Q, *mesh, *ir, ceedDataPtr);
40 return CeedMFMassAssemble(fes, *ir, *ceedDataPtr);
43 mfem_error(
"Error: VectorMassIntegrator::AssembleMF only implemented with libCEED");
46 void VectorMassIntegrator::AddMultMF(
const Vector &x,
Vector &y)
const
49 if (DeviceCanUseCeed())
51 CeedAddMult(ceedDataPtr, x, y);
56 mfem_error(
"Error: VectorMassIntegrator::AssembleDiagonalMF only implemented with libCEED");
60 void VectorMassIntegrator::AssembleDiagonalMF(
Vector &diag)
63 if (DeviceCanUseCeed())
65 CeedAssembleDiagonal(ceedDataPtr, diag);
70 mfem_error(
"Error: VectorMassIntegrator::AddMultMF only implemented with libCEED");
Abstract class for all finite elements.
Class for an integration rule - an Array of IntegrationPoint.
int GetNE() const
Returns number of elements.
Mesh * GetMesh() const
Returns the mesh.
void mfem_error(const char *msg)
Function called when an error is encountered. Used by the macros MFEM_ABORT, MFEM_ASSERT, MFEM_VERIFY.
Class FiniteElementSpace - responsible for providing FEM view of the mesh, mainly managing the set of...
void GetElementTransformation(int i, IsoparametricTransformation *ElTr)
const FiniteElement * GetFE(int i) const
Returns pointer to the FiniteElement in the FiniteElementCollection associated with i'th element in t...