15#ifndef dealii_config_h
16#define dealii_config_h
23#define DEAL_II_PACKAGE_NAME "deal.II"
25#define DEAL_II_PACKAGE_VERSION "9.6.0"
27#define DEAL_II_VERSION_MAJOR 9
28#define DEAL_II_VERSION_MINOR 6
29#define DEAL_II_VERSION_SUBMINOR 0
37#define DEAL_II_WITH_ADOLC
38#define DEAL_II_WITH_ARPACK
40#define DEAL_II_WITH_ASSIMP
42#define DEAL_II_WITH_CGAL
43#define DEAL_II_WITH_COMPLEX_VALUES
45#define DEAL_II_WITH_GINKGO
46#define DEAL_II_WITH_GMSH
47#define DEAL_II_WITH_GSL
49#define DEAL_II_WITH_KOKKOS
51#define DEAL_II_WITH_LAPACK
54#define DEAL_II_WITH_METIS
56#define DEAL_II_WITH_MUPARSER
63#define DEAL_II_WITH_SUNDIALS
64#define DEAL_II_WITH_SYMENGINE
67#define DEAL_II_WITH_TBB
70#define DEAL_II_WITH_UMFPACK
72#define DEAL_II_USE_VECTORIZATION_GATHER
74#define DEAL_II_WITH_ZLIB
76#ifdef DEAL_II_WITH_TBB
81#define DEAL_II_WITH_THREADS
83#define TBB_SUPPRESS_DEPRECATED_MESSAGES 1
85#define DEAL_II_TBB_WITH_ONEAPI
103#define DEAL_II_COMPILER_USE_VECTOR_ARITHMETICS
105#define DEAL_II_HAVE_BUILTIN_EXPECT
106#define DEAL_II_HAVE_GLIBC_STACKTRACE
107#define DEAL_II_HAVE_LIBSTDCXX_DEMANGLER
109#define DEAL_II_ALWAYS_INLINE __attribute__((always_inline))
110#define DEAL_II_RESTRICT __restrict
111#define DEAL_II_COMPILER_HAS_DIAGNOSTIC_PRAGMA
126#define DEAL_II_VECTORIZATION_WIDTH_IN_BITS 128
131#if DEAL_II_VECTORIZATION_WIDTH_IN_BITS == 512
132#define DEAL_II_COMPILER_VECTORIZATION_LEVEL 3
133#elif DEAL_II_VECTORIZATION_WIDTH_IN_BITS == 256
134#define DEAL_II_COMPILER_VECTORIZATION_LEVEL 2
135#elif DEAL_II_VECTORIZATION_WIDTH_IN_BITS == 128
136#define DEAL_II_COMPILER_VECTORIZATION_LEVEL 1
138#define DEAL_II_COMPILER_VECTORIZATION_LEVEL 0
141#define DEAL_II_HAVE_ARM_NEON
143#define DEAL_II_OPENMP_SIMD_PRAGMA _Pragma("omp simd")
153#define DEAL_II_HAVE_CXX17
157#define DEAL_II_HAVE_FP_EXCEPTIONS
159#define DEAL_II_HAVE_CXX17_BESSEL_FUNCTIONS
164#define DEAL_II_WITH_CXX11
165#define DEAL_II_WITH_CXX14
166#define DEAL_II_WITH_CXX17
174#if defined(DEAL_II_HAVE_CXX20) && !defined(DEAL_II_DOXYGEN_DO_NOT_PARSE_REQUIRES_CLAUSES)
175# define DEAL_II_CXX20_REQUIRES(condition) requires(condition)
177# define DEAL_II_CXX20_REQUIRES(condition)
185#ifdef DEAL_II_HAVE_CXX23
186# define define DEAL_II_ASSUME(expr) [[assume(expr)]]
188# if defined(__clang__)
189# define DEAL_II_CXX23_ASSUME(expr) __builtin_assume(static_cast<bool>(expr))
190# elif defined(_MSC_VER) || defined(__ICC)
191# define DEAL_II_CXX23_ASSUME(expr) __assume(expr);
194# define DEAL_II_CXX23_ASSUME(expr) \
207#define DEAL_II_DEPRECATED [[deprecated]]
208#define DEAL_II_DEPRECATED_WITH_COMMENT(comment) [[deprecated(comment)]]
217#ifndef DEAL_II_DEPRECATED_EARLY
219#ifdef DEAL_II_EARLY_DEPRECATIONS
220#define DEAL_II_DEPRECATED_EARLY [[deprecated]]
222#define DEAL_II_DEPRECATED_EARLY
226#ifndef DEAL_II_DEPRECATED_EARLY_WITH_COMMENT
228#ifdef DEAL_II_EARLY_DEPRECATIONS
229#define DEAL_II_DEPRECATED_EARLY_WITH_COMMENT(comment) [[deprecated(comment)]]
231#define DEAL_II_DEPRECATED_EARLY_WITH_COMMENT(comment)
235#define DEAL_II_FALLTHROUGH [[fallthrough]]
236#define DEAL_II_CONSTEXPR constexpr
245#define DEAL_II_HAVE_SYS_RESOURCE_H
246#define DEAL_II_HAVE_UNISTD_H
247#define DEAL_II_HAVE_GETHOSTNAME
248#define DEAL_II_HAVE_GETPID
262#define DEAL_II_ADOLC_WITH_ATRIG_ERF
263#define DEAL_II_ADOLC_WITH_ADVANCED_BRANCHING
267#define DEAL_II_ARBORX_WITH_MPI
273#define DEAL_II_GMSH_WITH_API
282#define DEAL_II_SUNDIALS_WITH_IDAS
285#define DEAL_II_SYMENGINE_WITH_LLVM
291#define DEAL_II_CGAL_HAS_DEPRECATED_BOOST_INCLUDES
307#if defined(DEAL_II_BOOST_HAS_BROKEN_HEADER_DEPRECATIONS) || \
308 defined(DEAL_II_CGAL_HAS_DEPRECATED_BOOST_INCLUDES)
309# ifndef BOOST_ALLOW_DEPRECATED_HEADERS
310# define BOOST_ALLOW_DEPRECATED_HEADERS
331#define DEAL_II_VERSION_GTE(major,minor,subminor) \
332 ((DEAL_II_VERSION_MAJOR * 10000 + \
333 DEAL_II_VERSION_MINOR * 100 + \
334 DEAL_II_VERSION_SUBMINOR) \
336 (major)*10000 + (minor)*100 + (subminor))
341#define DEAL_II_BOOST_VERSION_MAJOR 1
342#define DEAL_II_BOOST_VERSION_MINOR 85
343#define DEAL_II_BOOST_VERSION_SUBMINOR 0
345#define DEAL_II_BOOST_VERSION_GTE(major,minor,subminor) \
346 ((DEAL_II_BOOST_VERSION_MAJOR * 100000 + \
347 DEAL_II_BOOST_VERSION_MINOR * 100 + \
348 DEAL_II_BOOST_VERSION_SUBMINOR) \
350 (major)*100000 + (minor)*100 + (subminor))
355#ifdef DEAL_II_WITH_GMSH
356# define DEAL_II_GMSH_EXECUTABLE_PATH "/usr/bin/gmsh"
363#ifdef DEAL_II_WITH_OPENCASCADE
364# define DEAL_II_OPENCASCADE_VERSION_MAJOR 7
365# define DEAL_II_OPENCASCADE_VERSION_MINOR 8
366# define DEAL_II_OPENCASCADE_VERSION_SUBMINOR 1
368# define DEAL_II_OPENCASCADE_VERSION_GTE(major,minor,subminor) \
369 ((DEAL_II_OPENCASCADE_VERSION_MAJOR * 10000 + \
370 DEAL_II_OPENCASCADE_VERSION_MINOR * 100 + \
371 DEAL_II_OPENCASCADE_VERSION_SUBMINOR) \
373 (major)*10000 + (minor)*100 + (subminor))
380#ifdef DEAL_II_WITH_P4EST
381# define DEAL_II_P4EST_VERSION_MAJOR
382# define DEAL_II_P4EST_VERSION_MINOR
383# define DEAL_II_P4EST_VERSION_SUBMINOR
384# define DEAL_II_P4EST_VERSION_PATCH
386# define DEAL_II_P4EST_VERSION_GTE(major,minor,subminor,patch) \
387 ((DEAL_II_P4EST_VERSION_MAJOR * 1000000 + \
388 DEAL_II_P4EST_VERSION_MINOR * 10000 + \
389 DEAL_II_P4EST_VERSION_SUBMINOR * 100 + \
390 DEAL_II_P4EST_VERSION_PATCH) \
392 (major)*1000000 + (minor)*10000 + (subminor)*100 + (patch))
399#ifdef DEAL_II_WITH_SUNDIALS
400 # define DEAL_II_SUNDIALS_VERSION_MAJOR 7
401 # define DEAL_II_SUNDIALS_VERSION_MINOR 0
402 # define DEAL_II_SUNDIALS_VERSION_PATCH 0
404 #define DEAL_II_SUNDIALS_VERSION_GTE(major,minor,patch) \
405 ((DEAL_II_SUNDIALS_VERSION_MAJOR * 10000 + \
406 DEAL_II_SUNDIALS_VERSION_MINOR * 100 + \
407 DEAL_II_SUNDIALS_VERSION_PATCH) \
409 (major)*10000 + (minor)*100 + (patch))
411 #define DEAL_II_SUNDIALS_VERSION_LT(major,minor,patch) \
412 ((DEAL_II_SUNDIALS_VERSION_MAJOR * 10000 + \
413 DEAL_II_SUNDIALS_VERSION_MINOR * 100 + \
414 DEAL_II_SUNDIALS_VERSION_PATCH) \
416 (major)*10000 + (minor)*100 + (patch))
426#ifdef DEAL_II_WITH_PETSC
427# define DEAL_II_PETSC_VERSION_LT(major,minor,subminor) \
428 PETSC_VERSION_LT(major,minor,subminor)
429# define DEAL_II_PETSC_VERSION_GTE(major,minor,subminor) \
430 PETSC_VERSION_GE(major,minor,subminor)
437#ifdef DEAL_II_WITH_SLEPC
438# define DEAL_II_SLEPC_VERSION_LT(major,minor,subminor) \
439 SLEPC_VERSION_LT(major,minor,subminor)
440# define DEAL_II_SLEPC_VERSION_GTE(major,minor,subminor) \
441 SLEPC_VERSION_GE(major,minor,subminor)
448#ifdef DEAL_II_WITH_TRILINOS
449# define DEAL_II_TRILINOS_VERSION_MAJOR
450# define DEAL_II_TRILINOS_VERSION_MINOR
451# define DEAL_II_TRILINOS_VERSION_SUBMINOR
453# define DEAL_II_TRILINOS_VERSION_GTE(major,minor,subminor) \
454 ((DEAL_II_TRILINOS_VERSION_MAJOR * 10000 + \
455 DEAL_II_TRILINOS_VERSION_MINOR * 100 + \
456 DEAL_II_TRILINOS_VERSION_SUBMINOR) \
458 (major)*10000 + (minor)*100 + (subminor))
465#ifdef DEAL_II_WITH_CGAL
466# define DEAL_II_CGAL_VERSION_MAJOR 6
467# define DEAL_II_CGAL_VERSION_MINOR 0
468# define DEAL_II_CGAL_VERSION_SUBMINOR 0
470# define DEAL_II_CGAL_VERSION_GTE(major, minor, subminor) \
471 ((DEAL_II_CGAL_VERSION_MAJOR * 10000 + DEAL_II_CGAL_VERSION_MINOR * 100 + \
472 DEAL_II_CGAL_VERSION_SUBMINOR) >= \
473 (major)*10000 + (minor)*100 + (subminor))
480#ifdef DEAL_II_WITH_MPI
481# define DEAL_II_MPI_VERSION_MAJOR
482# define DEAL_II_MPI_VERSION_MINOR
484# define DEAL_II_MPI_VERSION_GTE(major,minor) \
485 ((DEAL_II_MPI_VERSION_MAJOR * 100 + \
486 DEAL_II_MPI_VERSION_MINOR) \
488 (major)*100 + (minor))
490# define DEAL_II_MPI_VERSION_GTE(major,minor) false
494#ifdef DEAL_II_MPI_WITH_DEVICE_SUPPORT
503#define DEAL_II_NAMESPACE_OPEN namespace dealii {
504#define DEAL_II_NAMESPACE_CLOSE }
514#ifdef DEAL_II_COMPILER_HAS_DIAGNOSTIC_PRAGMA
517# define DEAL_II_DISABLE_EXTRA_DIAGNOSTICS \
518_Pragma("GCC diagnostic push") \
519_Pragma("GCC diagnostic ignored \"-Wunknown-pragmas\"") \
520_Pragma("GCC diagnostic ignored \"-Wpragmas\"") \
521_Pragma("GCC diagnostic ignored \"-Wunknown-warning-option\"") \
522_Pragma("GCC diagnostic ignored \"-Wunknown-warning\"") \
523_Pragma("GCC diagnostic ignored \"-Wextra\"") \
524_Pragma("GCC diagnostic ignored \"-Waddress-of-packed-member\"") \
525_Pragma("GCC diagnostic ignored \"-Wcast-function-type\"") \
526_Pragma("GCC diagnostic ignored \"-Wdeprecated-copy\"") \
527_Pragma("GCC diagnostic ignored \"-Wdeprecated-declarations\"") \
528_Pragma("GCC diagnostic ignored \"-Wdeprecated-volatile\"") \
529_Pragma("GCC diagnostic ignored \"-Wexpansion-to-defined\"") \
530_Pragma("GCC diagnostic ignored \"-Wfloat-conversion\"") \
531_Pragma("GCC diagnostic ignored \"-Wignored-attributes\"") \
532_Pragma("GCC diagnostic ignored \"-Wignored-qualifiers\"") \
533_Pragma("GCC diagnostic ignored \"-Wimplicit-fallthrough\"") \
534_Pragma("GCC diagnostic ignored \"-Winfinite-recursion\"") \
535_Pragma("GCC diagnostic ignored \"-Wint-in-bool-context\"") \
536_Pragma("GCC diagnostic ignored \"-Wmaybe-uninitialized\"") \
537_Pragma("GCC diagnostic ignored \"-Wmisleading-indentation\"") \
538_Pragma("GCC diagnostic ignored \"-Wmissing-field-initializers\"") \
539_Pragma("GCC diagnostic ignored \"-Wnested-anon-types\"") \
540_Pragma("GCC diagnostic ignored \"-Wnon-template-friend\"") \
541_Pragma("GCC diagnostic ignored \"-Wnon-virtual-dtor\"") \
542_Pragma("GCC diagnostic ignored \"-Wnonnull\"") \
543_Pragma("GCC diagnostic ignored \"-Woverflow\"") \
544_Pragma("GCC diagnostic ignored \"-Woverloaded-virtual\"") \
545_Pragma("GCC diagnostic ignored \"-Wpedantic\"") \
546_Pragma("GCC diagnostic ignored \"-Wsuggest-override\"") \
547_Pragma("GCC diagnostic ignored \"-Wtautological-constant-out-of-range-compare\"") \
548_Pragma("GCC diagnostic ignored \"-Wtautological-overlap-compare\"") \
549_Pragma("GCC diagnostic ignored \"-Wtype-limits\"") \
550_Pragma("GCC diagnostic ignored \"-Wundef\"") \
551_Pragma("GCC diagnostic ignored \"-Wunused-but-set-parameter\"") \
552_Pragma("GCC diagnostic ignored \"-Wunused-but-set-variable\"") \
553_Pragma("GCC diagnostic ignored \"-Wunused-function\"") \
554_Pragma("GCC diagnostic ignored \"-Wunused-parameter\"") \
555_Pragma("GCC diagnostic ignored \"-Wunused-private-field\"") \
556_Pragma("GCC diagnostic ignored \"-Wunused-variable\"") \
557_Pragma("GCC diagnostic ignored \"-Wuse-after-free\"") \
558_Pragma("GCC diagnostic warning \"-Wpragmas\"")
560# define DEAL_II_ENABLE_EXTRA_DIAGNOSTICS \
561_Pragma("GCC diagnostic pop")
565# define DEAL_II_DISABLE_EXTRA_DIAGNOSTICS
566# define DEAL_II_ENABLE_EXTRA_DIAGNOSTICS
575#define DEAL_II_FORTRAN_MANGLE(name, NAME) name ## _
577#define DEAL_II_FORTRAN_MANGLE_UNDERSCORE(name, NAME) name ## _
586 #define DEAL_II_STRINGIZE_HELPER(x) #x
587 #define DEAL_II_STRINGIZE(x) DEAL_II_STRINGIZE_HELPER(x)
588 #define DEAL_II_DO_PRAGMA(x) __pragma(x)
589 #define DEAL_II_WARNING(desc) DEAL_II_DO_PRAGMA(message(__FILE__ "(" DEAL_II_STRINGIZE(__LINE__) ") : warning: " #desc))
591 #define DEAL_II_DO_PRAGMA(x) _Pragma(#x)
592 #define DEAL_II_WARNING(desc) DEAL_II_DO_PRAGMA(message(#desc))
604#if defined(DEAL_II_WITH_MPI)
619#include <boost/version.hpp>
624 "The version number of boost that you are compiling with does not match the "
625 "version number of boost found during deal.II's configuration step. This "
626 "leads to difficult to understand bugs and is not supported. Please check "
627 "that you have set up your application with the same version of boost as "
#define DEAL_II_BOOST_VERSION_MINOR
#define DEAL_II_DISABLE_EXTRA_DIAGNOSTICS
#define DEAL_II_BOOST_VERSION_MAJOR
#define DEAL_II_ENABLE_EXTRA_DIAGNOSTICS
#define DEAL_II_BOOST_VERSION_SUBMINOR