27 for (i = 0; i < vsize; i++)
35 for (i = j = 0; i < vsize; i++)
42 for (i = 0; i < nv; i++)
57 for (
int i = 0; i <
fes->
GetNE(); i++)
63 for (
int k = 0; k <
dfi.Size(); k++)
65 energy +=
dfi[k]->GetElementEnergy(*fe, *T, el_x);
82 for (
int i = 0; i <
fes->
GetNE(); i++)
88 for (
int k = 0; k <
dfi.Size(); k++)
90 dfi[k]->AssembleElementVector(*fe, *T, el_x, el_y);
104 const int skip_zeros = 0;
121 for (
int i = 0; i <
fes->
GetNE(); i++)
127 for (
int k = 0; k <
dfi.Size(); k++)
129 dfi[k]->AssembleElementGrad(*fe, *T, el_x, elmat);
151 for (
int i = 0; i <
dfi.Size(); i++)
Abstract class for Finite Elements.
int Size() const
Logical size of the array.
void GetElementVDofs(int i, Array< int > &vdofs) 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_vdofs) const
void GetSubVector(const Array< int > &dofs, Vector &elemvect) const
void EliminateRowCol(int rc, const double sol, Vector &rhs, int d=0)
Data type dense matrix using column-major storage.
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.
const FiniteElement * GetFE(int i) const
Returns pointer to the FiniteElement associated with i'th element.