std::vector<ADNumberType> old_solution_values(fe_fv.n_quadrature_points);
fe_fv[u_fe].get_function_values_from_local_dof_values(dof_values_ad, old_solution_values);
std::vector<Tensor<1, dim, ADNumberType>> old_solution_gradients(fe_fv.n_quadrature_points);
fe_fv[u_fe].get_function_gradients_from_local_dof_values(dof_values_ad, old_solution_gradients);
to then assemble the residual and automatically compute the Jacobian. The full code is appended.
For the face_worker, however, I think I would need functions like
std::vector<Tensor<1, dim, ADNumberType>> old_average_of_gradients(fe_fv.n_quadrature_points);
fe_iv[u_fe].get_average_of_gradients_from_local_dof_values(dof_values_ad, old_average_of_gradients);
Since I didn't find these functions, I think they might not exist yet.
Therefore my question.
- If these functions don't exist, what alternative approach do you see to get the desired average of gradients of the old solution vector?
Thank you very much in advance for any help and best regards,
Nik