Reference documentation for deal.II version GIT relicensing-1321-g19b0133728 2024-07-26 07:50:01+00:00
\(\newcommand{\dealvcentcolon}{\mathrel{\mathop{:}}}\) \(\newcommand{\dealcoloneq}{\dealvcentcolon\mathrel{\mkern-1.2mu}=}\) \(\newcommand{\jump}[1]{\left[\!\left[ #1 \right]\!\right]}\) \(\newcommand{\average}[1]{\left\{\!\left\{ #1 \right\}\!\right\}}\)
Loading...
Searching...
No Matches
config.h
Go to the documentation of this file.
1// ------------------------------------------------------------------------
2//
3// SPDX-License-Identifier: LGPL-2.1-or-later
4// Copyright (C) 2012 - 2024 by the deal.II authors
5//
6// This file is part of the deal.II library.
7//
8// Part of the source code is dual licensed under Apache-2.0 WITH
9// LLVM-exception OR LGPL-2.1-or-later. Detailed license information
10// governing the source code and code contributions can be found in
11// LICENSE.md and CONTRIBUTING.md at the top level directory of deal.II.
12//
13// ------------------------------------------------------------------------
14
15#ifndef dealii_config_h
16#define dealii_config_h
17
18
19/***********************************************************************
20 * Information about deal.II:
21 */
22
23#define DEAL_II_PACKAGE_NAME "deal.II"
24
25#define DEAL_II_PACKAGE_VERSION "GIT relicensing-1321-g19b0133728 2024-07-26 07:50:01+00:00"
26
27#define DEAL_II_VERSION_MAJOR GIT relicensing-1321-g19b0133728 2024-07-26 07:50:01+00:00
28#define DEAL_II_VERSION_MINOR GIT relicensing-1321-g19b0133728 2024-07-26 07:50:01+00:00
29#define DEAL_II_VERSION_SUBMINOR GIT relicensing-1321-g19b0133728 2024-07-26 07:50:01+00:00
30
31
32/***********************************************************************
33 * Configured deal.II features:
34 */
35
36/* #undef DEAL_II_WITH_64BIT_INDICES */
37/* #undef DEAL_II_WITH_ADOLC */
38/* #undef DEAL_II_WITH_ARPACK */
39/* #undef DEAL_II_WITH_ARBORX */
40/* #undef DEAL_II_WITH_ASSIMP */
41#define DEAL_II_FEATURE_BOOST_BUNDLED_CONFIGURED
42/* #undef DEAL_II_WITH_CGAL */
43#define DEAL_II_WITH_COMPLEX_VALUES
44/* #undef DEAL_II_WITH_CUDA */
45/* #undef DEAL_II_WITH_GINKGO */
46/* #undef DEAL_II_WITH_GMSH */
47/* #undef DEAL_II_WITH_GSL */
48/* #undef DEAL_II_WITH_HDF5 */
49#define DEAL_II_WITH_KOKKOS
50#define DEAL_II_FEATURE_KOKKOS_BUNDLED_CONFIGURED
51/* #undef DEAL_II_WITH_LAPACK */
52/* #undef LAPACK_WITH_64BIT_BLAS_INDICES */
53/* #undef DEAL_II_LAPACK_WITH_MKL */
54/* #undef DEAL_II_WITH_METIS */
55/* #undef DEAL_II_WITH_MPI */
56#define DEAL_II_WITH_MUPARSER
57#define DEAL_II_FEATURE_MUPARSER_BUNDLED_CONFIGURED
58/* #undef DEAL_II_WITH_OPENCASCADE */
59/* #undef DEAL_II_WITH_P4EST */
60/* #undef DEAL_II_WITH_PETSC */
61/* #undef DEAL_II_WITH_SCALAPACK */
62/* #undef DEAL_II_WITH_SLEPC */
63/* #undef DEAL_II_WITH_SUNDIALS */
64/* #undef DEAL_II_WITH_SYMENGINE */
65/* #undef DEAL_II_WITH_TASKFLOW */
66/* #undef DEAL_II_FEATURE_TASKFLOW_BUNDLED_CONFIGURED */
67#define DEAL_II_WITH_TBB
68#define DEAL_II_FEATURE_TBB_BUNDLED_CONFIGURED
69/* #undef DEAL_II_WITH_TRILINOS */
70/* #undef DEAL_II_WITH_UMFPACK */
71/* #undef DEAL_II_FEATURE_UMFPACK_BUNDLED_CONFIGURED */
72#define DEAL_II_USE_VECTORIZATION_GATHER
73/* #undef DEAL_II_WITH_VTK */
74/* #undef DEAL_II_WITH_ZLIB */
75
76#ifdef DEAL_II_WITH_TBB
81#define DEAL_II_WITH_THREADS
82
83#define TBB_SUPPRESS_DEPRECATED_MESSAGES 1
84
85/* #undef DEAL_II_TBB_WITH_ONEAPI */
86
87#endif
88
89/***********************************************************************
90 * Compiler bugs:
91 *
92 * For documentation see cmake/checks/check_03_compiler_bugs.cmake
93 */
94
95/* #undef DEAL_II_DELETED_MOVE_CONSTRUCTOR_BUG */
96
97/***********************************************************************
98 * Compiler features:
99 *
100 * For documentation see cmake/checks/check_01_compiler_features.cmake
101 */
102
103#define DEAL_II_COMPILER_USE_VECTOR_ARITHMETICS
104/* #undef DEAL_II_VECTOR_ITERATOR_IS_POINTER */
105#define DEAL_II_HAVE_BUILTIN_EXPECT
106#define DEAL_II_HAVE_GLIBC_STACKTRACE
107#define DEAL_II_HAVE_LIBSTDCXX_DEMANGLER
108/* #undef __PRETTY_FUNCTION__ */
109#define DEAL_II_ALWAYS_INLINE __attribute__((always_inline))
110#define DEAL_II_RESTRICT __restrict
111#define DEAL_II_COMPILER_HAS_DIAGNOSTIC_PRAGMA
112
113/***********************************************************************
114 * CPU features:
115 *
116 * For documentation see cmake/checks/check_01_cpu_features.cmake
117 */
118
119/* #undef DEAL_II_WORDS_BIGENDIAN */
120
121/*
122 * This sets the largest number of vectorization bits detected for the given
123 * compiler flags and hardware (e.g. 256 for AVX on x86-64 architectures) for
124 * use in deal.II's intrinsics-based VectorizedArray class.
125 */
126#define DEAL_II_VECTORIZATION_WIDTH_IN_BITS 128
127
128/*
129 * Backward compatibility setting
130 */
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
137#else
138#define DEAL_II_COMPILER_VECTORIZATION_LEVEL 0
139#endif
140
141#define DEAL_II_HAVE_ARM_NEON
142
143#define DEAL_II_OPENMP_SIMD_PRAGMA _Pragma("omp simd")
144
145
146/***********************************************************************
147 * Language features:
148 *
149 * For documentation see cmake/checks/check_01_cxx_features.cmake
150 */
151
152/* #undef DEAL_II_HAVE_CXX14 */
153#define DEAL_II_HAVE_CXX17
154/* #undef DEAL_II_HAVE_CXX20 */
155/* #undef DEAL_II_HAVE_CXX23 */
156
157#define DEAL_II_HAVE_FP_EXCEPTIONS
158/* #undef DEAL_II_HAVE_COMPLEX_OPERATOR_OVERLOADS */
159#define DEAL_II_HAVE_CXX17_BESSEL_FUNCTIONS
160/* #undef DEAL_II_CXX14_CONSTEXPR_BUG */
161
162// The following three are defined for backwards compatibility with older
163// deal.II versions:
164#define DEAL_II_WITH_CXX11
165#define DEAL_II_WITH_CXX14
166#define DEAL_II_WITH_CXX17
167
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)
176#else
177# define DEAL_II_CXX20_REQUIRES(condition)
178#endif
179
185#ifdef DEAL_II_HAVE_CXX23
186# define define DEAL_II_ASSUME(expr) [[assume(expr)]]
187#else
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);
192# else
193/* no way with GCC to express this without evaluating 'expr' */
194# define DEAL_II_CXX23_ASSUME(expr) \
195 do \
196 { \
197 } \
198 while (false)
199# endif
200#endif
201
202
207#define DEAL_II_DEPRECATED [[deprecated]]
208#define DEAL_II_DEPRECATED_WITH_COMMENT(comment) [[deprecated(comment)]]
209
216/* #undef DEAL_II_EARLY_DEPRECATIONS */
217#ifndef DEAL_II_DEPRECATED_EARLY
218// guard to allow user to override DEAL_II_DEPRECATED_EARLY
219#ifdef DEAL_II_EARLY_DEPRECATIONS
220#define DEAL_II_DEPRECATED_EARLY [[deprecated]]
221#else
222#define DEAL_II_DEPRECATED_EARLY
223#endif
224#endif
225
226#ifndef DEAL_II_DEPRECATED_EARLY_WITH_COMMENT
227// guard to allow user to override DEAL_II_DEPRECATED_EARLY
228#ifdef DEAL_II_EARLY_DEPRECATIONS
229#define DEAL_II_DEPRECATED_EARLY_WITH_COMMENT(comment) [[deprecated(comment)]]
230#else
231#define DEAL_II_DEPRECATED_EARLY_WITH_COMMENT(comment)
232#endif
233#endif
234
235#define DEAL_II_FALLTHROUGH [[fallthrough]]
236#define DEAL_II_CONSTEXPR constexpr
237
238
239/***********************************************************************
240 * System features:
241 *
242 * For documentation see cmake/checks/check_02_system_features.cmake
243 */
244
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
249/* #undef DEAL_II_HAVE_JN */
250
251/* #undef DEAL_II_MSVC */
252
253
254/***********************************************************************
255 * Feature configuration
256 *
257 * For documentation see cmake/configure/configure_*.cmake and
258 * cmake/modules/Find*.cmake
259 */
260
261/* cmake/modules/FindADOLC.cmake */
262/* #undef DEAL_II_ADOLC_WITH_ATRIG_ERF */
263/* #undef DEAL_II_ADOLC_WITH_ADVANCED_BRANCHING */
264/* #undef DEAL_II_ADOLC_WITH_TAPELESS_REFCOUNTING */
265
266/* cmake/modules/FindARBORX.cmake */
267/* #undef DEAL_II_ARBORX_WITH_MPI */
268
269/* cmake/modules/FindARPACK.cmake */
270/* #undef DEAL_II_ARPACK_WITH_PARPACK */
271
272/* cmake/modules/FindGMSH.cmake */
273/* #undef DEAL_II_GMSH_WITH_API */
274
275/* cmake/modules/FindPETSC.cmake */
276/* #undef DEAL_II_PETSC_WITH_COMPLEX */
277/* #undef DEAL_II_PETSC_WITH_HYPRE */
278/* #undef DEAL_II_PETSC_WITH_MUMPS */
279/* #undef DEAL_II_PETSC_WITH_KOKKOS */
280
281/* cmake/modules/FindSUNDIALS.cmake */
282/* #undef DEAL_II_SUNDIALS_WITH_IDAS */
283
284/* cmake/modules/FindSYMENGINE.cmake */
285/* #undef DEAL_II_SYMENGINE_WITH_LLVM */
286
287/* cmake/configure/configure_20_boost.cmake */
288/* #undef DEAL_II_BOOST_HAS_BROKEN_HEADER_DEPRECATIONS */
289
290/* cmake/configure/configure_50_cgal.cmake */
291/* #undef DEAL_II_CGAL_HAS_DEPRECATED_BOOST_INCLUDES */
292
293/* cmake/configure/configure_2_trilinos.cmake */
294/* #undef DEAL_II_TRILINOS_CXX_SUPPORTS_SACADO_COMPLEX_RAD */
295/* #undef DEAL_II_TRILINOS_WITH_AMESOS2 */
296/* #undef DEAL_II_TRILINOS_WITH_BELOS */
297/* #undef DEAL_II_TRILINOS_WITH_EPETRAEXT */
298/* #undef DEAL_II_TRILINOS_WITH_IFPACK2 */
299/* #undef DEAL_II_TRILINOS_WITH_MUELU */
300/* #undef DEAL_II_TRILINOS_WITH_NOX */
301/* #undef DEAL_II_TRILINOS_WITH_ROL */
302/* #undef DEAL_II_TRILINOS_WITH_SACADO */
303/* #undef DEAL_II_TRILINOS_WITH_SEACAS */
304/* #undef DEAL_II_TRILINOS_WITH_TPETRA */
305/* #undef DEAL_II_TRILINOS_WITH_ZOLTAN */
306
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
311# endif
312#endif
313
314/***********************************************************************
315 * Various macros for version number query and comparison:
316 *
317 * These macros are defined to make testing for specific versions within
318 * the deal.II main code as simple as possible.
319 */
320
321/*
322 * deal.II:
323 */
324
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) \
335 >= \
336 (major)*10000 + (minor)*100 + (subminor))
337
338/*
339 * boost:
340 */
341#define DEAL_II_BOOST_VERSION_MAJOR 1
342#define DEAL_II_BOOST_VERSION_MINOR 84
343#define DEAL_II_BOOST_VERSION_SUBMINOR 0
344
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) \
349 >= \
350 (major)*100000 + (minor)*100 + (subminor))
351
352/*
353 * Gmsh:
354 */
355#ifdef DEAL_II_WITH_GMSH
356# define DEAL_II_GMSH_EXECUTABLE_PATH ""
357#endif
358
363#ifdef DEAL_II_WITH_OPENCASCADE
364# define DEAL_II_OPENCASCADE_VERSION_MAJOR
365# define DEAL_II_OPENCASCADE_VERSION_MINOR
366# define DEAL_II_OPENCASCADE_VERSION_SUBMINOR
367
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) \
372 >= \
373 (major)*10000 + (minor)*100 + (subminor))
374#endif
375
376/*
377 * p4est:
378 */
379
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
385
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) \
391 >= \
392 (major)*1000000 + (minor)*10000 + (subminor)*100 + (patch))
393#endif
394
395/*
396 * SUNDIALS:
397 */
398
399#ifdef DEAL_II_WITH_SUNDIALS
400 # define DEAL_II_SUNDIALS_VERSION_MAJOR
401 # define DEAL_II_SUNDIALS_VERSION_MINOR
402 # define DEAL_II_SUNDIALS_VERSION_PATCH
403
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) \
408 >= \
409 (major)*10000 + (minor)*100 + (patch))
410
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) \
415 < \
416 (major)*10000 + (minor)*100 + (patch))
417#endif
418
419/*
420 * PETSc:
421 *
422 * Note: The following macros are defined in petscversion.h
423 * so we don't repeat them here.
424 */
425
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)
431#endif
432
433/*
434 * SLEPC:
435 */
436
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)
442#endif
443
444/*
445 * Trilinos:
446 */
447
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
452
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) \
457 >= \
458 (major)*10000 + (minor)*100 + (subminor))
459#endif
460
461/*
462 * CGAL:
463 */
464
465#ifdef DEAL_II_WITH_CGAL
466# define DEAL_II_CGAL_VERSION_MAJOR
467# define DEAL_II_CGAL_VERSION_MINOR
468# define DEAL_II_CGAL_VERSION_SUBMINOR
469
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))
474#endif
475
476/*
477 * MPI
478 */
479
480#ifdef DEAL_II_WITH_MPI
481# define DEAL_II_MPI_VERSION_MAJOR
482# define DEAL_II_MPI_VERSION_MINOR
483
484# define DEAL_II_MPI_VERSION_GTE(major,minor) \
485 ((DEAL_II_MPI_VERSION_MAJOR * 100 + \
486 DEAL_II_MPI_VERSION_MINOR) \
487 >= \
488 (major)*100 + (minor))
489#else
490# define DEAL_II_MPI_VERSION_GTE(major,minor) false
491#endif
492
493/* #undef DEAL_II_MPI_WITH_DEVICE_SUPPORT */
494#ifdef DEAL_II_MPI_WITH_DEVICE_SUPPORT
495/* #undef DEAL_II_MPI_WITH_CUDA_SUPPORT */
496#endif
497
498/***********************************************************************
499 * Two macro names that we put at the top and bottom of all deal.II files
500 * and that will be expanded to "namespace dealii {" and "}".
501 */
502
503#define DEAL_II_NAMESPACE_OPEN namespace dealii {
504#define DEAL_II_NAMESPACE_CLOSE }
505
506/***********************************************************************
507 * Two macros to guard external header includes.
508 *
509 * Selectively disable diagnostics set by "-Wextra" (and similar flags) for
510 * GCC and compiler accepting GCC dialects (such as clang).
511 * "diagnostic push" is supported since gcc-4.6 and clang-3.3.
512 */
513
514#ifdef DEAL_II_COMPILER_HAS_DIAGNOSTIC_PRAGMA
515
516/* keep pragmas with an exclamation mark in order.. */
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\"")
559
560# define DEAL_II_ENABLE_EXTRA_DIAGNOSTICS \
561_Pragma("GCC diagnostic pop")
562
563#else
564
565# define DEAL_II_DISABLE_EXTRA_DIAGNOSTICS
566# define DEAL_II_ENABLE_EXTRA_DIAGNOSTICS
567
568#endif
569
570/***********************************************************************
571 * Define macros for picking the correct C linkage name for a Fortran function.
572 * See cmake/configure/configure_fortran_mangling.cmake for more information.
573 */
574
575#define DEAL_II_FORTRAN_MANGLE(name, NAME) name ## _
576
577#define DEAL_II_FORTRAN_MANGLE_UNDERSCORE(name, NAME) name ## _
578
579/***********************************************************************
580 * Define a portable preprocessor macro that generates custom warnings
581 * reporting the line and the file where the warning appears. Taken from:
582 * http://goodliffe.blogspot.com/2009/07/c-how-to-say-warning-to-visual-studio-c.html
583 */
584
585#ifdef _MSC_VER
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))
590#else
591 #define DEAL_II_DO_PRAGMA(x) _Pragma(#x)
592 #define DEAL_II_WARNING(desc) DEAL_II_DO_PRAGMA(message(#desc))
593#endif
594
595
596/***********************************************************************
597 * Final inclusions:
598 */
599
600/*
601 * Some systems require including mpi.h before stdio.h which happens in
602 * types.h
603 */
604#if defined(DEAL_II_WITH_MPI)
606# include <mpi.h>
608#endif
609
610#include <deal.II/base/numbers.h>
611#include <deal.II/base/types.h>
612
613/*
614 * Include the boost version header to do a quick version check in case, by
615 * accident, we have configured with one version of boost but are compiling
616 * either the library or an external application with a different version of
617 * boost.
618 */
619#include <boost/version.hpp>
620static_assert(
621 BOOST_VERSION == 100000 * DEAL_II_BOOST_VERSION_MAJOR +
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 "
628 "deal.II.");
629
630#endif
#define DEAL_II_BOOST_VERSION_MINOR
Definition config.h:342
#define DEAL_II_DISABLE_EXTRA_DIAGNOSTICS
Definition config.h:517
#define DEAL_II_BOOST_VERSION_MAJOR
Definition config.h:341
#define DEAL_II_ENABLE_EXTRA_DIAGNOSTICS
Definition config.h:560
#define DEAL_II_BOOST_VERSION_SUBMINOR
Definition config.h:343