Dear all, If I don't have the exact solution, but I want to compute the L2 form of u_{h}-u_{finest} (i.e. see u_{finest} as the exact solution, and u_{finest} is the numerical solution with the finest mesh grid among the series we want to test, for example, the width of the unit meshgrid is h = 1/2^k, k=6,7,8,9,10. So the u_{finest}=u_{h=1/2^10}). Does deal.ii have a function like template<int dim, class InVector , class OutVector , int spacedim>
void VectorTools::integrate_difference ( const Mapping <https://www.dealii.org/developer/doxygen/deal.II/classMapping.html>< dim, spacedim > & mapping, const DoFHandler <https://www.dealii.org/developer/doxygen/deal.II/classDoFHandler.html>< dim , spacedim > & dof, const InVector & fe_function, const Function <https://www.dealii.org/developer/doxygen/deal.II/classFunction.html>< spacedim, double > & exact_solution, OutVector & difference, const Quadrature <https://www.dealii.org/developer/doxygen/deal.II/classQuadrature.html>< dim > & q, const NormType <https://www.dealii.org/developer/doxygen/deal.II/group__numerics.html#ga69967cb7a148a7169963126249213db1> & norm, const Function <https://www.dealii.org/developer/doxygen/deal.II/classFunction.html>< spacedim, double > * weight = nullptr, const double exponent = 2. ) and doesn't use const Function <https://www.dealii.org/developer/doxygen/deal.II/classFunction.html>< spacedim, double > & exact_solution, but use const InVector & fe_function, at this location of input parameters. Thanks in advance! Best, Chucui -- The deal.II project is located at http://www.dealii.org/ For mailing list/forum options, see https://groups.google.com/d/forum/dealii?hl=en --- You received this message because you are subscribed to the Google Groups "deal.II User Group" group. To unsubscribe from this group and stop receiving emails from it, send an email to dealii+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.