12 #include "../general/forall.hpp"
15 #include "ceed/convection.hpp"
26 if (mesh->
GetNE() == 0) {
return; }
30 if (DeviceCanUseCeed())
33 ceedOp =
new ceed::MFConvectionIntegrator(fes, *ir, Q,
alpha);
36 MFEM_ABORT(
"Error: ConvectionIntegrator::AssembleMF only implemented with"
40 void ConvectionIntegrator::AssembleDiagonalMF(
Vector &diag)
42 if (DeviceCanUseCeed())
44 ceedOp->GetDiagonal(diag);
48 MFEM_ABORT(
"Error: ConvectionIntegrator::AssembleDiagonalMF only"
49 " implemented with libCEED");
53 void ConvectionIntegrator::AddMultMF(
const Vector &x,
Vector &y)
const
55 if (DeviceCanUseCeed())
57 ceedOp->AddMult(x, y);
61 MFEM_ABORT(
"Error: ConvectionIntegrator::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.
ElementTransformation * GetElementTransformation(int i) const
Returns ElementTransformation for the i-th element.
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...