template <int dim>
void PlasticityContactProblem<dim>::assemble_mass_matrix_diagonal (TrilinosWrappers::SparseMatrix &mass_matrix)
{
- QTrapez<dim-1> face_quadrature_formula;
+ QTrapez<dim-1> face_quadrature_formula;
FEFaceValues<dim> fe_values_face (fe, face_quadrature_formula,
update_values |
const unsigned int n_face_q_points = face_quadrature_formula.size();
FullMatrix<double> cell_matrix (dofs_per_cell, dofs_per_cell);
+ Tensor<1,dim,double> ones (dim);
+ for (unsigned i=0; i<dim; i++)
+ ones[i] = 1.0;
std::vector<unsigned int> local_dof_indices (dofs_per_cell);
for (unsigned int q_point=0; q_point<n_face_q_points; ++q_point)
for (unsigned int i=0; i<dofs_per_cell; ++i)
cell_matrix(i,i) += (fe_values_face[displacement].value (i, q_point) *
- fe_values_face[displacement].value (i, q_point) *
+ ones *
fe_values_face.JxW (q_point));
cell->get_dof_indices (local_dof_indices);