]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Work around one problem with xlC
authorwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 7 Mar 2003 21:24:11 +0000 (21:24 +0000)
committerwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 7 Mar 2003 21:24:11 +0000 (21:24 +0000)
git-svn-id: https://svn.dealii.org/trunk@7286 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/deal.II/source/grid/tria_boundary.cc

index 27958b58258ad34fbe7407fee9493acb22502f69..9cb4c0ba0408203e3ba009343aec11512fee048a 100644 (file)
@@ -227,12 +227,11 @@ StraightBoundary<2>::
 get_normals_at_vertices (const Triangulation<2>::face_iterator &face,
                         Boundary<2>::FaceVertexNormals &face_vertex_normals) const
 {
-  const unsigned int dim=2;
-  const Tensor<1,dim> tangent = face->vertex(1) - face->vertex(0);
-  for (unsigned int vertex=0; vertex<GeometryInfo<dim>::vertices_per_face; ++vertex)
+  const Tensor<1,2> tangent = face->vertex(1) - face->vertex(0);
+  for (unsigned int vertex=0; vertex<GeometryInfo<2>::vertices_per_face; ++vertex)
                                     // compute normals from tangent
-    face_vertex_normals[vertex] = Point<dim>(tangent[1],
-                                            -tangent[0]);
+    face_vertex_normals[vertex] = Point<2>(tangent[1],
+                                           -tangent[0]);
 }
 
 #endif

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.