In order to build the DUNE core modules you need at least the following software:
- C++ compilers LLVM Clang >= 13 or GCC g++ >= 10, with standard library LLVM libc++ >= 13 or GNU libstdc++ >= 10.
- CMake >= 3.16
- pkg-config to find other optional dependencies
- The Python bindings require at least Python 3.7 or higher and are currently not compatible to libc++.
-
Propagate dependencies of
dune-commonwhen consumed. This means that a CMake project may finddune-commonand consume theDune::Commontarget without the need of the dune build system. -
Change the way include directories are set in dune projects. OLD behavior: use
include_directoriesindune_projectto set include dirs for the current project. NEW behavior: Provide a utilitydune_default_include_directoriesto set include dirs on targets manually. Which behavior to activate can be decided in each module by using the new dune policyDP_DEFAULT_INCLUDE_DIRS, which can be set toOLDorNEWcorrespondingly. -
The CMake function
dune_target_enable_all_packagescan now handle Interface libraries too. -
Add a module-specific CMake target
build_<module>_teststo compile only tests associated to a specific<module>. Additionally, add the<module>-name asLABELproperty to all tests created withdune_add_testsin that module. This allows to run these tests withctest -L <module>. -
Change the behavior of
dune_add_test: Do not add all package flags automatically. This new behavior can be controlled by the new Dune policyDP_TEST_ADD_ALL_FLAGS. -
Change the treatment of optional dependency modules listed in dune.module's
Suggestssection. OLD behavior: when a suggsted dependency is found by cmake, it becomes a required dependency for all downstream consumers of the module because the generated<module>-config.cmakefile contains a linefind_dependency(<suggested dependency>).find_package(module)fails when<suggested dependency>is not found by the downstream consumer. NEW behavior: suggested dependency are not added to<module>-config.cmakeunless explicitly enforced by calling a new helper macrodune_mark_module_as_required_dependency(<suggested dependency>). The behavior is controlled by setting the Dune policyDP_SUGGESTED_MODULE_DEPENDENCIES_REQUIRED_DOWNSTREAMtoOLDorNEW. When set toNEWthe old behavior is recovered if all suggested dependencies are explicitly marked withdune_mark_module_as_required_dependency(<suggested dependency>). When to mark a suggested dependency in this way? If a suggested dependency, if found, is compiled into targets exported by the dune module (e.g. it is needed to compile the module library) then the suggested dependency becomes a required dependency for all downstream modules and must bet marked with the new macro. If the suggested dependency is only used internally (e.g. in tests) or is used header-only, then there is no need to force the dependency upon downstream consumers. -
The
<module>-config.cmakewritten to the build tree now contains path hints for dune module dependencies. This makes it much easier for downstream consumers that do not use the Dune build system to find all module dependencies including transient module dependencies. Before this change, the downstream consumer would need to know about the build location even of transient dependencies that they do not directly use. We write two different config files, one for the build tree to be used in a build/develop setup and one that is being installed. The installed version does not contain any type hints and is therefore not polluted by local build paths.
-
Dune::IteratorRangenow supports different types for begin and end iterator to model C++20's sentinel terminated ranges. -
Add preprocessor macro
DUNE_FORCE_INLINEas a portable attribute to force inlining of functions (if supported). -
Add
bit_widthandcountl_zerooverloads forbigunsignedintobjects. -
DUNE_THROWno longer prevents functions from being used inconstexprcontexts, as long the exception is not thrown. As a sideproduct, the macros now also supports the syntaxDUNE_THROW(ExceptionType, a << b) << c << dandDUNE_THROW(ExceptionType) << a << b. -
Add
constexprqualifiers to many member functions ofDenseMatrix,FieldMatrix,DenseVector,FieldVector,ForwardIteratorFacade,BidirectionalIteratorFacade,RandomAccessIteratorFacade,TupleVectorand to the functionrange. -
Add concepts
Std::three_way_comparableandStd::three_way_comparable_withas well as an algorithmStd::lexicographical_compare_three_wayto provide library utilities for the<=>comparison operator. -
Add deduction guides to
TupleVectoranalogous tostd::tuple. -
Add concept definition
Std::indirectly_copyableto constrain theDenseMatrixAssigner. -
Add concept definition
Concept::Numberto represent scalar number types in containers. -
Add the macro
DUNE_ASSUMEfor portable compiler assumption. -
Fix bug in
operator<andoperator>of the iterators returned byIntegralRange.
- Deprecate the utility
integerSequenceEntryin favour of the shortergetfromintegersequence.hh.
- The
sdisttar ball name should not use-(see PEP 625) so use_insteadpip install dune-commonwill still work as expected butpip listwill now showdune_commonso the output ofpip listis parsed anywhere this is a breaking change. - Calling
dune.generator.setModuleLog( __file__ , procs=n)at the top of a script logs the names of all jit modules being loaded while the script is running. If the file exists all modules listed will be rebuild in parallel usingnthreads. Setting the environment variableDUNE_LOGMODULESto an integer greater than zero automatically logs the jit modules and rebuilds them in parallel if the file already exists. The value ofDUNE_LOGMODULESsets the number of threads used during the parallel rebuild. See MR https://gitlab.dune-project.org/core/dune-common/-/merge_requests/1540.
In order to build the DUNE core modules you need at least the following software:
- C++ compilers LLVM Clang >= 10 or GCC g++ >= 9
- CMake >= 3.16
- Optional: pkg-config to find other optional dependencies
- The Python bindings require at least Python 3.7 or higher. This is now enforced through CMake. The bindings are disabled prompting the user with a message containing the reason if no suitable Python version is found.
-
Fix bug where
AlignedNumbercould not check if placementnewalignment is correct. -
TupleVectornow implements the standard protocol for tuple-like types. -
There is a new base class
IteratorFacadethat unifiesForwardIteratorFacade,BidirectionalIteratorFacade,RandomAccessIteratorFacadeby making the iterator category a template. Furthermore the newIteratorFacadeclass allows to specify apointertype other thanvalue_type*to support proxy-iterators. The old facade classes remain unchanged for backward compatibility reasons. -
Add utilities
Std::span,Std::mdspan,Std::mdarrayand all its related classes into theDune::Stdnamespace for working with multidimensional arrays. See core/dune-common!1334 for further details. -
The construction of
FiedlMatrixandFieldVectorfromstd::initializer_listis nowconstexpr. -
Add concepts directory
dune/common/concepts/and some fundamental concept definitions using c++20-concepts. Those concepts are still experimental and are marked with the newdoxygencommand\experimental. Additionally, the preprocessor constantDUNE_ENABLE_CONCEPTSis provided when includingdune/common/concepts.hhthat tells whether the library and compiler understand the new c++20-concepts and the concept definitions can be used. This constant can also be set manually as a compilerflag to enforce enabling or disabling these features. -
Two concept definitions are added:
Dune::Concept::HashableandDune::Concept::[RandomAccess]Containerindune/common/concepts/directory. -
Add user-defined literals
_ic,_ucand_scto represent integral constants. -
Add "hybrid" functors for basic math operations with integral constant arguments, i.e.,
Hybrid::max,Hybrid::min,Hybrid::plus,Hybrid::minus, andHybrid::equal_to. Operations between two integral constants result in an integral constant, whereas operations with at least one non integral constant argument is performed on the underlying value type. -
Make
filledArraycompatible with non-default-constructble types. -
Add utility
CopyableOptionalthat allows to wrap types that are copy constructible but not copy assignable and provide assignment operations based on the constructors. -
Added the methods
checkThrow,requireThrowand the correspondingcheckNoThrow,requireNoThrowto theDune::TestSuiteto test for throwing and no throwing of exceptions. -
Add the utility
IsCompileTimeConstantto check for integral constants and anything with the same interface. -
Add dedicated includes
dune/common/metis.hhfor METIS anddune/common/parallel/parmetis.hhfor ParMETIS to be used instead of the direct includesmetis.handparmetis.h. -
Add utilities and algorithms to work with
std::integer_sequences. -
Fixed MPI implementation of
Communication::isend. -
Move special MPI-related compile flags, like
MPI_NO_CPPBIND, fromconfig.hinto the cmake utiltiyadd_dune_mpi_flagsand the related global package registration. -
Add new utility type
IndexedIteratorthat extends a given iterator by anindex()method returning a traversal index. -
Add a macro
DUNE_NO_UNIQUE_ADDRESSthat expands to the attribute[[no_unique_address]]or something similar, if supported by the compiler.
-
Remove deprecated macros
DUNE_VERSION_NEWERandDUNE_VERSION_NEWER_REV, useDUNE_VERSION_GTEandDUNE_VERSION_GTE_REVinstead. There was no deprecation compiler warning. -
The deprecated header
dune/common/function.hhhas been removed. Use C++ function objects andstd::functionstuff instead! -
The deprecated header
dune/common/std/utility.hhhas been removed. Use<utility>instead. -
The deprecated header
dune/common/std/variant.hhhas been removed. Use<variant>instead. -
The deprecated header
dune/common/to_unique_ptr.hhhas been removed. Usestd::unique_ptrorstd::shared_ptrinstead. -
Deprecated
conjunction,disjunction, andnegationhave been removed. Instead, use the structs from<type_traits>introduced with C++17. -
Remove deprecated
dune/common/std/apply.hh, usestd::applyinstead. -
Deprecated the file
dune/common/assertandreturn.hhand the contained utilityDUNE_ASSERT_AND_RETURN. Useassert()macro directly inconstexprfunctions. -
Remove deprecated header
power.hh. UseDune::powerfrommath.hhinstead. -
Deprecate class
SizeOf. Usesizeof...instead. -
Deprecate header
dune/common/keywords.hhand the provided macrosDUNE_GENERALIZED_CONSTEXPRandDUNE_INLINE_VARIABLE. Use the key words directly. -
Remove deprecated header
dune/python/common/numpycommdatahandle.hh. Usedune/python/grid/numpycommdatahandle.hhinstead. -
Remove in
dune/python/common/dimrange.hhtheDimRangespecializations for dune-typetree and dune-functions types. Those are moved to dune-functions. -
Deprecated
Hybrid::equals. UseHybrid::equal_toinstead. -
The preprocessor constant
HAVE_UMFPACKis deprecated. UseHAVE_SUITESPARSE_UMFPACKinstead.
-
Python: Add
TupleVectorPython bindings -
Python: The function
cppTypenow support Python tuples, which are converted to the C++ typestd::tuple -
Python: Add a dump/load functions to dune.common.pickle which add support for storing and recreating the JIT generated modules required for the pickling of dune objects to work. In addition a class for writing time series of pickled data is provided.
-
Python: Add a new argument class to the generator to add pickling support. The approach is similar to adding extra constructors or methods.
-
Python: Add a new command to
dune.__main__to compile existing modules in parallel, e.g., python -m dune make -j8 hierarchicalgrid Add the option to both 'remove' and 'make' commands to read module list from a file.
-
Add a
REQUIREDparameter todune_python_configure_bindings. If set toTRUEthe functions throws an error instead of a warning if the package setup fails. The default behavior (or settingREQUIREtoFALSE) is to show the warning during configuration and to continue. -
Dune package dependencies are now transitively resolved at
find_package(<dune-module>)calls instead of waiting until the call todune_project(). For example, a CMake call tofind_package(dune-grid)will transitively find the dune packagesdune-common,dune-geometryand (if available)dune-uggrid. Note that the targets provided by those found modules are still being set up at thedune_project()call. -
Documentation files in
doc/buildsystem/${ModuleName}.rstare now only copied. Previously, they were configured through the CMake functionconfigure_file()as a cmake template file. -
Try to find SuiteSparse during configuration.
-
The function
dune_add_library(<lib> ...)now requires to provideEXPORT_NAMEorNO_EXPORT. Moreover, a namespace can be specified via the argumentNAMESPACEwhich defaults toDune::and is prepended to the export name. We recommend to choose an export name with a camel title case matching your library name (e.g.,Common,ISTL, andMultiDomainGridwill be exported asDune::Common,Dune::ISTL, andDune::MultiDomainGrid). Warning: Both<lib>andDune::${EXPORT_NAME}are currently exported. Keep in mind that:- Libraries that consume
Dune::${EXPORT_NAME}will only be forward compatible with Dune 2.10. - Libraries that consume
<lib>will be supported until compatibility with Dune 2.9 is not required anymore.
- Libraries that consume
-
Generation of
config.his overhauled and split in a public and a private config file. Only the public file is installed and consumed by down-stream modules. For compatibility, the old single file is created, too. -
The CMake macro
finalize_dune_projectno longer has an optional argument, a config file is always created. -
Do not overwrite the
add_testcmake function with an error message. -
Setting the minimal c++ standard in cmake is now done by a cmake feature-requirement
cxx_std_17on thedunecommonlibrary target. This requirement is propagated to all other modules by linking againstdunecommon. -
We have changed the way optional dependencies are activated in the build-system internally. The cmake macros
add_dune_xy_flagsdo not set the compiler flag-DENABLE_XY=1anymore, but instead set directly the flag-DHAVE_XY=1. NeitherENABLE_XYnorHAVE_XYshould be modified manually by the user. Since theHAVE_XYflag is now set as a compiler flag, it is not included in theconfig.hfiles anymore. -
Add a policy system to smoothly change behavior in the build-system. This follows the cmake policy system but uses own IDs and is connected to dune module version instead of cmake versions.
-
Rename
<module>_INTERFACE_LIBRARIESinto<module>_LIBRARIES(representing all module-libraries) and introduce<module>_EXPORTED_LIBRARIESas a list of all libraries exported by the module.
-
Remove the search of (currently broken)
pkg-configfiles for dune packages. -
Remove the
ALLOW_CXXFLAGS_OVERWRITEconfigure option. TheCXXFLAGSoverload is still turned on for the JIT compiled Python modules. See the description of the MR https://gitlab.dune-project.org/core/dune-common/-/merge_requests/1251 for more details on how to use this feature in the source modules and on some new feature. -
Remove deprecated
add_directory_test_targetfunction. -
The cmake options
CXX_MAX_STANDARD,CXX_MAX_SUPPORTED_STANDARDandDISABLE_CXX_VERSION_CHECKare removed. The cmake functiondune_require_cxx_standard()is now deprecated. -
Deprecate CMake macro
message_verbose. Usemessage(VERBOSE "message text")instead. This macro will be removed after Dune 2.10. -
Remove deprecated CMake file
DuneCMakeCompat.cmakethat only contained a deprecation message. -
Remove deprecated CMake function
inkscape_generate_png_from_svg. Usedune_create_inkscape_image_converter_targetinstead. -
Remove deprecated
rmgenerated.py. Callpython -m dune removewith the same arguments instead. -
Remove
DunePythonDeprecations.cmakethat was used to ease the overhaul of Python CMake integration. -
Remove deprecated CMake function
dune_python_install_package. Usedune_python_configure_bindingsordune_python_configure_packageaccording to the needed behavior.
In order to build the DUNE core modules you need at least the following software:
- C++ compiler supporting c++-17 language standard, e.g., LLVM Clang >= 5, GCC g++ >= 7
- CMake >= 3.13
- Optional: pkg-config to find other optional dependencies
- Optional: Python >= 3.7 for Python bindings
-
Added feature test for lambdas in unevaluated contexts
DUNE_HAVE_CXX_UNEVALUATED_CONTEXT_LAMBDA. When defined, the C++ language allows to declare lambdas in unevaluated contexts, e.g.,F = decltype([](){}). -
Multiplication of two matrices using
a*bis now also implemented ifaorbis aFieldMatrixor if both areDiagonalMatrices. -
The utility function
transpose(m)will now returnm.transposed()if available. Otherwise it returns a wrapper storing a copy (this was a reference before) ofm. References to matrices can still be captured usingtranspose(std::ref(m))ortransposedView(m). -
The transposed of a
FieldMatrix,DiagonalMatrix, andDynamicMatrixis now available using thetransposed()member function. -
Add helper function
resolveRef()to transparently usestd::reference_wrapper. -
Add
pragma omp simdannotations in the LoopSIMD class to improve compiler optimizations -
deprecate Factorial in common/math.hh (use factorial function)
-
Add
python -m dune [info|configure|list|remove|dunetype|fix-dunepy]command to manage just-in-time generated python modules in dune-py -
The storage type
ReservedVectoris extended to follow more closely thestd::vectorandstd::arrayinterfaces.
-
Improve the the function
dune_add_libraryby separating the target types normal, interface, and object. Additional properties can be passed to the cmake function likeLINK_LIBRARIES,OUTPUT_NAME, andEXPORT_NAME -
Remove the variable
DUNE_DEFAULT_LIBS -
Deprecate cmake file
DuneCMakeCompat.cmakethat just contained the removed functiondune_list_filter -
Remove deprecated cmake file
DuneMPI.cmake -
Overhaul of the handling of Dune python packages: python bindings are now enabled by default. Packages are automatically installed either in an internal virtual environment or in an active environment during the module build process. See https://gitlab.dune-project.org/core/dune-common/-/merge_requests/960 which also contains a detailed set of instructions on how to update existing python bindings.
-
Deprecated
dune_python_install_package. Use eitherdune_python_configure_bindings(for Python bindings)dune_python_configure_package(for pure Python package). See https://gitlab.dune-project.org/core/dune-common/-/merge_requests/1148 for more details. Note that this MR also includes https://gitlab.dune-project.org/core/dune-common/-/merge_requests/1103: the Python bindings are not installed editable during the configure stage instead of the build stage. -
dune-py is now build using a simple 'Makefile' per module instead of relying on cmake for each module. The old cmake builder can still be used by exporting the environment variable
DUNE_PY_USE_CMAKEBUILDER=1. -
Remove deprecated cmake function overload
target_link_libraries -
Deprecate cmake function
remove_processed_modules -
The CI system now checks for common spelling mistakes using the
codespelltool.
-
Helper fallback implementations for
Std::to_false_type,Std::to_true_type,Std::is_invocable, andStd::is_invocable_rhave been removed. Instead, useDune::AlwaysFalse,Dune::AlwaysTrue,std::is_invocable, andstd::is_invocable_r. -
The deprecated headers
gcd.hhandlcm.hhare removed. Usestd::gcdandstd::lcminstead. -
Both deprecated macros
DUNE_DEPRECATEDandDUNE_DEPRECATED_MSG(text)are removed. Use C++14 attribute[[deprecated]]. However, be aware that it is no drop-in replacement, as it must be sometimes placed at different position in the code. -
The macros
DUNE_UNUSEDis removed Use C++17's attribute[[maybe_unused]]instead, but be aware that it is no drop-in replacement, as it must be sometimes placed at a different position in the code. -
In
callFixedSize, support handles withfixedsize()(lower case s) is removed. ImplementfixedSize()(camelCase) instead. -
CollectiveCommunicationandgetCollectiveCommunicationare deprecated and will be removed after Dune 2.9. UseCommunicationrespectivelygetCommunicationinstead. -
The header
power.hhis deprecated. UseDune::powerfrommath.hhinstead. -
The deprecated compatibility header
optional.hhis removed. Include<optional>instead. -
The compatibility header
make_array.hhis deprecated and will be removed after Dune 2.8. Use deduction guide ofstd::arrayorstd::to_array.
-
Set minimal required CMake version in cmake to >= 3.13.
-
Python bindings have been moved from dune-python to the core respective core modules.
-
Add
instancemethod to MPIHelper that does not expect arguments for access to the singleton object after initialization. -
Remove the cmake check for
HAVE_MPROTECTand also do not define this variable in theconfig.hfile. It is defined only inside the headerdebugallocator.hh. -
Remove deprecated type-traits
has_nan,is_indexable, andis_range, use the CamelCase versions instead. -
Deprecate fallback implementations
Dune::Std::apply,Dune::Std::bool_constant, andDune::Std::make_arrayin favor of std c++ implementations. -
Deprecate type traits
Dune::Std::to_false_type,Dune::Std::to_true_type.Dune::AlwaysFalseandDune::AlwaysTrue(from headerdune/common/typetraits.hh) now inherit fromstd::true_typeandstd::false_typeand are therefore exact replacements for these two type traits. -
Deprecate fallback implementation
Dune::Std::conjunction,Dune::Std::disjunction, andDune::Std::negation. Use std c++17 implementations. -
Deprecate fallback implementations
Dune::Std::is_callableandDune::Std::is_invocable. Use C++17 std implementationstd::is_invocableinstead. Be aware thatDune::Std::is_callableandstd::is_invocableare slightly different concepts, sincestd::is_invocablealso covers invocation of pointers to member functions and pointers to data members. To additionally constrain for that case, there is nowDune::IsCallable(indune/common/typetraits.hh) -
Added
Dune::IsCallable(indune/common/typetraits.hh) which is an improved version of the deprecatedDune::Std::is_callableand allows for checking if a type is a function object type, i.e. has a ()-operator than can be invoked with the given argument types and returns a specified return type. -
Remove c++ feature tests in cmake for existing c++-17 standards. Add default defines for
DUNE_HAVE_CXX_BOOL_CONSTANT,DUNE_HAVE_CXX_EXPERIMENTAL_BOOL_CONSTANT,DUNE_HAVE_HEADER_EXPERIMENTAL_TYPE_TRAITS,DUNE_HAVE_CXX_APPLY,DUNE_HAVE_CXX_EXPERIMENTAL_APPLY,HAVE_IS_INDEXABLE_SUPPORTinconfig.hfor one more release. -
Add backport of
FindPkgConfig.cmakefrom cmake 3.19.4 since there was a bug in an older find module leading to problems finding tbb in debian:10. -
Update the FindTBB cmake module to search for the
TBBConfig.cmakeor thetbb.pcfile containing the configuration. Add theAddTBBFlags.cmakefile containing the macroadd_dune_tbb_flagsthat must be called to use TBB. -
Set minimal required MPI version to >= 3.0.
-
Previous versions of dune-common imported
std::shared_ptrandstd::make_sharedinto theDunenamespace. dune-common-2.8 stops doing that. -
The file
function.hhis deprecated. It contained the two base classesFunctionandVirtualFunction. In downstream codes, these should be replaced by C++ function objects,std::functionetc. -
Python bindings have been moved from the
dune-pythonmodule which is now obsolete. To activate Python bindings the CMake flagDUNE_ENABLE_PYTHONBINDINGSneeds to be turned on (default is off). Furthermore, flags for either shared library or position independent code needs to be used. -
Support for distributing DUNE modules as python packages has been added. Package meta data is parsed in
packagemetadata.pyfrom the dune.module file. A script/bin/dunepackaging.pywas added to generate package files (setup.py,pyproject.toml) that can also be used to upload packages to the Python Package Index. For a brief description of what is required to add this support to existing dune modules see https://gitlab.dune-project.org/core/dune-common/-/merge_requests/900 Note that this can also be used to generate a package for dune modules that don't provide Python bindings. -
Eigenvectors of symmetric 2x2
FieldMatrixes are now computed correctly even when they have zero eigenvalues. -
Eigenvectors and values are now also supported for matrices and vectors with field_type being float.
-
The
ParameterTreeParser::readINITreecan now directly construct and return a parameter tree by using the new overload without parameter tree argument. -
MPIHelper::instance can now be called without parameters if it was already initialized.
-
MPITraits now support complex.
-
There is now a matrix wrapper transpose(M) that represents the transpose of a matrix.
-
The name mangling for Fortran libraries like BLAS and LAPACK is now done without a Fortran compiler. So a Fortran compiler is no longer a built requirement.
-
dune_list_filteris deprecated and will be removed after Dune 2.8. Uselist(FILTER ...)introduced by CMake 3.6 instead. -
ToUniquePtris deprecated and will be removed after Dune 2.8. Usestd::unique_ptrorstd::shared_ptrinstead. -
Remove the CMake options
DUNE_BUILD_BOTH_LIBSandDUNE_USE_ONLY_STATIC_LIBS. Use the default CMake way instead by settingBUILD_SHARED_LIBSaccordingly. Building both static and shared libraries is no longer supported. -
Deprecate the CMake function
inkscape_generate_png_from_svg. -
Remove the old and deprecated use of UseLATEX.cmake.
dune_add_latex_document' is a redirection toadd_latex_documentwhich internally useslatexmk`. -
Many of the CMake find modules habe been rewritten to use CMake's imported targets. These targets are also used in the DUNE CMake package configuration files, where they might appear in e.g. the dune-module_LIBRARIES. If you do not use the DUNE CMake build system the linker might complain about e.g. METIS::METIS not being found. In that case your either need to use the CMake modules shipped with DUNE or create these targets manually.
-
Remove deprecated header
dune/common/std/memory.hh; use<memory>instead. -
Deprecate header
dune/common/std/utility.hh; use<utility>instead. -
Deprecate header
dune/common/std/variant.hh; use<variant>instead. -
Remove incomplete CPack support that was never used to make an official build or tarball.
-
Both macros
DUNE_DEPRECATEDandDUNE_DEPRECATED_MSG(text)are deprecated and will be removed after Dune 2.8. Use C++14 attribute[[deprecated]]but be aware that it is no drop-in replacement, as it must be sometimes placed at different position in the code. -
The macros
DUNE_UNUSEDis deprecated and will be removed after Dune 2.8. Use C++17's attribute[[maybe_unused]]instead, but be aware that it is no drop-in replacement, as it must be sometimes placed at different position in the code. The use ofDUNE_UNUSED_PARAMETERis discouraged. -
Dune::void_t has been deprecated and will be removed. Please use std::void_t
-
Dune::lcd and Dune::gcd are deprecated and will be removed. Please use std::lcd and std::gcd.
-
VariableSizeCommunicator::fixedsize has been renamed to FixedSize in line with the communicator changes of dune-grid. The old method will be removed in 2.9.
-
Added fallback implementation to C++20 feature:
std::identity. -
A helper class
TransformedRangeViewwas added representing a transformed version of a given range using an unary transformation function. The transformation is done on the fly leaving the wrapped range unchanged. -
dune-commonnow provides an implementation ofstd::variantfor all compilers that support C++14. It is contained in the filedune/common/std/variant.hh, in the namespaceDune::Std::. If your compiler does support C++17 the implementation indune-commonis automatically disabled, and the official implementation from the standard library is used instead. -
By popular demand, dense vectors and matrices like
FieldVectorandFieldMatrixnow have additional operators. In particular, there are- Vector = - Vector
- Matrix = - Matrix
While these two work for any vector or matrix class that inherits from
DenseVectororDenseMatrix, the following additional methods only work forFieldVector: - Vector = Scalar * Vector
- Vector = Vector * Scalar
- Vector = Vector / Scalar
Correspondingly, the
FieldMatrixclass now has - Matrix = Matrix + Matrix
- Matrix = Matrix - Matrix
- Matrix = Scalar * Matrix
- Matrix = Matrix * Scalar
- Matrix = Matrix / Scalar
- Matrix = Matrix * Matrix Note that the operators
- Vector = Vector + Vector
- Vector = Vector - Vector have been introduced earlier.
-
The matrix size functions
N()andM()ofFieldMatrixandDiagonalMatrixcan now be used in aconstexprcontext. -
There is now (finally!) a method
powerin the filemath.hhthat computes powers with an integer exponent, and is usable in compile-time expressions. The use of the old power methods inpower.hhis henceforth discouraged. -
FieldMatrixandFieldVectorare now trivially copyable types if the underlying field type is trivially copyable.As a consequence the copy assignment operator of the
DenseVectorclass can no longer be used; just avoid going throughDenseVectorand use the real vector type instead (e.g.FieldVector).
-
The
VectorSizehelper has been deprecated. Thesize()method of vectors should be called directly instead. -
Drop support for Python 2. Only Python 3 works with Dune 2.7.
-
Support for older version than METIS 5.x and ParMETIS 4.x is deprecated and will be removed after Dune 2.7.
-
Deprecated header
dune/common/parallel/collectivecommunication.hhwhich will be removed after Dune 2.7. Use dune/common/parallel/communication.hh instead! -
Deprecated header
dune/common/parallel/mpicollectivecommunication.hhwhich will be removed after Dune 2.7. Use dune/common/parallel/mpicommunication.hh instead!
-
When run with an absolute build directory,
dunecontrolnow exposes the root build directory to CMake in the variableDUNE_BUILD_DIRECTORY_ROOT_PATH.See core/dune-common!542
-
The
dune_symlink_to_sources_filesCMake function now has aDESTINATIONargument. -
Dune no longer applies architecture flags detected by the Vc library automatically. This applies to all targets that link to Vc explicitly (with
add_dune_vc_flags()) or implicitly (withdune_enable_all_packages()). If you do want to make use of extended architecture features, set the architecture explicitly in the compiler options, e.g. by specifyingCMAKE_FLAGS="-DCMAKE_CXX_FLAGS=-march=native"in your opts-file. Vc also sets compiler options to select a particular C++ abi (
-fabi-versionand-fabi-compat-version), these continue to be applied automatically.See core/dune-common!677
-
FindParMETIS.cmakeassumes METIS was found first usingFindMETIS.cmakeand does not longer try to find METIS itself. -
The
inkscape_generate_png_from_svgCMake function is deprecated and will be removed after 2.7. -
LaTeX documents can now be built using
latexmkwith the help of UseLatexmk.cmake'sadd_latex_document.dune_add_latex_documentwill use the new way of calling LaTeX when the first argument isSOURCE. As a side effect, in-source builds are supported, too. The old function call and UseLATEX.cmake are deprecated and will be removed after 2.7.See core/dune-common!594
-
The build system has learned some new tricks when creating or looking for the Python virtualenv: When using an absolute build directory with
dunecontrol, the virtualenv will now be placed directly inside the root of the build directory hierarchy in the directorydune-python-env. This should make it much easier to actually find the virtualenv and also avoids some corner cases where the build system would create multiple virtualenvs that did not know about each other. This behavior can be disabled by settingDUNE_PYTHON_EXTERNAL_VIRTUALENV_FOR_ABSOLUTE_BUILDDIR=0. If you need even more precise control about the location of the virtualenv, you can now also directly set the CMake variableDUNE_PYTHON_VIRTUALENV_PATHto the directory in which to create the virtualenv.
This release is dedicated to Elias Pipping (1986-2017).
-
New class
IntegralRange<integral_type>and free standing functionrangeadded, providing a feature similar to Python'srangefunction:for (const auto &i : range(5,10))See core/dune-common!325
-
Dune::arraywas deprecated, usestd::arrayfrom instead. Instead ofDune::make_array, useDune::Std::make_arrayfrom dune/common/std/make_array.hh and instead ofDune::fill_arrayuseDune::filledArrayfrom dune/common/filledarray.hh.`See core/dune-common!359
-
The
DUNE_VERSION...macros are deprecated use the new macrosDUNE_VERSION_GT,DUNE_VERSION_GTE,DUNE_VERSION_LTE, andDUNE_VERSION_LTinstead.See core/dune-common!329
-
Added some additional fallback implementation to C++17 features: (e.g.
optional,conjunction,disjunction) -
makeVirtualFunction: allows to easily convert any function object (e.g. lambda) to aVirtualFunctionSee core/dune-common!282
-
Added infrastructure for explicit vectorization (experimental)
We added experimental support for SIMD data types. We currently provide infrastructure to use Vc and some helper functions to transparently switch between scalar data types and SIMD data types.
-
FieldMatrixnow has experimental support for SIMD types from Vc as field types.See core/dune-common!121
-
Variables passed via
dunecontrol's command--configure-opts=..are now added to the CMake flags. -
Bash-style variables which are passed to
dunecontrol's commandconfigure-optsare no longer transformed to their equivalent CMake command. Pass-DCMAKE_C_COMPILER=gccinstead ofCC=gcc. -
Added support for modules providing additional Python modules or bindings.