12 #include "../general/forall.hpp"
15 #include "ceed/diffusion.hpp"
26 if (mesh->
GetNE() == 0) {
return; }
29 = IntRule ? IntRule : &DiffusionIntegrator::GetRule(el, el);
30 if (DeviceCanUseCeed())
33 ceedOp =
new ceed::MFDiffusionIntegrator(fes, *ir, Q);
36 MFEM_ABORT(
"Error: VectorDiffusionIntegrator::AssembleMF only implemented"
40 void VectorDiffusionIntegrator::AddMultMF(
const Vector &x,
Vector &y)
const
42 if (DeviceCanUseCeed())
44 ceedOp->AddMult(x, y);
48 MFEM_ABORT(
"Error: VectorDiffusionIntegrator::AddMultMF only implemented"
53 void VectorDiffusionIntegrator::AssembleDiagonalMF(
Vector &diag)
55 if (DeviceCanUseCeed())
57 ceedOp->GetDiagonal(diag);
61 MFEM_ABORT(
"Error: VectorDiffusionIntegrator::AssembleDiagonalMF only"
62 " 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.
Class FiniteElementSpace - responsible for providing FEM view of the mesh, mainly managing the set of...
virtual const FiniteElement * GetFE(int i) const
Returns pointer to the FiniteElement in the FiniteElementCollection associated with i'th element in t...