From: bangerth Date: Tue, 7 Aug 2012 13:28:27 +0000 (+0000) Subject: Implement Guido's suggestion of a function that does the any_cast so that one X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b2233e41cc4a25794189e8d6517a5016d1c3c963;p=dealii-svn.git Implement Guido's suggestion of a function that does the any_cast so that one never has to do it oneself. git-svn-id: https://svn.dealii.org/branches/branch_higher_derivatives@25755 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/include/deal.II/fe/fe.h b/deal.II/include/deal.II/fe/fe.h index 5a8b51b0d9..3813fde941 100644 --- a/deal.II/include/deal.II/fe/fe.h +++ b/deal.II/include/deal.II/fe/fe.h @@ -639,9 +639,20 @@ class FiniteElement : public Subscriptor, */ virtual boost::any + shape_nth_derivative_internal (const unsigned int i, + const Point &p, + const unsigned int nth_derivative) const; + + template + Tensor shape_nth_derivative (const unsigned int i, - const Point &p, - const unsigned int nth_derivative) const; + const Point &p, + const unsigned int nth_derivative) const + { + return boost::any_cast > + (shape_nth_derivative_internal (i, p, nth_derivative)); + } + /** * For computing the