@@ -465,7 +465,8 @@ void assemble_SchroedingerEquation(EquationSystems &es, const std::string &syste
465465 Number potval = -1. /(q_point [qp ]).norm ();
466466
467467 // Now, get number of shape functions that are nonzero at this point::
468- unsigned int n_sf = cfe -> n_shape_functions ();
468+ const unsigned int n_sf =
469+ FEInterface ::n_dofs (cfe -> get_fe_type (), elem );
469470 // loop over them:
470471 for (unsigned int i = 0 ; i < n_sf ; i ++ )
471472 {
@@ -539,7 +540,8 @@ void assemble_SchroedingerEquation(EquationSystems &es, const std::string &syste
539540 // the base side always has number 0
540541 const unsigned int side = 0 ;
541542 face_fe -> reinit (elem , side );
542- unsigned int n_sf = face_fe -> n_shape_functions ();
543+ const unsigned int n_sf =
544+ FEInterface ::n_dofs (face_fe -> get_fe_type (), elem );
543545
544546 H .resize (dof_indices .size (), dof_indices .size ());
545547
@@ -639,7 +641,8 @@ void assemble_SchroedingerEquation(EquationSystems &es, const std::string &syste
639641 //out<<"neighbor id: "<<relevant_neighbor->id();
640642 //out<<" this id: "<<elem->id()<<std::endl;
641643 face_fe -> reinit (elem , side );
642- unsigned int n_sf = face_fe -> n_shape_functions ();
644+ const unsigned int n_sf =
645+ FEInterface ::n_dofs (face_fe -> get_fe_type (), elem );
643646
644647 H .resize (dof_indices .size (), dof_indices .size ());
645648
0 commit comments