27 for (i = 0; i < vsize; i++)
33 for (i = j = 0; i < vsize; i++)
38 for (i = 0; i < nv; i++)
51 for (
int i = 0; i <
fes->
GetNE(); i++)
57 for (
int k = 0; k <
dfi.Size(); k++)
59 energy +=
dfi[k]->GetElementEnergy(*fe, *T, el_x);
76 for (
int i = 0; i <
fes->
GetNE(); i++)
82 for (
int k = 0; k <
dfi.Size(); k++)
84 dfi[k]->AssembleElementVector(*fe, *T, el_x, el_y);
96 const int skip_zeros = 0;
109 for (
int i = 0; i <
fes->
GetNE(); i++)
115 for (
int k = 0; k <
dfi.Size(); k++)
117 dfi[k]->AssembleElementGrad(*fe, *T, el_x, elmat);
135 for (
int i = 0; i <
dfi.Size(); i++)
Abstract class for Finite Elements.
int Size() const
Logical size of the array.
void GetSubVector(const Array< int > &dofs, Vector &elemvect) const
void EliminateRowCol(int rc, const double sol, Vector &rhs, int d=0)
int GetNE() const
Returns number of elements in the mesh.
virtual void Finalize(int skip_zeros=1)
void AddElementVector(const Array< int > &dofs, const Vector &elemvect)
Add (element) subvector to the vector.
void AddSubMatrix(const Array< int > &rows, const Array< int > &cols, const DenseMatrix &subm, int skip_zeros=1)
ElementTransformation * GetElementTransformation(int i) const
Returns ElementTransformation for the i'th element.
void SetSize(int nsize)
Change logical size of the array, keep existing entries.
void GetElementVDofs(int i, Array< int > &dofs) const
Returns indexes of degrees of freedom in array dofs for i'th element.
virtual void GetEssentialVDofs(const Array< int > &bdr_attr_is_ess, Array< int > &ess_dofs) const
Determine the boundary degrees of freedom.
const FiniteElement * GetFE(int i) const
Returns pointer to the FiniteElement associated with i'th element.