13#ifndef dealii_config_h
14#define dealii_config_h
19#include <Kokkos_Macros.hpp>
25#define DEAL_II_PACKAGE_NAME "deal.II"
27#define DEAL_II_PACKAGE_VERSION "GIT relicensing-6842-g793a97d2aa 2026-10-02 14:00:01+00:00"
29#define DEAL_II_VERSION_MAJOR GIT relicensing-6842-g793a97d2aa 2026-10-02 14:00:01+00:00
30#define DEAL_II_VERSION_MINOR GIT relicensing-6842-g793a97d2aa 2026-10-02 14:00:01+00:00
31#define DEAL_II_VERSION_SUBMINOR GIT relicensing-6842-g793a97d2aa 2026-10-02 14:00:01+00:00
38#define DEAL_II_NAMESPACE_OPEN namespace dealii {
39#define DEAL_II_NAMESPACE_CLOSE }
94#define DEAL_II_FEATURE_BOOST_BUNDLED_CONFIGURED
102#define DEAL_II_WITH_KOKKOS
103#define DEAL_II_FEATURE_KOKKOS_BUNDLED_CONFIGURED
107#define DEAL_II_WITH_MAGIC_ENUM
108#define DEAL_II_FEATURE_MAGIC_ENUM_BUNDLED_CONFIGURED
112#define DEAL_II_WITH_MUPARSER
113#define DEAL_II_FEATURE_MUPARSER_BUNDLED_CONFIGURED
123#define DEAL_II_WITH_TASKFLOW
124#define DEAL_II_FEATURE_TASKFLOW_BUNDLED_CONFIGURED
129#define DEAL_II_USE_VECTORIZATION_GATHER
133#ifdef DEAL_II_WITH_TBB
138#define DEAL_II_WITH_THREADS
140#define TBB_SUPPRESS_DEPRECATED_MESSAGES 1
142#define DEAL_II_TBB_WITH_ONEAPI
160#define DEAL_II_COMPILER_USE_VECTOR_ARITHMETICS
162#define DEAL_II_HAVE_BUILTIN_EXPECT
163#define DEAL_II_HAVE_GLIBC_STACKTRACE
164#define DEAL_II_HAVE_LIBSTDCXX_DEMANGLER
166#define DEAL_II_ALWAYS_INLINE __attribute__((always_inline))
167#define DEAL_II_RESTRICT __restrict
168#define DEAL_II_COMPILER_HAS_DIAGNOSTIC_PRAGMA
171#define DEAL_II_HOST_DEVICE KOKKOS_FUNCTION
172#define DEAL_II_HOST_DEVICE_ALWAYS_INLINE KOKKOS_FORCEINLINE_FUNCTION
179#if (defined(__clang__) && defined(__CUDA__)) || defined(DEAL_II_KOKKOS_ENABLE_HIP)
180# define DEAL_II_HOST __host__
199#define DEAL_II_VECTORIZATION_WIDTH_IN_BITS 128
204#if DEAL_II_VECTORIZATION_WIDTH_IN_BITS == 512
205#define DEAL_II_COMPILER_VECTORIZATION_LEVEL 3
206#elif DEAL_II_VECTORIZATION_WIDTH_IN_BITS == 256
207#define DEAL_II_COMPILER_VECTORIZATION_LEVEL 2
208#elif DEAL_II_VECTORIZATION_WIDTH_IN_BITS == 128
209#define DEAL_II_COMPILER_VECTORIZATION_LEVEL 1
211#define DEAL_II_COMPILER_VECTORIZATION_LEVEL 0
214#define DEAL_II_OPENMP_SIMD_PRAGMA _Pragma("omp simd")
224#define DEAL_II_HAVE_CXX17
229#define DEAL_II_HAVE_FP_EXCEPTIONS
231#define DEAL_II_HAVE_CXX17_BESSEL_FUNCTIONS
236#define DEAL_II_WITH_CXX11
237#define DEAL_II_WITH_CXX14
238#define DEAL_II_WITH_CXX17
246#if defined(DEAL_II_HAVE_CXX20) && !defined(DEAL_II_DOXYGEN_DO_NOT_PARSE_REQUIRES_CLAUSES)
247# define DEAL_II_CXX20_REQUIRES(condition) requires(condition)
249# define DEAL_II_CXX20_REQUIRES(condition)
257#ifdef DEAL_II_HAVE_CXX23
258# define DEAL_II_CXX23_ASSUME(expr) [[assume(expr)]]
260# if defined(__clang__)
261# define DEAL_II_CXX23_ASSUME(expr) __builtin_assume(static_cast<bool>(expr))
262# elif defined(_MSC_VER) || defined(__ICC)
263# define DEAL_II_CXX23_ASSUME(expr) __assume(expr);
266# define DEAL_II_CXX23_ASSUME(expr) \
280#define DEAL_II_FALLTHROUGH [[fallthrough]]
282#define DEAL_II_CONSTEXPR constexpr
294#define DEAL_II_DEPRECATED [[deprecated]]
295#define DEAL_II_DEPRECATED_WITH_COMMENT(comment) [[deprecated(comment)]]
304#ifndef DEAL_II_DEPRECATED_EARLY
306#ifdef DEAL_II_EARLY_DEPRECATIONS
307#define DEAL_II_DEPRECATED_EARLY [[deprecated]]
309#define DEAL_II_DEPRECATED_EARLY
313#ifndef DEAL_II_DEPRECATED_EARLY_WITH_COMMENT
315#ifdef DEAL_II_EARLY_DEPRECATIONS
316#define DEAL_II_DEPRECATED_EARLY_WITH_COMMENT(comment) [[deprecated(comment)]]
318#define DEAL_II_DEPRECATED_EARLY_WITH_COMMENT(comment)
329#define DEAL_II_HAVE_SYS_RESOURCE_H
330#define DEAL_II_HAVE_UNISTD_H
331#define DEAL_II_HAVE_GETHOSTNAME
332#define DEAL_II_HAVE_GETPID
404#if defined(DEAL_II_BOOST_HAS_BROKEN_HEADER_DEPRECATIONS) || \
405 defined(DEAL_II_CGAL_HAS_DEPRECATED_BOOST_INCLUDES)
406# ifndef BOOST_ALLOW_DEPRECATED_HEADERS
407# define BOOST_ALLOW_DEPRECATED_HEADERS
428#define DEAL_II_VERSION_GTE(major,minor,subminor) \
429 ((DEAL_II_VERSION_MAJOR * 10000 + \
430 DEAL_II_VERSION_MINOR * 100 + \
431 DEAL_II_VERSION_SUBMINOR) \
433 (major)*10000 + (minor)*100 + (subminor))
438#define DEAL_II_BOOST_VERSION_MAJOR 1
439#define DEAL_II_BOOST_VERSION_MINOR 84
440#define DEAL_II_BOOST_VERSION_SUBMINOR 0
442#define DEAL_II_BOOST_VERSION_GTE(major,minor,subminor) \
443 ((DEAL_II_BOOST_VERSION_MAJOR * 100000 + \
444 DEAL_II_BOOST_VERSION_MINOR * 100 + \
445 DEAL_II_BOOST_VERSION_SUBMINOR) \
447 (major)*100000 + (minor)*100 + (subminor))
452#ifdef DEAL_II_WITH_GMSH
453# define DEAL_II_GMSH_EXECUTABLE_PATH ""
455# ifdef DEAL_II_GMSH_WITH_API
456# define DEAL_II_GMSH_WITH_API_VERSION_MAJOR
457# define DEAL_II_GMSH_WITH_API_VERSION_MINOR
458# define DEAL_II_GMSH_WITH_API_VERSION_PATCH
460# define DEAL_II_GMSH_WITH_API_VERSION_GTE(major, minor, patch) \
461 ((DEAL_II_GMSH_WITH_API_VERSION_MAJOR * 10000 + \
462 DEAL_II_GMSH_WITH_API_VERSION_MINOR * 100 + \
463 DEAL_II_GMSH_WITH_API_VERSION_PATCH) >= \
464 (major)*10000 + (minor)*100 + (patch))
473#ifdef DEAL_II_WITH_KOKKOS
474# define DEAL_II_KOKKOS_VERSION_MAJOR 4
475# define DEAL_II_KOKKOS_VERSION_MINOR 5
476# define DEAL_II_KOKKOS_VERSION_SUBMINOR 1
478# define DEAL_II_KOKKOS_VERSION_GTE(major,minor,subminor) \
479 ((DEAL_II_KOKKOS_VERSION_MAJOR * 10000 + \
480 DEAL_II_KOKKOS_VERSION_MINOR * 100 + \
481 DEAL_II_KOKKOS_VERSION_SUBMINOR) \
483 (major)*10000 + (minor)*100 + (subminor))
491#ifdef DEAL_II_WITH_OPENCASCADE
492# define DEAL_II_OPENCASCADE_VERSION_MAJOR
493# define DEAL_II_OPENCASCADE_VERSION_MINOR
494# define DEAL_II_OPENCASCADE_VERSION_SUBMINOR
496# define DEAL_II_OPENCASCADE_VERSION_GTE(major,minor,subminor) \
497 ((DEAL_II_OPENCASCADE_VERSION_MAJOR * 10000 + \
498 DEAL_II_OPENCASCADE_VERSION_MINOR * 100 + \
499 DEAL_II_OPENCASCADE_VERSION_SUBMINOR) \
501 (major)*10000 + (minor)*100 + (subminor))
508#ifdef DEAL_II_WITH_P4EST
509# define DEAL_II_P4EST_VERSION_MAJOR
510# define DEAL_II_P4EST_VERSION_MINOR
511# define DEAL_II_P4EST_VERSION_SUBMINOR
512# define DEAL_II_P4EST_VERSION_PATCH
514# define DEAL_II_P4EST_VERSION_GTE(major,minor,subminor,patch) \
515 ((DEAL_II_P4EST_VERSION_MAJOR * 1000000 + \
516 DEAL_II_P4EST_VERSION_MINOR * 10000 + \
517 DEAL_II_P4EST_VERSION_SUBMINOR * 100 + \
518 DEAL_II_P4EST_VERSION_PATCH) \
520 (major)*1000000 + (minor)*10000 + (subminor)*100 + (patch))
527#ifdef DEAL_II_WITH_SUNDIALS
528 # define DEAL_II_SUNDIALS_VERSION_MAJOR
529 # define DEAL_II_SUNDIALS_VERSION_MINOR
530 # define DEAL_II_SUNDIALS_VERSION_PATCH
532 #define DEAL_II_SUNDIALS_VERSION_GTE(major,minor,patch) \
533 ((DEAL_II_SUNDIALS_VERSION_MAJOR * 10000 + \
534 DEAL_II_SUNDIALS_VERSION_MINOR * 100 + \
535 DEAL_II_SUNDIALS_VERSION_PATCH) \
537 (major)*10000 + (minor)*100 + (patch))
539 #define DEAL_II_SUNDIALS_VERSION_LT(major,minor,patch) \
540 ((DEAL_II_SUNDIALS_VERSION_MAJOR * 10000 + \
541 DEAL_II_SUNDIALS_VERSION_MINOR * 100 + \
542 DEAL_II_SUNDIALS_VERSION_PATCH) \
544 (major)*10000 + (minor)*100 + (patch))
554#ifdef DEAL_II_WITH_PETSC
555# include <petscversion.h>
556# define DEAL_II_PETSC_VERSION_LT(major,minor,subminor) \
557 PETSC_VERSION_LT(major,minor,subminor)
558# define DEAL_II_PETSC_VERSION_GTE(major,minor,subminor) \
559 PETSC_VERSION_GE(major,minor,subminor)
566#ifdef DEAL_II_WITH_SLEPC
567# include <slepcversion.h>
568# define DEAL_II_SLEPC_VERSION_LT(major,minor,subminor) \
569 SLEPC_VERSION_LT(major,minor,subminor)
570# define DEAL_II_SLEPC_VERSION_GTE(major,minor,subminor) \
571 SLEPC_VERSION_GE(major,minor,subminor)
578#ifdef DEAL_II_WITH_TRILINOS
579# define DEAL_II_TRILINOS_VERSION_MAJOR
580# define DEAL_II_TRILINOS_VERSION_MINOR
581# define DEAL_II_TRILINOS_VERSION_SUBMINOR
583# define DEAL_II_TRILINOS_VERSION_GTE(major,minor,subminor) \
584 ((DEAL_II_TRILINOS_VERSION_MAJOR * 10000 + \
585 DEAL_II_TRILINOS_VERSION_MINOR * 100 + \
586 DEAL_II_TRILINOS_VERSION_SUBMINOR) \
588 (major)*10000 + (minor)*100 + (subminor))
595#ifdef DEAL_II_WITH_CGAL
596# define DEAL_II_CGAL_VERSION_MAJOR
597# define DEAL_II_CGAL_VERSION_MINOR
598# define DEAL_II_CGAL_VERSION_SUBMINOR
600# define DEAL_II_CGAL_VERSION_GTE(major, minor, subminor) \
601 ((DEAL_II_CGAL_VERSION_MAJOR * 10000 + DEAL_II_CGAL_VERSION_MINOR * 100 + \
602 DEAL_II_CGAL_VERSION_SUBMINOR) >= \
603 (major)*10000 + (minor)*100 + (subminor))
610#ifdef DEAL_II_WITH_MPI
611# define DEAL_II_MPI_VERSION_MAJOR
612# define DEAL_II_MPI_VERSION_MINOR
614# define DEAL_II_MPI_VERSION_GTE(major,minor) \
615 ((DEAL_II_MPI_VERSION_MAJOR * 100 + \
616 DEAL_II_MPI_VERSION_MINOR) \
618 (major)*100 + (minor))
620# define DEAL_II_MPI_VERSION_GTE(major,minor) false
633#ifdef DEAL_II_COMPILER_HAS_DIAGNOSTIC_PRAGMA
636# define DEAL_II_DISABLE_EXTRA_DIAGNOSTICS \
637_Pragma("GCC diagnostic push") \
638_Pragma("GCC diagnostic ignored \"-Wunknown-pragmas\"") \
639_Pragma("GCC diagnostic ignored \"-Wpragmas\"") \
640_Pragma("GCC diagnostic ignored \"-Wunknown-warning-option\"") \
641_Pragma("GCC diagnostic ignored \"-Wunknown-warning\"") \
642_Pragma("GCC diagnostic ignored \"-Wextra\"") \
643_Pragma("GCC diagnostic ignored \"-Waddress-of-packed-member\"") \
644_Pragma("GCC diagnostic ignored \"-Wcast-function-type\"") \
645_Pragma("GCC diagnostic ignored \"-Wcpp\"") \
646_Pragma("GCC diagnostic ignored \"-Wdeprecated-copy\"") \
647_Pragma("GCC diagnostic ignored \"-Wdeprecated-declarations\"") \
648_Pragma("GCC diagnostic ignored \"-Wdeprecated-volatile\"") \
649_Pragma("GCC diagnostic ignored \"-Wexpansion-to-defined\"") \
650_Pragma("GCC diagnostic ignored \"-Wfloat-conversion\"") \
651_Pragma("GCC diagnostic ignored \"-Wignored-attributes\"") \
652_Pragma("GCC diagnostic ignored \"-Wignored-qualifiers\"") \
653_Pragma("GCC diagnostic ignored \"-Wimplicit-fallthrough\"") \
654_Pragma("GCC diagnostic ignored \"-Winfinite-recursion\"") \
655_Pragma("GCC diagnostic ignored \"-Wint-in-bool-context\"") \
656_Pragma("GCC diagnostic ignored \"-Wmaybe-uninitialized\"") \
657_Pragma("GCC diagnostic ignored \"-Wmisleading-indentation\"") \
658_Pragma("GCC diagnostic ignored \"-Wmissing-field-initializers\"") \
659_Pragma("GCC diagnostic ignored \"-Wnested-anon-types\"") \
660_Pragma("GCC diagnostic ignored \"-Wnon-template-friend\"") \
661_Pragma("GCC diagnostic ignored \"-Wnon-virtual-dtor\"") \
662_Pragma("GCC diagnostic ignored \"-Wnonnull\"") \
663_Pragma("GCC diagnostic ignored \"-Woverflow\"") \
664_Pragma("GCC diagnostic ignored \"-Woverloaded-virtual\"") \
665_Pragma("GCC diagnostic ignored \"-Wpedantic\"") \
666_Pragma("GCC diagnostic ignored \"-Wsuggest-override\"") \
667_Pragma("GCC diagnostic ignored \"-Wtautological-constant-out-of-range-compare\"") \
668_Pragma("GCC diagnostic ignored \"-Wtautological-overlap-compare\"") \
669_Pragma("GCC diagnostic ignored \"-Wtype-limits\"") \
670_Pragma("GCC diagnostic ignored \"-Wundef\"") \
671_Pragma("GCC diagnostic ignored \"-Wunused-but-set-parameter\"") \
672_Pragma("GCC diagnostic ignored \"-Wunused-but-set-variable\"") \
673_Pragma("GCC diagnostic ignored \"-Wunused-function\"") \
674_Pragma("GCC diagnostic ignored \"-Wunused-parameter\"") \
675_Pragma("GCC diagnostic ignored \"-Wunused-private-field\"") \
676_Pragma("GCC diagnostic ignored \"-Wunused-variable\"") \
677_Pragma("GCC diagnostic ignored \"-Wuse-after-free\"") \
678_Pragma("GCC diagnostic warning \"-Wpragmas\"")
680# define DEAL_II_ENABLE_EXTRA_DIAGNOSTICS \
681_Pragma("GCC diagnostic pop")
685# define DEAL_II_DISABLE_EXTRA_DIAGNOSTICS
686# define DEAL_II_ENABLE_EXTRA_DIAGNOSTICS
695#define DEAL_II_FORTRAN_MANGLE(name, NAME) name ## _
697#define DEAL_II_FORTRAN_MANGLE_UNDERSCORE(name, NAME) name ## _
706 #define DEAL_II_STRINGIZE_HELPER(x) #x
707 #define DEAL_II_STRINGIZE(x) DEAL_II_STRINGIZE_HELPER(x)
708 #define DEAL_II_DO_PRAGMA(x) __pragma(x)
709 #define DEAL_II_WARNING(desc) DEAL_II_DO_PRAGMA(message(__FILE__ "(" DEAL_II_STRINGIZE(__LINE__) ") : warning: " #desc))
711 #define DEAL_II_DO_PRAGMA(x) _Pragma(#x)
712 #define DEAL_II_WARNING(desc) DEAL_II_DO_PRAGMA(message(#desc))
726#include <boost/version.hpp>
731 "The version number of boost that you are compiling with does not match the "
732 "version number of boost found during deal.II's configuration step. This "
733 "leads to difficult to understand bugs and is not supported. Please check "
734 "that you have set up your application with the same version of boost as "
#define DEAL_II_BOOST_VERSION_MINOR
constexpr LibraryBuildMode library_build_mode
#define DEAL_II_NAMESPACE_OPEN
constexpr bool running_in_debug_mode()
#define DEAL_II_BOOST_VERSION_MAJOR
#define DEAL_II_NAMESPACE_CLOSE
#define DEAL_II_BOOST_VERSION_SUBMINOR