From: Guido Kanschat Date: Sun, 3 Apr 2005 12:41:53 +0000 (+0000) Subject: allow vector valued elements X-Git-Tag: v8.0.0~14210 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ab40550026c2d86e68e074251d1bdb5179caa0be;p=dealii.git allow vector valued elements git-svn-id: https://svn.dealii.org/trunk@10337 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/deal.II/source/fe/fe_tools.cc b/deal.II/deal.II/source/fe/fe_tools.cc index 358a84d82b..c660a073d2 100644 --- a/deal.II/deal.II/source/fe/fe_tools.cc +++ b/deal.II/deal.II/source/fe/fe_tools.cc @@ -478,6 +478,7 @@ FETools::compute_embedding_matrices(const FiniteElement& fe, { const unsigned int nc = GeometryInfo::children_per_cell; const unsigned int n = fe.dofs_per_cell; + const unsigned int nd = fe.n_components(); const unsigned int degree = fe.degree; for (unsigned int i=0;i& fe, * children. */ fine.reinit(dof_fine.begin_active()); - FullMatrix A(nq, n); - for (unsigned int i=0;i A(nq*nd, n); + for (unsigned int d=0;d v_coarse(nq); + Vector v_coarse(nq*nd); Vector v_fine(n); unsigned int cell_number = 0; @@ -559,8 +561,9 @@ FETools::compute_embedding_matrices(const FiniteElement& fe, // function values of the // coarse grid function in // each quadrature point. - for (unsigned int k=0;k