Reference documentation for deal.II version GIT a2efd28e10 2023-02-01 14:45:02+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\}}\)
config.h
Go to the documentation of this file.
1 // ---------------------------------------------------------------------
2 //
3 // Copyright (C) 2012 - 2022 by the deal.II authors
4 //
5 // This file is part of the deal.II library.
6 //
7 // The deal.II library is free software; you can use it, redistribute
8 // it, and/or modify it under the terms of the GNU Lesser General
9 // Public License as published by the Free Software Foundation; either
10 // version 2.1 of the License, or (at your option) any later version.
11 // The full text of the license can be found in the file LICENSE.md at
12 // the top level directory of deal.II.
13 //
14 // ---------------------------------------------------------------------
15 
16 #ifndef dealii_config_h
17 #define dealii_config_h
18 
19 
20 /***********************************************************************
21  * Information about deal.II:
22  */
23 
24 #define DEAL_II_PACKAGE_NAME "deal.II"
25 
26 #define DEAL_II_PACKAGE_VERSION "GIT a2efd28e10 2023-02-01 14:45:02+00:00"
27 
28 #define DEAL_II_VERSION_MAJOR GIT a2efd28e10 2023-02-01 14:45:02+00:00
29 #define DEAL_II_VERSION_MINOR GIT a2efd28e10 2023-02-01 14:45:02+00:00
30 #define DEAL_II_VERSION_SUBMINOR GIT a2efd28e10 2023-02-01 14:45:02+00:00
31 
32 
33 /***********************************************************************
34  * Configured deal.II features:
35  */
36 
37 /* #undef DEAL_II_WITH_64BIT_INDICES */
38 /* #undef DEAL_II_WITH_ADOLC */
39 /* #undef DEAL_II_WITH_ARPACK */
40 /* #undef DEAL_II_WITH_ARBORX */
41 /* #undef DEAL_II_WITH_ASSIMP */
42 #define DEAL_II_FEATURE_BOOST_BUNDLED_CONFIGURED
43 /* #undef DEAL_II_WITH_CGAL */
44 #define DEAL_II_WITH_COMPLEX_VALUES
45 /* #undef DEAL_II_WITH_CUDA */
46 /* #undef DEAL_II_WITH_GINKGO */
47 /* #undef DEAL_II_WITH_GMSH */
48 /* #undef DEAL_II_WITH_GSL */
49 /* #undef DEAL_II_WITH_HDF5 */
50 #define DEAL_II_WITH_KOKKOS
51 #define DEAL_II_FEATURE_KOKKOS_BUNDLED_CONFIGURED
52 /* #undef DEAL_II_WITH_LAPACK */
53 /* #undef LAPACK_WITH_64BIT_BLAS_INDICES */
54 /* #undef DEAL_II_LAPACK_WITH_MKL */
55 /* #undef DEAL_II_WITH_METIS */
56 /* #undef DEAL_II_WITH_MPI */
57 #define DEAL_II_WITH_MUPARSER
58 #define DEAL_II_FEATURE_MUPARSER_BUNDLED_CONFIGURED
59 /* #undef DEAL_II_WITH_OPENCASCADE */
60 /* #undef DEAL_II_WITH_P4EST */
61 /* #undef DEAL_II_WITH_PETSC */
62 /* #undef DEAL_II_WITH_SCALAPACK */
63 /* #undef DEAL_II_WITH_SLEPC */
64 /* #undef DEAL_II_WITH_SUNDIALS */
65 /* #undef DEAL_II_WITH_SYMENGINE */
66 /* #undef DEAL_II_WITH_TASKFLOW */
67 /* #undef DEAL_II_FEATURE_TASKFLOW_BUNDLED_CONFIGURED */
68 #define DEAL_II_WITH_TBB
69 #define DEAL_II_FEATURE_TBB_BUNDLED_CONFIGURED
70 /* #undef DEAL_II_WITH_TRILINOS */
71 /* #undef DEAL_II_WITH_UMFPACK */
72 /* #undef DEAL_II_FEATURE_UMFPACK_BUNDLED_CONFIGURED */
73 /* #undef DEAL_II_WITH_ZLIB */
74 
75 #ifdef DEAL_II_WITH_TBB
80 #define DEAL_II_WITH_THREADS
81 
82 #define TBB_SUPPRESS_DEPRECATED_MESSAGES 1
83 
84 /* #undef DEAL_II_TBB_WITH_ONEAPI */
85 
86 #endif
87 
88 /***********************************************************************
89  * Compiler bugs:
90  *
91  * For documentation see cmake/checks/check_03_compiler_bugs.cmake
92  */
93 
94 /* #undef DEAL_II_DELETED_MOVE_CONSTRUCTOR_BUG */
95 
96 /***********************************************************************
97  * Compiler features:
98  *
99  * For documentation see cmake/checks/check_01_compiler_features.cmake
100  */
101 
102 #define DEAL_II_COMPILER_USE_VECTOR_ARITHMETICS
103 /* #undef DEAL_II_VECTOR_ITERATOR_IS_POINTER */
104 #define DEAL_II_HAVE_BUILTIN_EXPECT
105 #define DEAL_II_HAVE_GLIBC_STACKTRACE
106 #define DEAL_II_HAVE_LIBSTDCXX_DEMANGLER
107 /* #undef __PRETTY_FUNCTION__ */
108 #define DEAL_II_ALWAYS_INLINE __attribute__((always_inline))
109 #define DEAL_II_RESTRICT __restrict
110 #define DEAL_II_COMPILER_HAS_DIAGNOSTIC_PRAGMA
111 
112 /***********************************************************************
113  * CPU features:
114  *
115  * For documentation see cmake/checks/check_01_cpu_features.cmake
116  */
117 
118 /* #undef DEAL_II_WORDS_BIGENDIAN */
119 
120 /*
121  * This sets the largest number of vectorization bits detected for the given
122  * compiler flags and hardware (e.g. 256 for AVX on x86-64 architectures) for
123  * use in deal.II's instrinsics-based VectorizedArray class.
124  */
125 #define DEAL_II_VECTORIZATION_WIDTH_IN_BITS 128
126 
127 /*
128  * Backward compatibility setting
129  */
130 #if DEAL_II_VECTORIZATION_WIDTH_IN_BITS == 512
131 #define DEAL_II_COMPILER_VECTORIZATION_LEVEL 3
132 #elif DEAL_II_VECTORIZATION_WIDTH_IN_BITS == 256
133 #define DEAL_II_COMPILER_VECTORIZATION_LEVEL 2
134 #elif DEAL_II_VECTORIZATION_WIDTH_IN_BITS == 128
135 #define DEAL_II_COMPILER_VECTORIZATION_LEVEL 1
136 #else
137 #define DEAL_II_COMPILER_VECTORIZATION_LEVEL 0
138 #endif
139 
140 #define DEAL_II_OPENMP_SIMD_PRAGMA _Pragma("omp simd")
141 
142 
143 /***********************************************************************
144  * Language features:
145  *
146  * For documentation see cmake/checks/check_01_cxx_features.cmake
147  */
148 
149 #define DEAL_II_HAVE_CXX14
150 /* #undef DEAL_II_HAVE_CXX17 */
151 /* #undef DEAL_II_HAVE_CXX20 */
152 
153 #define DEAL_II_HAVE_FP_EXCEPTIONS
154 /* #undef DEAL_II_HAVE_COMPLEX_OPERATOR_OVERLOADS */
155 /* #undef DEAL_II_HAVE_CXX17_BESSEL_FUNCTIONS */
156 /* #undef DEAL_II_CXX14_CONSTEXPR_BUG */
157 
162 #define DEAL_II_DEPRECATED [[deprecated]]
163 
170 #ifndef DEAL_II_DEPRECATED_EARLY
171 // guard to allow user to override DEAL_II_DEPRECATED_EARLY
172 #define DEAL_II_DEPRECATED_EARLY
173 #endif
174 #define DEAL_II_FALLTHROUGH [[fallthrough]]
175 #define DEAL_II_CONSTEXPR constexpr
176 
177 // defined for backwards compatibility with older deal.II versions
178 #define DEAL_II_WITH_CXX11
179 #define DEAL_II_WITH_CXX14
180 #ifdef DEAL_II_HAVE_CXX17
181 # define DEAL_II_WITH_CXX17
182 #endif
183 
184 
185 /***********************************************************************
186  * System features:
187  *
188  * For documentation see cmake/checks/check_02_system_features.cmake
189  */
190 
191 #define DEAL_II_HAVE_SYS_RESOURCE_H
192 #define DEAL_II_HAVE_UNISTD_H
193 #define DEAL_II_HAVE_GETHOSTNAME
194 #define DEAL_II_HAVE_GETPID
195 /* #undef DEAL_II_HAVE_JN */
196 
197 /* #undef DEAL_II_MSVC */
198 
199 
200 /***********************************************************************
201  * Feature configuration
202  *
203  * For documentation see cmake/configure/configure_*.cmake and
204  * cmake/modules/Find*.cmake
205  */
206 
207 /* cmake/modules/FindADOLC.cmake */
208 /* #undef DEAL_II_ADOLC_WITH_ATRIG_ERF */
209 /* #undef DEAL_II_ADOLC_WITH_ADVANCED_BRANCHING */
210 /* #undef DEAL_II_ADOLC_WITH_TAPELESS_REFCOUNTING */
211 
212 /* cmake/modules/FindARBORX.cmake */
213 /* #undef DEAL_II_ARBORX_WITH_MPI */
214 
215 /* cmake/modules/FindARPACK.cmake */
216 /* #undef DEAL_II_ARPACK_WITH_PARPACK */
217 
218 /* cmake/modules/FindGMSH.cmake */
219 /* #undef DEAL_II_GMSH_WITH_API */
220 
221 /* cmake/modules/FindPETSC.cmake */
222 /* #undef DEAL_II_PETSC_WITH_COMPLEX */
223 /* #undef DEAL_II_PETSC_WITH_HYPRE */
224 /* #undef DEAL_II_PETSC_WITH_MUMPS */
225 /* #undef DEAL_II_PETSC_WITH_KOKKOS */
226 
227 /* cmake/modules/FindSUNDIALS.cmake */
228 /* #undef DEAL_II_SUNDIALS_WITH_IDAS */
229 
230 /* cmake/modules/FindSYMENGINE.cmake */
231 /* #undef DEAL_II_SYMENGINE_WITH_LLVM */
232 
233 /* cmake/configure/configure_20_boost.cmake */
234 /* #undef DEAL_II_BOOST_HAS_BROKEN_HEADER_DEPRECATIONS */
235 
236 /* cmake/configure/configure_50_cgal.cmake */
237 /* #undef DEAL_II_CGAL_HAS_DEPRECATED_BOOST_INCLUDES */
238 
239 /* cmake/configure/configure_2_trilinos.cmake */
240 /* #undef DEAL_II_TRILINOS_CXX_SUPPORTS_SACADO_COMPLEX_RAD */
241 /* #undef DEAL_II_TRILINOS_WITH_BELOS */
242 /* #undef DEAL_II_TRILINOS_WITH_EPETRAEXT */
243 /* #undef DEAL_II_TRILINOS_WITH_MUELU */
244 /* #undef DEAL_II_TRILINOS_WITH_NOX */
245 /* #undef DEAL_II_TRILINOS_WITH_ROL */
246 /* #undef DEAL_II_TRILINOS_WITH_SACADO */
247 /* #undef DEAL_II_TRILINOS_WITH_SEACAS */
248 /* #undef DEAL_II_TRILINOS_WITH_TPETRA */
249 /* #undef DEAL_II_TRILINOS_WITH_ZOLTAN */
250 
251 #if defined(DEAL_II_BOOST_HAS_BROKEN_HEADER_DEPRECATIONS) || \
252  defined(DEAL_II_CGAL_HAS_DEPRECATED_BOOST_INCLUDES)
253 # ifndef BOOST_ALLOW_DEPRECATED_HEADERS
254 # define BOOST_ALLOW_DEPRECATED_HEADERS
255 # endif
256 #endif
257 
258 /***********************************************************************
259  * Various macros for version number query and comparison:
260  *
261  * These macros are defined to make testing for specific versions within
262  * the deal.II main code as simple as possible.
263  */
264 
265 /*
266  * deal.II:
267  */
268 
275 #define DEAL_II_VERSION_GTE(major,minor,subminor) \
276  ((DEAL_II_VERSION_MAJOR * 10000 + \
277  DEAL_II_VERSION_MINOR * 100 + \
278  DEAL_II_VERSION_SUBMINOR) \
279  >= \
280  (major)*10000 + (minor)*100 + (subminor))
281 
282 /*
283  * boost:
284  */
285 #define DEAL_II_BOOST_VERSION_MAJOR 1
286 #define DEAL_II_BOOST_VERSION_MINOR 70
287 #define DEAL_II_BOOST_VERSION_SUBMINOR 0
288 
289 #define DEAL_II_BOOST_VERSION_GTE(major,minor,subminor) \
290  ((DEAL_II_BOOST_VERSION_MAJOR * 100000 + \
291  DEAL_II_BOOST_VERSION_MINOR * 100 + \
292  DEAL_II_BOOST_VERSION_SUBMINOR) \
293  >= \
294  (major)*100000 + (minor)*100 + (subminor))
295 
296 /*
297  * Gmsh:
298  */
299 #ifdef DEAL_II_WITH_GMSH
300 # define DEAL_II_GMSH_EXECUTABLE_PATH ""
301 #endif
302 
307 #ifdef DEAL_II_WITH_OPENCASCADE
308 # define DEAL_II_OPENCASCADE_VERSION_MAJOR
309 # define DEAL_II_OPENCASCADE_VERSION_MINOR
310 # define DEAL_II_OPENCASCADE_VERSION_SUBMINOR
311 
312 # define DEAL_II_OPENCASCADE_VERSION_GTE(major,minor,subminor) \
313  ((DEAL_II_OPENCASCADE_VERSION_MAJOR * 10000 + \
314  DEAL_II_OPENCASCADE_VERSION_MINOR * 100 + \
315  DEAL_II_OPENCASCADE_VERSION_SUBMINOR) \
316  >= \
317  (major)*10000 + (minor)*100 + (subminor))
318 #endif
319 
320 /*
321  * p4est:
322  */
323 
324 #ifdef DEAL_II_WITH_P4EST
325 # define DEAL_II_P4EST_VERSION_MAJOR
326 # define DEAL_II_P4EST_VERSION_MINOR
327 # define DEAL_II_P4EST_VERSION_SUBMINOR
328 # define DEAL_II_P4EST_VERSION_PATCH
329 
330 # define DEAL_II_P4EST_VERSION_GTE(major,minor,subminor,patch) \
331  ((DEAL_II_P4EST_VERSION_MAJOR * 1000000 + \
332  DEAL_II_P4EST_VERSION_MINOR * 10000 + \
333  DEAL_II_P4EST_VERSION_SUBMINOR * 100 + \
334  DEAL_II_P4EST_VERSION_PATCH) \
335  >= \
336  (major)*1000000 + (minor)*10000 + (subminor)*100 + (patch))
337 #endif
338 
339 /*
340  * SUNDIALS:
341  */
342 
343 #ifdef DEAL_II_WITH_SUNDIALS
344  # define DEAL_II_SUNDIALS_VERSION_MAJOR
345  # define DEAL_II_SUNDIALS_VERSION_MINOR
346  # define DEAL_II_SUNDIALS_VERSION_PATCH
347 
348  #define DEAL_II_SUNDIALS_VERSION_GTE(major,minor,patch) \
349  ((DEAL_II_SUNDIALS_VERSION_MAJOR * 10000 + \
350  DEAL_II_SUNDIALS_VERSION_MINOR * 100 + \
351  DEAL_II_SUNDIALS_VERSION_PATCH) \
352  >= \
353  (major)*10000 + (minor)*100 + (patch))
354 
355  #define DEAL_II_SUNDIALS_VERSION_LT(major,minor,patch) \
356  ((DEAL_II_SUNDIALS_VERSION_MAJOR * 10000 + \
357  DEAL_II_SUNDIALS_VERSION_MINOR * 100 + \
358  DEAL_II_SUNDIALS_VERSION_PATCH) \
359  < \
360  (major)*10000 + (minor)*100 + (patch))
361 #endif
362 
363 /*
364  * PETSc:
365  *
366  * Note: The following definitions will be set in petscconf.h and
367  * petscversion.h, so we don't repeat them here.
368  *
369  * PETSC_VERSION_MAJOR
370  * PETSC_VERSION_MINOR
371  * PETSC_VERSION_SUBMINOR
372  * PETSC_VERSION_PATCH
373  * PETSC_VERSION_RELEASE
374  * PETSC_USE_COMPLEX
375  */
376 
377 #define DEAL_II_PETSC_VERSION_LT(major,minor,subminor) \
378  ((PETSC_VERSION_MAJOR * 10000 + \
379  PETSC_VERSION_MINOR * 100 + \
380  PETSC_VERSION_SUBMINOR) \
381  < \
382  (major)*10000 + (minor)*100 + (subminor))
383 
384 #define DEAL_II_PETSC_VERSION_GTE(major,minor,subminor) \
385  ((PETSC_VERSION_MAJOR * 10000 + \
386  PETSC_VERSION_MINOR * 100 + \
387  PETSC_VERSION_SUBMINOR) \
388  >= \
389  (major)*10000 + (minor)*100 + (subminor))
390 
391 /*
392  * SLEPC
393  * see slepcversion.h
394  */
395 #define DEAL_II_SLEPC_VERSION_GTE(major,minor,subminor) \
396  ((SLEPC_VERSION_MAJOR * 10000 + \
397  SLEPC_VERSION_MINOR * 100 + \
398  SLEPC_VERSION_SUBMINOR) \
399  >= \
400  (major)*10000 + (minor)*100 + (subminor))
401 
402 /*
403  * Trilinos:
404  */
405 
406 #ifdef DEAL_II_WITH_TRILINOS
407 # define DEAL_II_TRILINOS_VERSION_MAJOR
408 # define DEAL_II_TRILINOS_VERSION_MINOR
409 # define DEAL_II_TRILINOS_VERSION_SUBMINOR
410 
411 # define DEAL_II_TRILINOS_VERSION_GTE(major,minor,subminor) \
412  ((DEAL_II_TRILINOS_VERSION_MAJOR * 10000 + \
413  DEAL_II_TRILINOS_VERSION_MINOR * 100 + \
414  DEAL_II_TRILINOS_VERSION_SUBMINOR) \
415  >= \
416  (major)*10000 + (minor)*100 + (subminor))
417 #endif
418 
419 /*
420  * CGAL:
421  */
422 
423 #ifdef DEAL_II_WITH_CGAL
424 # define DEAL_II_CGAL_VERSION_MAJOR
425 # define DEAL_II_CGAL_VERSION_MINOR
426 # define DEAL_II_CGAL_VERSION_SUBMINOR
427 
428 # define DEAL_II_CGAL_VERSION_GTE(major, minor, subminor) \
429  ((DEAL_II_CGAL_VERSION_MAJOR * 10000 + DEAL_II_CGAL_VERSION_MINOR * 100 + \
430  DEAL_II_CGAL_VERSION_SUBMINOR) >= \
431  (major)*10000 + (minor)*100 + (subminor))
432 #endif
433 
434 /*
435  * MPI
436  */
437 
438 #ifdef DEAL_II_WITH_MPI
439 # define DEAL_II_MPI_VERSION_MAJOR
440 # define DEAL_II_MPI_VERSION_MINOR
441 
442 # define DEAL_II_MPI_VERSION_GTE(major,minor) \
443  ((DEAL_II_MPI_VERSION_MAJOR * 100 + \
444  DEAL_II_MPI_VERSION_MINOR) \
445  >= \
446  (major)*100 + (minor))
447 #else
448 # define DEAL_II_MPI_VERSION_GTE(major,minor) false
449 #endif
450 
451 /* #undef DEAL_II_MPI_WITH_DEVICE_SUPPORT */
452 #ifdef DEAL_II_MPI_WITH_DEVICE_SUPPORT
453 /* #undef DEAL_II_MPI_WITH_CUDA_SUPPORT */
454 #endif
455 
456 /***********************************************************************
457  * Two macro names that we put at the top and bottom of all deal.II files
458  * and that will be expanded to "namespace dealii {" and "}".
459  */
460 
461 #define DEAL_II_NAMESPACE_OPEN namespace dealii {
462 #define DEAL_II_NAMESPACE_CLOSE }
463 
464 /***********************************************************************
465  * Two macros to guard external header includes.
466  *
467  * Selectively disable diagnostics set by "-Wextra" (and similar flags) for
468  * GCC and compiler accepting GCC dialects (such as clang).
469  * "diagnostic push" is supported since gcc-4.6 and clang-3.3.
470  */
471 
472 #ifdef DEAL_II_COMPILER_HAS_DIAGNOSTIC_PRAGMA
473 
474 /* keep pragmas with an exclamation mark in order.. */
475 # define DEAL_II_DISABLE_EXTRA_DIAGNOSTICS \
476 _Pragma("GCC diagnostic push") \
477 _Pragma("GCC diagnostic ignored \"-Wunknown-pragmas\"") \
478 _Pragma("GCC diagnostic ignored \"-Wpragmas\"") \
479 _Pragma("GCC diagnostic ignored \"-Wunknown-warning-option\"") \
480 _Pragma("GCC diagnostic ignored \"-Wunknown-warning\"") \
481 _Pragma("GCC diagnostic ignored \"-Wextra\"") \
482 _Pragma("GCC diagnostic ignored \"-Waddress-of-packed-member\"") \
483 _Pragma("GCC diagnostic ignored \"-Wdeprecated-copy\"") \
484 _Pragma("GCC diagnostic ignored \"-Wdeprecated-declarations\"") \
485 _Pragma("GCC diagnostic ignored \"-Wdeprecated-volatile\"") \
486 _Pragma("GCC diagnostic ignored \"-Wexpansion-to-defined\"") \
487 _Pragma("GCC diagnostic ignored \"-Wfloat-conversion\"") \
488 _Pragma("GCC diagnostic ignored \"-Wignored-attributes\"") \
489 _Pragma("GCC diagnostic ignored \"-Wignored-qualifiers\"") \
490 _Pragma("GCC diagnostic ignored \"-Wimplicit-fallthrough\"") \
491 _Pragma("GCC diagnostic ignored \"-Winfinite-recursion\"") \
492 _Pragma("GCC diagnostic ignored \"-Wint-in-bool-context\"") \
493 _Pragma("GCC diagnostic ignored \"-Wmaybe-uninitialized\"") \
494 _Pragma("GCC diagnostic ignored \"-Wmisleading-indentation\"") \
495 _Pragma("GCC diagnostic ignored \"-Wmissing-field-initializers\"") \
496 _Pragma("GCC diagnostic ignored \"-Wnested-anon-types\"") \
497 _Pragma("GCC diagnostic ignored \"-Wnon-template-friend\"") \
498 _Pragma("GCC diagnostic ignored \"-Wnon-virtual-dtor\"") \
499 _Pragma("GCC diagnostic ignored \"-Wnonnull\"") \
500 _Pragma("GCC diagnostic ignored \"-Woverflow\"") \
501 _Pragma("GCC diagnostic ignored \"-Woverloaded-virtual\"") \
502 _Pragma("GCC diagnostic ignored \"-Wpedantic\"") \
503 _Pragma("GCC diagnostic ignored \"-Wsuggest-override\"") \
504 _Pragma("GCC diagnostic ignored \"-Wtautological-constant-out-of-range-compare\"") \
505 _Pragma("GCC diagnostic ignored \"-Wtautological-overlap-compare\"") \
506 _Pragma("GCC diagnostic ignored \"-Wtype-limits\"") \
507 _Pragma("GCC diagnostic ignored \"-Wundef\"") \
508 _Pragma("GCC diagnostic ignored \"-Wunused-but-set-parameter\"") \
509 _Pragma("GCC diagnostic ignored \"-Wunused-but-set-variable\"") \
510 _Pragma("GCC diagnostic ignored \"-Wunused-function\"") \
511 _Pragma("GCC diagnostic ignored \"-Wunused-parameter\"") \
512 _Pragma("GCC diagnostic ignored \"-Wunused-private-field\"") \
513 _Pragma("GCC diagnostic ignored \"-Wunused-variable\"") \
514 _Pragma("GCC diagnostic ignored \"-Wuse-after-free\"") \
515 _Pragma("GCC diagnostic warning \"-Wpragmas\"")
516 
517 # define DEAL_II_ENABLE_EXTRA_DIAGNOSTICS \
518 _Pragma("GCC diagnostic pop")
519 
520 #else
521 
522 # define DEAL_II_DISABLE_EXTRA_DIAGNOSTICS
523 # define DEAL_II_ENABLE_EXTRA_DIAGNOSTICS
524 
525 #endif
526 
527 /***********************************************************************
528  * Define macros for picking the correct C linkage name for a Fortran function.
529  * See cmake/configure/configure_fortran_mangling.cmake for more information.
530  */
531 
532 #define DEAL_II_FORTRAN_MANGLE(name, NAME) name ## _
533 
534 #define DEAL_II_FORTRAN_MANGLE_UNDERSCORE(name, NAME) name ## _
535 
536 /***********************************************************************
537  * Define a portable preprocessor macro that generates custom warnings
538  * reporting the line and the file where the warning appears. Taken from:
539  * http://goodliffe.blogspot.com/2009/07/c-how-to-say-warning-to-visual-studio-c.html
540  */
541 
542 #ifdef _MSC_VER
543  #define DEAL_II_STRINGIZE_HELPER(x) #x
544  #define DEAL_II_STRINGIZE(x) DEAL_II_STRINGIZE_HELPER(x)
545  #define DEAL_II_DO_PRAGMA(x) __pragma(x)
546  #define DEAL_II_WARNING(desc) DEAL_II_DO_PRAGMA(message(__FILE__ "(" DEAL_II_STRINGIZE(__LINE__) ") : warning: " #desc))
547 #else
548  #define DEAL_II_DO_PRAGMA(x) _Pragma(#x)
549  #define DEAL_II_WARNING(desc) DEAL_II_DO_PRAGMA(message(#desc))
550 #endif
551 
552 /***********************************************************************
553  * Some places in deal.II require or benefit from using "if constexpr".
554  * However, this feature is only available in C++17 and above.
555  * The macro defined here can be used so that
556  * "if DEAL_II_CONSTEXPR_IN_CONDITIONAL (...)" expands to "if constexpr(...)"
557  * when C++17 is supported and to "if (...)" otherwise.
558  */
559 #ifdef DEAL_II_HAVE_CXX17
560  #define DEAL_II_CONSTEXPR_IN_CONDITIONAL constexpr
561 #else
562  #define DEAL_II_CONSTEXPR_IN_CONDITIONAL
563 #endif
564 
565 
566 /***********************************************************************
567  * Final inclusions:
568  */
569 
570 /*
571  * Some systems require including mpi.h before stdio.h which happens in
572  * types.h
573  */
574 #if defined(DEAL_II_WITH_MPI) || defined(DEAL_II_WITH_PETSC)
576 # include <mpi.h>
578 #endif
579 
580 #include <deal.II/base/numbers.h>
581 #include <deal.II/base/types.h>
582 
583 /*
584  * Include the boost version header to do a quick version check in case, by
585  * accident, we have configured with one version of boost but are compiling
586  * either the library or an external application with a different version of
587  * boost.
588  */
589 #include <boost/version.hpp>
590 static_assert(
591  BOOST_VERSION == 100000 * DEAL_II_BOOST_VERSION_MAJOR +
594  "The version number of boost that you are compiling with does not match the "
595  "version number of boost found during deal.II's configuration step. This "
596  "leads to difficult to understand bugs and is not supported. Please check "
597  "that you have set up your application with the same version of boost as "
598  "deal.II.");
599 
600 #endif
#define DEAL_II_BOOST_VERSION_MINOR
Definition: config.h:286
#define DEAL_II_DISABLE_EXTRA_DIAGNOSTICS
Definition: config.h:475
#define DEAL_II_BOOST_VERSION_MAJOR
Definition: config.h:285
#define DEAL_II_ENABLE_EXTRA_DIAGNOSTICS
Definition: config.h:517
#define DEAL_II_BOOST_VERSION_SUBMINOR
Definition: config.h:287