Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
D
dune-grid
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 41
    • Issues 41
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 21
    • Merge Requests 21
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Incidents
    • Environments
  • Analytics
    • Analytics
    • CI / CD
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Core Modules
  • dune-grid
  • Issues
  • #114

Closed
Open
Opened Aug 13, 2020 by Christoph Grüninger@gruenichOwner

Tautological compare in GeometryGrid

I tested some of Oliver's code with dune-grid 2.7 and Clang 10 complained the following:

/home/gruech/dune/2.7/dune-grid/dune/grid/geometrygrid/geometry.hh:34:87: warning: bitwise comparison always evaluates to false [-Wtautological-compare]
   34 |       static const bool v = hasSingleGeometryType::v && ((mydim == dim) || ((id | 1u) == 1u) || ((id | 1u) == idMask));
      |                                                                            ~~~~~~~~~~~^~~~~~

Quite interesting, but I don't know what should be the actual statement. Can someone help?

Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None
Reference: core/dune-grid#114