15#ifndef dealii_config_h
16#define dealii_config_h
23#define DEAL_II_PACKAGE_NAME "deal.II"
25#define DEAL_II_PACKAGE_VERSION "GIT relicensing-2289-g1e5549a87a 2024-12-21 21:30:00+00:00"
27#define DEAL_II_VERSION_MAJOR GIT relicensing-2289-g1e5549a87a 2024-12-21 21:30:00+00:00
28#define DEAL_II_VERSION_MINOR GIT relicensing-2289-g1e5549a87a 2024-12-21 21:30:00+00:00
29#define DEAL_II_VERSION_SUBMINOR GIT relicensing-2289-g1e5549a87a 2024-12-21 21:30:00+00:00
41#define DEAL_II_FEATURE_BOOST_BUNDLED_CONFIGURED
48#define DEAL_II_WITH_KOKKOS
49#define DEAL_II_FEATURE_KOKKOS_BUNDLED_CONFIGURED
56#define DEAL_II_WITH_MUPARSER
57#define DEAL_II_FEATURE_MUPARSER_BUNDLED_CONFIGURED
65#define DEAL_II_WITH_TASKFLOW
66#define DEAL_II_FEATURE_TASKFLOW_BUNDLED_CONFIGURED
67#define DEAL_II_WITH_TBB
68#define DEAL_II_FEATURE_TBB_BUNDLED_CONFIGURED
72#define DEAL_II_USE_VECTORIZATION_GATHER
76#ifdef DEAL_II_WITH_TBB
81#define DEAL_II_WITH_THREADS
83#define TBB_SUPPRESS_DEPRECATED_MESSAGES 1
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_OPENMP_SIMD_PRAGMA _Pragma("omp simd")
151#define DEAL_II_HAVE_CXX17
155#define DEAL_II_HAVE_FP_EXCEPTIONS
157#define DEAL_II_HAVE_CXX17_BESSEL_FUNCTIONS
162#define DEAL_II_WITH_CXX11
163#define DEAL_II_WITH_CXX14
164#define DEAL_II_WITH_CXX17
172#if defined(DEAL_II_HAVE_CXX20) && !defined(DEAL_II_DOXYGEN_DO_NOT_PARSE_REQUIRES_CLAUSES)
173# define DEAL_II_CXX20_REQUIRES(condition) requires(condition)
175# define DEAL_II_CXX20_REQUIRES(condition)
183#ifdef DEAL_II_HAVE_CXX23
184# define define DEAL_II_ASSUME(expr) [[assume(expr)]]
186# if defined(__clang__)
187# define DEAL_II_CXX23_ASSUME(expr) __builtin_assume(static_cast<bool>(expr))
188# elif defined(_MSC_VER) || defined(__ICC)
189# define DEAL_II_CXX23_ASSUME(expr) __assume(expr);
192# define DEAL_II_CXX23_ASSUME(expr) \
205#define DEAL_II_DEPRECATED [[deprecated]]
206#define DEAL_II_DEPRECATED_WITH_COMMENT(comment) [[deprecated(comment)]]
215#ifndef DEAL_II_DEPRECATED_EARLY
217#ifdef DEAL_II_EARLY_DEPRECATIONS
218#define DEAL_II_DEPRECATED_EARLY [[deprecated]]
220#define DEAL_II_DEPRECATED_EARLY
224#ifndef DEAL_II_DEPRECATED_EARLY_WITH_COMMENT
226#ifdef DEAL_II_EARLY_DEPRECATIONS
227#define DEAL_II_DEPRECATED_EARLY_WITH_COMMENT(comment) [[deprecated(comment)]]
229#define DEAL_II_DEPRECATED_EARLY_WITH_COMMENT(comment)
233#define DEAL_II_FALLTHROUGH [[fallthrough]]
234#define DEAL_II_CONSTEXPR constexpr
243#define DEAL_II_HAVE_SYS_RESOURCE_H
244#define DEAL_II_HAVE_UNISTD_H
245#define DEAL_II_HAVE_GETHOSTNAME
246#define DEAL_II_HAVE_GETPID
305#if defined(DEAL_II_BOOST_HAS_BROKEN_HEADER_DEPRECATIONS) || \
306 defined(DEAL_II_CGAL_HAS_DEPRECATED_BOOST_INCLUDES)
307# ifndef BOOST_ALLOW_DEPRECATED_HEADERS
308# define BOOST_ALLOW_DEPRECATED_HEADERS
329#define DEAL_II_VERSION_GTE(major,minor,subminor) \
330 ((DEAL_II_VERSION_MAJOR * 10000 + \
331 DEAL_II_VERSION_MINOR * 100 + \
332 DEAL_II_VERSION_SUBMINOR) \
334 (major)*10000 + (minor)*100 + (subminor))
339#define DEAL_II_BOOST_VERSION_MAJOR 1
340#define DEAL_II_BOOST_VERSION_MINOR 84
341#define DEAL_II_BOOST_VERSION_SUBMINOR 0
343#define DEAL_II_BOOST_VERSION_GTE(major,minor,subminor) \
344 ((DEAL_II_BOOST_VERSION_MAJOR * 100000 + \
345 DEAL_II_BOOST_VERSION_MINOR * 100 + \
346 DEAL_II_BOOST_VERSION_SUBMINOR) \
348 (major)*100000 + (minor)*100 + (subminor))
353#ifdef DEAL_II_WITH_GMSH
354# define DEAL_II_GMSH_EXECUTABLE_PATH ""
361#ifdef DEAL_II_WITH_OPENCASCADE
362# define DEAL_II_OPENCASCADE_VERSION_MAJOR
363# define DEAL_II_OPENCASCADE_VERSION_MINOR
364# define DEAL_II_OPENCASCADE_VERSION_SUBMINOR
366# define DEAL_II_OPENCASCADE_VERSION_GTE(major,minor,subminor) \
367 ((DEAL_II_OPENCASCADE_VERSION_MAJOR * 10000 + \
368 DEAL_II_OPENCASCADE_VERSION_MINOR * 100 + \
369 DEAL_II_OPENCASCADE_VERSION_SUBMINOR) \
371 (major)*10000 + (minor)*100 + (subminor))
378#ifdef DEAL_II_WITH_P4EST
379# define DEAL_II_P4EST_VERSION_MAJOR
380# define DEAL_II_P4EST_VERSION_MINOR
381# define DEAL_II_P4EST_VERSION_SUBMINOR
382# define DEAL_II_P4EST_VERSION_PATCH
384# define DEAL_II_P4EST_VERSION_GTE(major,minor,subminor,patch) \
385 ((DEAL_II_P4EST_VERSION_MAJOR * 1000000 + \
386 DEAL_II_P4EST_VERSION_MINOR * 10000 + \
387 DEAL_II_P4EST_VERSION_SUBMINOR * 100 + \
388 DEAL_II_P4EST_VERSION_PATCH) \
390 (major)*1000000 + (minor)*10000 + (subminor)*100 + (patch))
397#ifdef DEAL_II_WITH_SUNDIALS
398 # define DEAL_II_SUNDIALS_VERSION_MAJOR
399 # define DEAL_II_SUNDIALS_VERSION_MINOR
400 # define DEAL_II_SUNDIALS_VERSION_PATCH
402 #define DEAL_II_SUNDIALS_VERSION_GTE(major,minor,patch) \
403 ((DEAL_II_SUNDIALS_VERSION_MAJOR * 10000 + \
404 DEAL_II_SUNDIALS_VERSION_MINOR * 100 + \
405 DEAL_II_SUNDIALS_VERSION_PATCH) \
407 (major)*10000 + (minor)*100 + (patch))
409 #define DEAL_II_SUNDIALS_VERSION_LT(major,minor,patch) \
410 ((DEAL_II_SUNDIALS_VERSION_MAJOR * 10000 + \
411 DEAL_II_SUNDIALS_VERSION_MINOR * 100 + \
412 DEAL_II_SUNDIALS_VERSION_PATCH) \
414 (major)*10000 + (minor)*100 + (patch))
424#ifdef DEAL_II_WITH_PETSC
425# define DEAL_II_PETSC_VERSION_LT(major,minor,subminor) \
426 PETSC_VERSION_LT(major,minor,subminor)
427# define DEAL_II_PETSC_VERSION_GTE(major,minor,subminor) \
428 PETSC_VERSION_GE(major,minor,subminor)
435#ifdef DEAL_II_WITH_SLEPC
436# define DEAL_II_SLEPC_VERSION_LT(major,minor,subminor) \
437 SLEPC_VERSION_LT(major,minor,subminor)
438# define DEAL_II_SLEPC_VERSION_GTE(major,minor,subminor) \
439 SLEPC_VERSION_GE(major,minor,subminor)
446#ifdef DEAL_II_WITH_TRILINOS
447# define DEAL_II_TRILINOS_VERSION_MAJOR
448# define DEAL_II_TRILINOS_VERSION_MINOR
449# define DEAL_II_TRILINOS_VERSION_SUBMINOR
451# define DEAL_II_TRILINOS_VERSION_GTE(major,minor,subminor) \
452 ((DEAL_II_TRILINOS_VERSION_MAJOR * 10000 + \
453 DEAL_II_TRILINOS_VERSION_MINOR * 100 + \
454 DEAL_II_TRILINOS_VERSION_SUBMINOR) \
456 (major)*10000 + (minor)*100 + (subminor))
463#ifdef DEAL_II_WITH_CGAL
464# define DEAL_II_CGAL_VERSION_MAJOR
465# define DEAL_II_CGAL_VERSION_MINOR
466# define DEAL_II_CGAL_VERSION_SUBMINOR
468# define DEAL_II_CGAL_VERSION_GTE(major, minor, subminor) \
469 ((DEAL_II_CGAL_VERSION_MAJOR * 10000 + DEAL_II_CGAL_VERSION_MINOR * 100 + \
470 DEAL_II_CGAL_VERSION_SUBMINOR) >= \
471 (major)*10000 + (minor)*100 + (subminor))
478#ifdef DEAL_II_WITH_MPI
479# define DEAL_II_MPI_VERSION_MAJOR
480# define DEAL_II_MPI_VERSION_MINOR
482# define DEAL_II_MPI_VERSION_GTE(major,minor) \
483 ((DEAL_II_MPI_VERSION_MAJOR * 100 + \
484 DEAL_II_MPI_VERSION_MINOR) \
486 (major)*100 + (minor))
488# define DEAL_II_MPI_VERSION_GTE(major,minor) false
498#define DEAL_II_NAMESPACE_OPEN namespace dealii {
499#define DEAL_II_NAMESPACE_CLOSE }
509#ifdef DEAL_II_COMPILER_HAS_DIAGNOSTIC_PRAGMA
512# define DEAL_II_DISABLE_EXTRA_DIAGNOSTICS \
513_Pragma("GCC diagnostic push") \
514_Pragma("GCC diagnostic ignored \"-Wunknown-pragmas\"") \
515_Pragma("GCC diagnostic ignored \"-Wpragmas\"") \
516_Pragma("GCC diagnostic ignored \"-Wunknown-warning-option\"") \
517_Pragma("GCC diagnostic ignored \"-Wunknown-warning\"") \
518_Pragma("GCC diagnostic ignored \"-Wextra\"") \
519_Pragma("GCC diagnostic ignored \"-Waddress-of-packed-member\"") \
520_Pragma("GCC diagnostic ignored \"-Wcast-function-type\"") \
521_Pragma("GCC diagnostic ignored \"-Wdeprecated-copy\"") \
522_Pragma("GCC diagnostic ignored \"-Wdeprecated-declarations\"") \
523_Pragma("GCC diagnostic ignored \"-Wdeprecated-volatile\"") \
524_Pragma("GCC diagnostic ignored \"-Wexpansion-to-defined\"") \
525_Pragma("GCC diagnostic ignored \"-Wfloat-conversion\"") \
526_Pragma("GCC diagnostic ignored \"-Wignored-attributes\"") \
527_Pragma("GCC diagnostic ignored \"-Wignored-qualifiers\"") \
528_Pragma("GCC diagnostic ignored \"-Wimplicit-fallthrough\"") \
529_Pragma("GCC diagnostic ignored \"-Winfinite-recursion\"") \
530_Pragma("GCC diagnostic ignored \"-Wint-in-bool-context\"") \
531_Pragma("GCC diagnostic ignored \"-Wmaybe-uninitialized\"") \
532_Pragma("GCC diagnostic ignored \"-Wmisleading-indentation\"") \
533_Pragma("GCC diagnostic ignored \"-Wmissing-field-initializers\"") \
534_Pragma("GCC diagnostic ignored \"-Wnested-anon-types\"") \
535_Pragma("GCC diagnostic ignored \"-Wnon-template-friend\"") \
536_Pragma("GCC diagnostic ignored \"-Wnon-virtual-dtor\"") \
537_Pragma("GCC diagnostic ignored \"-Wnonnull\"") \
538_Pragma("GCC diagnostic ignored \"-Woverflow\"") \
539_Pragma("GCC diagnostic ignored \"-Woverloaded-virtual\"") \
540_Pragma("GCC diagnostic ignored \"-Wpedantic\"") \
541_Pragma("GCC diagnostic ignored \"-Wsuggest-override\"") \
542_Pragma("GCC diagnostic ignored \"-Wtautological-constant-out-of-range-compare\"") \
543_Pragma("GCC diagnostic ignored \"-Wtautological-overlap-compare\"") \
544_Pragma("GCC diagnostic ignored \"-Wtype-limits\"") \
545_Pragma("GCC diagnostic ignored \"-Wundef\"") \
546_Pragma("GCC diagnostic ignored \"-Wunused-but-set-parameter\"") \
547_Pragma("GCC diagnostic ignored \"-Wunused-but-set-variable\"") \
548_Pragma("GCC diagnostic ignored \"-Wunused-function\"") \
549_Pragma("GCC diagnostic ignored \"-Wunused-parameter\"") \
550_Pragma("GCC diagnostic ignored \"-Wunused-private-field\"") \
551_Pragma("GCC diagnostic ignored \"-Wunused-variable\"") \
552_Pragma("GCC diagnostic ignored \"-Wuse-after-free\"") \
553_Pragma("GCC diagnostic warning \"-Wpragmas\"")
555# define DEAL_II_ENABLE_EXTRA_DIAGNOSTICS \
556_Pragma("GCC diagnostic pop")
560# define DEAL_II_DISABLE_EXTRA_DIAGNOSTICS
561# define DEAL_II_ENABLE_EXTRA_DIAGNOSTICS
570#define DEAL_II_FORTRAN_MANGLE(name, NAME) name ## _
572#define DEAL_II_FORTRAN_MANGLE_UNDERSCORE(name, NAME) name ## _
581 #define DEAL_II_STRINGIZE_HELPER(x) #x
582 #define DEAL_II_STRINGIZE(x) DEAL_II_STRINGIZE_HELPER(x)
583 #define DEAL_II_DO_PRAGMA(x) __pragma(x)
584 #define DEAL_II_WARNING(desc) DEAL_II_DO_PRAGMA(message(__FILE__ "(" DEAL_II_STRINGIZE(__LINE__) ") : warning: " #desc))
586 #define DEAL_II_DO_PRAGMA(x) _Pragma(#x)
587 #define DEAL_II_WARNING(desc) DEAL_II_DO_PRAGMA(message(#desc))
599#if defined(DEAL_II_WITH_MPI)
614#include <boost/version.hpp>
619 "The version number of boost that you are compiling with does not match the "
620 "version number of boost found during deal.II's configuration step. This "
621 "leads to difficult to understand bugs and is not supported. Please check "
622 "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