]> https://gitweb.dealii.org/ - dealii-svn.git/commit
Split a function to avoid a pointless warning in this code for 1d:
authorwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 27 Jun 2005 15:03:21 +0000 (15:03 +0000)
committerwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 27 Jun 2005 15:03:21 +0000 (15:03 +0000)
commitaca066cca84355f96b39e983989e1559105e9d72
tree4638c3767ae0435f0f8fdff9b9dc04d0f558d1b5
parentb0964aaed5c93b2cb536bbe44f1dee80038a1689
Split a function to avoid a pointless warning in this code for 1d:
      else if (dim == 3)
        {
                                           // see whether the
                                           // given line is on the
                                           // given face.
          for (unsigned int l=0; l<GeometryInfo<dim>::lines_per_face; ++l)
            if (GeometryInfo<3>::face_to_cell_lines(face_index, l) == line_index)
              return true;

Both gcc and icc complain that the loop condition is always false in 1d,
missing the fact that this loop is only ever executed if dim!=1...

git-svn-id: https://svn.dealii.org/trunk@10953 0785d39b-7218-0410-832d-ea1e28bc413d
deal.II/deal.II/source/fe/fe_q.cc

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.