12 #include "../general/forall.hpp"
15 #include "ceed/diffusion.hpp"
27 if (mesh->
GetNE() == 0) {
return; }
30 if (DeviceCanUseCeed())
33 MFEM_VERIFY(!VQ && !MQ,
34 "Only scalar coefficient supported for DiffusionIntegrator"
36 ceedOp =
new ceed::MFDiffusionIntegrator(fes, *ir, Q);
39 MFEM_ABORT(
"Error: DiffusionIntegrator::AssembleMF only implemented with"
43 void DiffusionIntegrator::AssembleDiagonalMF(
Vector &diag)
45 if (DeviceCanUseCeed())
47 ceedOp->GetDiagonal(diag);
51 MFEM_ABORT(
"Error: DiffusionIntegrator::AssembleDiagonalMF only"
52 " implemented with libCEED");
56 void DiffusionIntegrator::AddMultMF(
const Vector &x,
Vector &y)
const
58 if (DeviceCanUseCeed())
60 ceedOp->AddMult(x, y);
64 MFEM_ABORT(
"Error: DiffusionIntegrator::AddMultMF only implemented with"
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...