From: angelrca Date: Tue, 2 Jun 2015 14:32:24 +0000 (+0200) Subject: VectorTools::interpolate changed X-Git-Tag: v8.3.0-rc1~130^2~6^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1c013a7e3810dc73f1d23bad8d8fd50d09abf691;p=dealii.git VectorTools::interpolate changed --- diff --git a/include/deal.II/numerics/vector_tools.templates.h b/include/deal.II/numerics/vector_tools.templates.h index 60fbd05842..0de44897bb 100644 --- a/include/deal.II/numerics/vector_tools.templates.h +++ b/include/deal.II/numerics/vector_tools.templates.h @@ -111,7 +111,7 @@ namespace VectorTools for (unsigned int fe_index=0; fe_indexis_locally_owned()) { const unsigned int fe_index = cell->active_fe_index(); - - // for each cell: - // get location of finite element - // support_points - fe_values.reinit(cell); - const std::vector > &support_points = - fe_values.get_present_fe_values().get_quadrature_points(); - - // pick out the representative - // support points - rep_points.resize (dofs_of_rep_points[fe_index].size()); - for (unsigned int j=0; jget_dof_indices (dofs_on_cell); - - - if (fe_is_system) - { - // get function values at - // these points. Here: get - // all components - function_values_system[fe_index] - .resize (n_rep_points[fe_index], - Vector (fe[fe_index].n_components())); - function.vector_value_list (rep_points, - function_values_system[fe_index]); - // distribute the function - // values to the global - // vector - for (unsigned int i=0; i > &support_points = + fe_values.get_present_fe_values().get_quadrature_points(); + + // pick out the representative + // support points + rep_points.resize (dofs_of_rep_points[fe_index].size()); + for (unsigned int j=0; jget_dof_indices (dofs_on_cell); + + + if (fe_is_system) + { + // get function values at + // these points. Here: get + // all components + function_values_system[fe_index] + .resize (n_rep_points[fe_index], + Vector (fe[fe_index].n_components())); + function.vector_value_list (rep_points, + function_values_system[fe_index]); + // distribute the function + // values to the global + // vector + for (unsigned int i=0; i