]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix wrong ordering of degrees of freedom locations on faces.
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Mon, 28 Jun 2010 03:37:49 +0000 (03:37 +0000)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Mon, 28 Jun 2010 03:37:49 +0000 (03:37 +0000)
git-svn-id: https://svn.dealii.org/trunk@21391 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/deal.II/source/fe/fe_q.cc

index d8c9633f0c3fa328c029319c8f9bb57c1f7b7830..049a262235716aa37de3b52573f100a0265968ef 100644 (file)
@@ -1484,11 +1484,11 @@ FE_Q<3>::initialize_quad_dof_index_permutation ()
                                       // face_orientation=false, face_flip=false, face_rotation=false
       data(local,0)=j       + i      *n - local;
                                       // face_orientation=false, face_flip=false, face_rotation=true
-      data(local,1)=(n-1-i) + j      *n - local;
+      data(local,1)=i       + (n-1-j)*n - local;
                                       // face_orientation=false, face_flip=true,  face_rotation=false
       data(local,2)=(n-1-j) + (n-1-i)*n - local;
                                       // face_orientation=false, face_flip=true,  face_rotation=true
-      data(local,3)=i       + (n-1-j)*n - local;
+      data(local,3)=(n-1-i) + j      *n - local;
                                       // face_orientation=true,  face_flip=false, face_rotation=false
       data(local,4)=0;
                                       // face_orientation=true,  face_flip=false, face_rotation=true

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.