Thank you Guido it worked as you said simply adding to my quadrature integral.
for (unsigned int face=0; face<GeometryInfo<dim>::faces_per_cell; ++face)
if (cell->face(face)->at_boundary())
{
fe_face_values.reinit (cell, face);
for (unsigned int i=0; i<dofs_per_cell; ++i)
for (unsigned int j=0; j<dofs_per_cell; ++j)
for (unsigned int q_point=0; q_point<n_face_q_points; ++q_point)
{
cell_A_matrix(i, j) += (factor*
fe_face_values.shape_value(i, q_point) *
fe_face_values.shape_value(j, q_point)
)*fe_face_values.JxW(q_point);
}
}
However, now , the error of the eigenvalues is 10 times greater (compared with the analytical ones) using the same grid and refination. Am I forgetting something? Should I made something with the mass_matrix (B matrix) ?