]> https://gitweb.dealii.org/ - dealii.git/commit
Split a function to avoid a pointless warning in this code for 1d:
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Mon, 27 Jun 2005 15:03:21 +0000 (15:03 +0000)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Mon, 27 Jun 2005 15:03:21 +0000 (15:03 +0000)
commit12c4c9d57f7ca1fc14b9a59910570d4f05a91877
treef9ae066956f56e9ae21bfbe14367c60a1283ba3a
parent45ebd0a3e8f303485f05e1ea44732f76368ac61b
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.