From 53fffac3819799782d8070b6eca572f982cd881a Mon Sep 17 00:00:00 2001 From: wolf Date: Fri, 7 Mar 2003 21:24:11 +0000 Subject: [PATCH] Work around one problem with xlC git-svn-id: https://svn.dealii.org/trunk@7286 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/deal.II/source/grid/tria_boundary.cc | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/deal.II/deal.II/source/grid/tria_boundary.cc b/deal.II/deal.II/source/grid/tria_boundary.cc index 27958b5825..9cb4c0ba04 100644 --- a/deal.II/deal.II/source/grid/tria_boundary.cc +++ b/deal.II/deal.II/source/grid/tria_boundary.cc @@ -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::vertices_per_face; ++vertex) + const Tensor<1,2> tangent = face->vertex(1) - face->vertex(0); + for (unsigned int vertex=0; vertex::vertices_per_face; ++vertex) // compute normals from tangent - face_vertex_normals[vertex] = Point(tangent[1], - -tangent[0]); + face_vertex_normals[vertex] = Point<2>(tangent[1], + -tangent[0]); } #endif -- 2.39.5