Skip to content
Snippets Groups Projects

Stop using the HAVE_UG flag

Merged Oliver Sander requested to merge remove-old-have-ug-flag into master
3 unresolved threads

It dates back from the days when UG3 was not a Dune module yet. Use HAVE_DUNE_UGGRID instead.

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Oliver Sander added 1 commit

    added 1 commit

    Compare with previous version

  • Oliver Sander resolved all threads

    resolved all threads

  • 3 3 dune_python_install_package(
    4 4 PATH "."
    5 5 DEPENDS _grid
    6 CMAKE_METADATA_FLAGS DUNE_OPTS_FILE HAVE_ALBERTA HAVE_UG
    6 CMAKE_METADATA_FLAGS DUNE_OPTS_FILE HAVE_ALBERTA HAVE_DUNE_UGGRIDS
    7 7 )
    • This is exactly the problem... the HAVE_DUNE_UGGRIDS flag is not (yet) available, as it is only defined in dune_finalize, see dune-common!1074 (merged).

    • So what do you want me to do here? Keep the HAVE_UG? Or remove the variable from that line altogether?

    • in CMake it should be dune-uggrid_FOUND no? HAVE_DUNE_UGGRID is the preprocessor variable. (Sometimes this is mixed for some variables. But for dune modules there is this clear separation I think.) But then I'm not sure what this like exactly does... I suspect it only passes the string and the value is then later extracted.

      Edited by Timo Koch
    • This specifies the meta data for python. The current implementation stores the set of variables to and makes them available in python under exactly the same name.

      In order to have C++ and python consistent, we should imho use the preprocessor name here (which currently does not work, as discussed in the other MR.).

    • Please register or sign in to reply
  • 46 46 application uses the ALBERTA_CPPFLAGS */
    47 47 #cmakedefine HAVE_ALBERTA ENABLE_ALBERTA
    48 48
    49 /* Alias for HAVE_DUNE_UGGRID for backwards compatibility */
  • Oliver Sander mentioned in commit 2c5f2db9

    mentioned in commit 2c5f2db9

  • merged

  • Please register or sign in to reply
    Loading