15#ifndef dealii_config_h
16#define dealii_config_h
22#define DEAL_II_PACKAGE_NAME "deal.II"
24#define DEAL_II_PACKAGE_VERSION "GIT relicensing-3350-g0ff4b5c3a0 2025-05-21 15:30:00+00:00"
26#define DEAL_II_VERSION_MAJOR GIT relicensing-3350-g0ff4b5c3a0 2025-05-21 15:30:00+00:00
27#define DEAL_II_VERSION_MINOR GIT relicensing-3350-g0ff4b5c3a0 2025-05-21 15:30:00+00:00
28#define DEAL_II_VERSION_SUBMINOR GIT relicensing-3350-g0ff4b5c3a0 2025-05-21 15:30:00+00:00
35#define DEAL_II_NAMESPACE_OPEN namespace dealii {
36#define DEAL_II_NAMESPACE_CLOSE }
91#define DEAL_II_FEATURE_BOOST_BUNDLED_CONFIGURED
98#define DEAL_II_WITH_KOKKOS
99#define DEAL_II_FEATURE_KOKKOS_BUNDLED_CONFIGURED
106#define DEAL_II_WITH_MUPARSER
108#define DEAL_II_FEATURE_MUPARSER_BUNDLED_CONFIGURED
117#define DEAL_II_WITH_TASKFLOW
118#define DEAL_II_FEATURE_TASKFLOW_BUNDLED_CONFIGURED
119#define DEAL_II_WITH_TBB
120#define DEAL_II_FEATURE_TBB_BUNDLED_CONFIGURED
124#define DEAL_II_USE_VECTORIZATION_GATHER
128#ifdef DEAL_II_WITH_TBB
133#define DEAL_II_WITH_THREADS
135#define TBB_SUPPRESS_DEPRECATED_MESSAGES 1
155#define DEAL_II_COMPILER_USE_VECTOR_ARITHMETICS
157#define DEAL_II_HAVE_BUILTIN_EXPECT
158#define DEAL_II_HAVE_GLIBC_STACKTRACE
159#define DEAL_II_HAVE_LIBSTDCXX_DEMANGLER
161#define DEAL_II_ALWAYS_INLINE __attribute__((always_inline))
162#define DEAL_II_RESTRICT __restrict
163#define DEAL_II_COMPILER_HAS_DIAGNOSTIC_PRAGMA
166#define DEAL_II_HOST_DEVICE KOKKOS_FUNCTION
167#define DEAL_II_HOST_DEVICE_ALWAYS_INLINE KOKKOS_FORCEINLINE_FUNCTION
174#if (defined(__clang__) && defined(__CUDA__)) || defined(DEAL_II_KOKKOS_ENABLE_HIP)
175# define DEAL_II_HOST __host__
194#define DEAL_II_VECTORIZATION_WIDTH_IN_BITS 128
199#if DEAL_II_VECTORIZATION_WIDTH_IN_BITS == 512
200#define DEAL_II_COMPILER_VECTORIZATION_LEVEL 3
201#elif DEAL_II_VECTORIZATION_WIDTH_IN_BITS == 256
202#define DEAL_II_COMPILER_VECTORIZATION_LEVEL 2
203#elif DEAL_II_VECTORIZATION_WIDTH_IN_BITS == 128
204#define DEAL_II_COMPILER_VECTORIZATION_LEVEL 1
206#define DEAL_II_COMPILER_VECTORIZATION_LEVEL 0
209#define DEAL_II_OPENMP_SIMD_PRAGMA _Pragma("omp simd")
219#define DEAL_II_HAVE_CXX17
223#define DEAL_II_HAVE_FP_EXCEPTIONS
225#define DEAL_II_HAVE_CXX17_BESSEL_FUNCTIONS
230#define DEAL_II_WITH_CXX11
231#define DEAL_II_WITH_CXX14
232#define DEAL_II_WITH_CXX17
240#if defined(DEAL_II_HAVE_CXX20) && !defined(DEAL_II_DOXYGEN_DO_NOT_PARSE_REQUIRES_CLAUSES)
241# define DEAL_II_CXX20_REQUIRES(condition) requires(condition)
243# define DEAL_II_CXX20_REQUIRES(condition)
251#ifdef DEAL_II_HAVE_CXX23
252# define DEAL_II_CXX23_ASSUME(expr) [[assume(expr)]]
254# if defined(__clang__)
255# define DEAL_II_CXX23_ASSUME(expr) __builtin_assume(static_cast<bool>(expr))
256# elif defined(_MSC_VER) || defined(__ICC)
257# define DEAL_II_CXX23_ASSUME(expr) __assume(expr);
260# define DEAL_II_CXX23_ASSUME(expr) \
268#define DEAL_II_FALLTHROUGH [[fallthrough]]
269#define DEAL_II_CONSTEXPR constexpr
281#define DEAL_II_DEPRECATED [[deprecated]]
282#define DEAL_II_DEPRECATED_WITH_COMMENT(comment) [[deprecated(comment)]]
291#ifndef DEAL_II_DEPRECATED_EARLY
293#ifdef DEAL_II_EARLY_DEPRECATIONS
294#define DEAL_II_DEPRECATED_EARLY [[deprecated]]
296#define DEAL_II_DEPRECATED_EARLY
300#ifndef DEAL_II_DEPRECATED_EARLY_WITH_COMMENT
302#ifdef DEAL_II_EARLY_DEPRECATIONS
303#define DEAL_II_DEPRECATED_EARLY_WITH_COMMENT(comment) [[deprecated(comment)]]
305#define DEAL_II_DEPRECATED_EARLY_WITH_COMMENT(comment)
316#define DEAL_II_HAVE_SYS_RESOURCE_H
317#define DEAL_II_HAVE_UNISTD_H
318#define DEAL_II_HAVE_GETHOSTNAME
319#define DEAL_II_HAVE_GETPID
378#if defined(DEAL_II_BOOST_HAS_BROKEN_HEADER_DEPRECATIONS) || \
379 defined(DEAL_II_CGAL_HAS_DEPRECATED_BOOST_INCLUDES)
380# ifndef BOOST_ALLOW_DEPRECATED_HEADERS
381# define BOOST_ALLOW_DEPRECATED_HEADERS
402#define DEAL_II_VERSION_GTE(major,minor,subminor) \
403 ((DEAL_II_VERSION_MAJOR * 10000 + \
404 DEAL_II_VERSION_MINOR * 100 + \
405 DEAL_II_VERSION_SUBMINOR) \
407 (major)*10000 + (minor)*100 + (subminor))
412#define DEAL_II_BOOST_VERSION_MAJOR 1
413#define DEAL_II_BOOST_VERSION_MINOR 84
414#define DEAL_II_BOOST_VERSION_SUBMINOR 0
416#define DEAL_II_BOOST_VERSION_GTE(major,minor,subminor) \
417 ((DEAL_II_BOOST_VERSION_MAJOR * 100000 + \
418 DEAL_II_BOOST_VERSION_MINOR * 100 + \
419 DEAL_II_BOOST_VERSION_SUBMINOR) \
421 (major)*100000 + (minor)*100 + (subminor))
426#ifdef DEAL_II_WITH_GMSH
427# define DEAL_II_GMSH_EXECUTABLE_PATH ""
435#ifdef DEAL_II_WITH_KOKKOS
436# define DEAL_II_KOKKOS_VERSION_MAJOR 4
437# define DEAL_II_KOKKOS_VERSION_MINOR 5
438# define DEAL_II_KOKKOS_VERSION_SUBMINOR 1
440# define DEAL_II_KOKKOS_VERSION_GTE(major,minor,subminor) \
441 ((DEAL_II_KOKKOS_VERSION_MAJOR * 10000 + \
442 DEAL_II_KOKKOS_VERSION_MINOR * 100 + \
443 DEAL_II_KOKKOS_VERSION_SUBMINOR) \
445 (major)*10000 + (minor)*100 + (subminor))
453#ifdef DEAL_II_WITH_OPENCASCADE
454# define DEAL_II_OPENCASCADE_VERSION_MAJOR
455# define DEAL_II_OPENCASCADE_VERSION_MINOR
456# define DEAL_II_OPENCASCADE_VERSION_SUBMINOR
458# define DEAL_II_OPENCASCADE_VERSION_GTE(major,minor,subminor) \
459 ((DEAL_II_OPENCASCADE_VERSION_MAJOR * 10000 + \
460 DEAL_II_OPENCASCADE_VERSION_MINOR * 100 + \
461 DEAL_II_OPENCASCADE_VERSION_SUBMINOR) \
463 (major)*10000 + (minor)*100 + (subminor))
470#ifdef DEAL_II_WITH_P4EST
471# define DEAL_II_P4EST_VERSION_MAJOR
472# define DEAL_II_P4EST_VERSION_MINOR
473# define DEAL_II_P4EST_VERSION_SUBMINOR
474# define DEAL_II_P4EST_VERSION_PATCH
476# define DEAL_II_P4EST_VERSION_GTE(major,minor,subminor,patch) \
477 ((DEAL_II_P4EST_VERSION_MAJOR * 1000000 + \
478 DEAL_II_P4EST_VERSION_MINOR * 10000 + \
479 DEAL_II_P4EST_VERSION_SUBMINOR * 100 + \
480 DEAL_II_P4EST_VERSION_PATCH) \
482 (major)*1000000 + (minor)*10000 + (subminor)*100 + (patch))
489#ifdef DEAL_II_WITH_SUNDIALS
490 # define DEAL_II_SUNDIALS_VERSION_MAJOR
491 # define DEAL_II_SUNDIALS_VERSION_MINOR
492 # define DEAL_II_SUNDIALS_VERSION_PATCH
494 #define DEAL_II_SUNDIALS_VERSION_GTE(major,minor,patch) \
495 ((DEAL_II_SUNDIALS_VERSION_MAJOR * 10000 + \
496 DEAL_II_SUNDIALS_VERSION_MINOR * 100 + \
497 DEAL_II_SUNDIALS_VERSION_PATCH) \
499 (major)*10000 + (minor)*100 + (patch))
501 #define DEAL_II_SUNDIALS_VERSION_LT(major,minor,patch) \
502 ((DEAL_II_SUNDIALS_VERSION_MAJOR * 10000 + \
503 DEAL_II_SUNDIALS_VERSION_MINOR * 100 + \
504 DEAL_II_SUNDIALS_VERSION_PATCH) \
506 (major)*10000 + (minor)*100 + (patch))
516#ifdef DEAL_II_WITH_PETSC
517# include <petscversion.h>
518# define DEAL_II_PETSC_VERSION_LT(major,minor,subminor) \
519 PETSC_VERSION_LT(major,minor,subminor)
520# define DEAL_II_PETSC_VERSION_GTE(major,minor,subminor) \
521 PETSC_VERSION_GE(major,minor,subminor)
528#ifdef DEAL_II_WITH_SLEPC
529# include <slepcversion.h>
530# define DEAL_II_SLEPC_VERSION_LT(major,minor,subminor) \
531 SLEPC_VERSION_LT(major,minor,subminor)
532# define DEAL_II_SLEPC_VERSION_GTE(major,minor,subminor) \
533 SLEPC_VERSION_GE(major,minor,subminor)
540#ifdef DEAL_II_WITH_TRILINOS
541# define DEAL_II_TRILINOS_VERSION_MAJOR
542# define DEAL_II_TRILINOS_VERSION_MINOR
543# define DEAL_II_TRILINOS_VERSION_SUBMINOR
545# define DEAL_II_TRILINOS_VERSION_GTE(major,minor,subminor) \
546 ((DEAL_II_TRILINOS_VERSION_MAJOR * 10000 + \
547 DEAL_II_TRILINOS_VERSION_MINOR * 100 + \
548 DEAL_II_TRILINOS_VERSION_SUBMINOR) \
550 (major)*10000 + (minor)*100 + (subminor))
557#ifdef DEAL_II_WITH_CGAL
558# define DEAL_II_CGAL_VERSION_MAJOR
559# define DEAL_II_CGAL_VERSION_MINOR
560# define DEAL_II_CGAL_VERSION_SUBMINOR
562# define DEAL_II_CGAL_VERSION_GTE(major, minor, subminor) \
563 ((DEAL_II_CGAL_VERSION_MAJOR * 10000 + DEAL_II_CGAL_VERSION_MINOR * 100 + \
564 DEAL_II_CGAL_VERSION_SUBMINOR) >= \
565 (major)*10000 + (minor)*100 + (subminor))
572#ifdef DEAL_II_WITH_MPI
573# define DEAL_II_MPI_VERSION_MAJOR
574# define DEAL_II_MPI_VERSION_MINOR
576# define DEAL_II_MPI_VERSION_GTE(major,minor) \
577 ((DEAL_II_MPI_VERSION_MAJOR * 100 + \
578 DEAL_II_MPI_VERSION_MINOR) \
580 (major)*100 + (minor))
582# define DEAL_II_MPI_VERSION_GTE(major,minor) false
595#ifdef DEAL_II_COMPILER_HAS_DIAGNOSTIC_PRAGMA
598# define DEAL_II_DISABLE_EXTRA_DIAGNOSTICS \
599_Pragma("GCC diagnostic push") \
600_Pragma("GCC diagnostic ignored \"-Wunknown-pragmas\"") \
601_Pragma("GCC diagnostic ignored \"-Wpragmas\"") \
602_Pragma("GCC diagnostic ignored \"-Wunknown-warning-option\"") \
603_Pragma("GCC diagnostic ignored \"-Wunknown-warning\"") \
604_Pragma("GCC diagnostic ignored \"-Wextra\"") \
605_Pragma("GCC diagnostic ignored \"-Waddress-of-packed-member\"") \
606_Pragma("GCC diagnostic ignored \"-Wcast-function-type\"") \
607_Pragma("GCC diagnostic ignored \"-Wdeprecated-copy\"") \
608_Pragma("GCC diagnostic ignored \"-Wdeprecated-declarations\"") \
609_Pragma("GCC diagnostic ignored \"-Wdeprecated-volatile\"") \
610_Pragma("GCC diagnostic ignored \"-Wexpansion-to-defined\"") \
611_Pragma("GCC diagnostic ignored \"-Wfloat-conversion\"") \
612_Pragma("GCC diagnostic ignored \"-Wignored-attributes\"") \
613_Pragma("GCC diagnostic ignored \"-Wignored-qualifiers\"") \
614_Pragma("GCC diagnostic ignored \"-Wimplicit-fallthrough\"") \
615_Pragma("GCC diagnostic ignored \"-Winfinite-recursion\"") \
616_Pragma("GCC diagnostic ignored \"-Wint-in-bool-context\"") \
617_Pragma("GCC diagnostic ignored \"-Wmaybe-uninitialized\"") \
618_Pragma("GCC diagnostic ignored \"-Wmisleading-indentation\"") \
619_Pragma("GCC diagnostic ignored \"-Wmissing-field-initializers\"") \
620_Pragma("GCC diagnostic ignored \"-Wnested-anon-types\"") \
621_Pragma("GCC diagnostic ignored \"-Wnon-template-friend\"") \
622_Pragma("GCC diagnostic ignored \"-Wnon-virtual-dtor\"") \
623_Pragma("GCC diagnostic ignored \"-Wnonnull\"") \
624_Pragma("GCC diagnostic ignored \"-Woverflow\"") \
625_Pragma("GCC diagnostic ignored \"-Woverloaded-virtual\"") \
626_Pragma("GCC diagnostic ignored \"-Wpedantic\"") \
627_Pragma("GCC diagnostic ignored \"-Wsuggest-override\"") \
628_Pragma("GCC diagnostic ignored \"-Wtautological-constant-out-of-range-compare\"") \
629_Pragma("GCC diagnostic ignored \"-Wtautological-overlap-compare\"") \
630_Pragma("GCC diagnostic ignored \"-Wtype-limits\"") \
631_Pragma("GCC diagnostic ignored \"-Wundef\"") \
632_Pragma("GCC diagnostic ignored \"-Wunused-but-set-parameter\"") \
633_Pragma("GCC diagnostic ignored \"-Wunused-but-set-variable\"") \
634_Pragma("GCC diagnostic ignored \"-Wunused-function\"") \
635_Pragma("GCC diagnostic ignored \"-Wunused-parameter\"") \
636_Pragma("GCC diagnostic ignored \"-Wunused-private-field\"") \
637_Pragma("GCC diagnostic ignored \"-Wunused-variable\"") \
638_Pragma("GCC diagnostic ignored \"-Wuse-after-free\"") \
639_Pragma("GCC diagnostic warning \"-Wpragmas\"")
641# define DEAL_II_ENABLE_EXTRA_DIAGNOSTICS \
642_Pragma("GCC diagnostic pop")
646# define DEAL_II_DISABLE_EXTRA_DIAGNOSTICS
647# define DEAL_II_ENABLE_EXTRA_DIAGNOSTICS
656#define DEAL_II_FORTRAN_MANGLE(name, NAME) name ## _
658#define DEAL_II_FORTRAN_MANGLE_UNDERSCORE(name, NAME) name ## _
667 #define DEAL_II_STRINGIZE_HELPER(x) #x
668 #define DEAL_II_STRINGIZE(x) DEAL_II_STRINGIZE_HELPER(x)
669 #define DEAL_II_DO_PRAGMA(x) __pragma(x)
670 #define DEAL_II_WARNING(desc) DEAL_II_DO_PRAGMA(message(__FILE__ "(" DEAL_II_STRINGIZE(__LINE__) ") : warning: " #desc))
672 #define DEAL_II_DO_PRAGMA(x) _Pragma(#x)
673 #define DEAL_II_WARNING(desc) DEAL_II_DO_PRAGMA(message(#desc))
687#include <boost/version.hpp>
692 "The version number of boost that you are compiling with does not match the "
693 "version number of boost found during deal.II's configuration step. This "
694 "leads to difficult to understand bugs and is not supported. Please check "
695 "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