Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • dumux dumux
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 91
    • Issues 91
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 80
    • Merge requests 80
  • Deployments
    • Deployments
    • Releases
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Wiki
    • Wiki
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • dumux-repositories
  • dumuxdumux
  • Issues
  • #861
Closed
Open
Created Apr 14, 2020 by Kilian Weishaupt@kweisOwner

Maxwell-Stefan causes compiler warnings

Using g++7 with release opts, the following warning is emitted:

/temp/weishaupt/Dumux_testing/dumux/test/porousmediumflow/1pnc/implicit/1p3c/problem.hh:136:9: Warnung: assuming signed overflow does not occur when assuming that (X + c) < X is always false [-Wstrict-overflow]
         if (compIIdx > compJIdx)

This comes from the custom fluid systems used in the Maxwell-Stefan tests.

See https://gitlab.dune-project.org/core/dune-geometry/-/merge_requests/19 or https://stackoverflow.com/questions/12984861/dont-understand-assuming-signed-overflow-warning

This probably comes from loop unrolling when calling binaryDiffusionCoefficient from somewhere. compJIdx is always larger than compIIdx but I don't get yet why this triggers the warning.

Edited Apr 14, 2020 by Kilian Weishaupt
Assignee
Assign to
Time tracking