12 #include "../general/forall.hpp"
15 #include "ceed/mass.hpp"
27 if (mesh->
GetNE() == 0) {
return; }
31 if (DeviceCanUseCeed())
34 ceedOp =
new ceed::MFMassIntegrator(fes, *ir, Q);
37 MFEM_ABORT(
"Error: MassIntegrator::AssembleMF only implemented with"
43 if (DeviceCanUseCeed())
45 ceedOp->AddMult(x, y);
49 MFEM_ABORT(
"Error: MassIntegrator::AddMultMF only implemented with"
54 void MassIntegrator::AssembleDiagonalMF(
Vector &diag)
56 if (DeviceCanUseCeed())
58 ceedOp->GetDiagonal(diag);
62 MFEM_ABORT(
"Error: MassIntegrator::AssembleDiagonalMF only implemented"
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.
Class FiniteElementSpace - responsible for providing FEM view of the mesh, mainly managing the set of...
void GetElementTransformation(int i, IsoparametricTransformation *ElTr)
virtual const FiniteElement * GetFE(int i) const
Returns pointer to the FiniteElement in the FiniteElementCollection associated with i'th element in t...