]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
why not use dofs_per_face?
authorkanschat <kanschat@0785d39b-7218-0410-832d-ea1e28bc413d>
Sun, 24 Oct 2010 17:34:40 +0000 (17:34 +0000)
committerkanschat <kanschat@0785d39b-7218-0410-832d-ea1e28bc413d>
Sun, 24 Oct 2010 17:34:40 +0000 (17:34 +0000)
git-svn-id: https://svn.dealii.org/trunk@22457 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/deal.II/source/dofs/dof_tools.cc

index 539a5d215c838d03fdb6c17045d6cd5d82c3c63f..20f7bb0f2a5a15f9337107ed53813bd02a021f5a 100644 (file)
@@ -2240,15 +2240,12 @@ namespace internal
                const FiniteElement<dim> &fe       = cell->get_fe();
                const unsigned int        fe_index = cell->active_fe_index();
 
-               const unsigned int
-                 n_dofs_on_mother   = (4*fe.dofs_per_vertex+
-                                       4*fe.dofs_per_line+
-                                       fe.dofs_per_quad),
-                 n_dofs_on_children = (5*fe.dofs_per_vertex+
-                                       12*fe.dofs_per_line+
-                                       4*fe.dofs_per_quad);
-                                                //TODO[TL]: think about this and the following in case of anisotropic refinement
-
+             const unsigned int n_dofs_on_mother = fe.dofs_per_face;
+             const unsigned int n_dofs_on_children = (5*fe.dofs_per_vertex+
+                                     12*fe.dofs_per_line+
+                                     4*fe.dofs_per_quad);
+//TODO[TL]: think about this and the following in case of anisotropic refinement
+             
                dofs_on_mother.resize (n_dofs_on_mother);
                dofs_on_children.resize (n_dofs_on_children);
 

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.