22 template<
typename Scalar>
25 this->cnt = other.
cnt;
26 memcpy(this->idx, other.
idx,
sizeof(
int)* H2D_MAX_LOCAL_BASIS_SIZE);
27 memcpy(this->dof, other.
dof,
sizeof(
int)* H2D_MAX_LOCAL_BASIS_SIZE);
28 memcpy(this->coef, other.
coef,
sizeof(Scalar)* H2D_MAX_LOCAL_BASIS_SIZE);
31 template<
typename Scalar>
37 template<
typename Scalar>
43 template<
typename Scalar>
44 int* AsmList<Scalar>::get_dof()
49 template<
typename Scalar>
50 unsigned int AsmList<Scalar>::get_cnt()
55 template<
typename Scalar>
56 Scalar* AsmList<Scalar>::get_coef()
61 template<
typename Scalar>
64 if (!(cnt < H2D_MAX_LOCAL_BASIS_SIZE - 1))
65 assert(cnt < H2D_MAX_LOCAL_BASIS_SIZE - 1);
void add_triplet(int i, int d, Scalar c)
Adds a record for one basis function (shape functions index, basis functions index, coefficient).
int dof[H2D_MAX_LOCAL_BASIS_SIZE]
array of basis function numbers (DOFs)
unsigned short cnt
the number of items in the arrays idx, dof and coef
Scalar coef[H2D_MAX_LOCAL_BASIS_SIZE]
array of coefficients
int idx[H2D_MAX_LOCAL_BASIS_SIZE]
array of shape function indices