Stop using the HAVE_UG flag
It dates back from the days when UG3 was not a Dune module yet. Use HAVE_DUNE_UGGRID instead.
Merge request reports
Activity
@christi , @andreas.dedner , other Python experts, can you please verify whether the Python-related change is correct?
Also, I am not sure whether removing the flag in
doc/
is the right thing to do. Does anybody know?- Resolved by Oliver Sander
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).- this is already part of my MR !559 (merged)
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 KochThis 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.).
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 */ mentioned in commit 2c5f2db9
mentioned in merge request staging/dune-uggrid!199 (merged)