deal.II version GIT relicensing-2165-gc91f007519 2024-11-20 01:40:00+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-2165-gc91f007519 2024-11-20 01:40:00+00:00"
26
27#define DEAL_II_VERSION_MAJOR GIT relicensing-2165-gc91f007519 2024-11-20 01:40:00+00:00
28#define DEAL_II_VERSION_MINOR GIT relicensing-2165-gc91f007519 2024-11-20 01:40:00+00:00
29#define DEAL_II_VERSION_SUBMINOR GIT relicensing-2165-gc91f007519 2024-11-20 01:40:00+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/* #undef DEAL_II_WITH_COMPLEX_VALUES */
44/* #undef DEAL_II_WITH_GINKGO */
45/* #undef DEAL_II_WITH_GMSH */
46/* #undef DEAL_II_WITH_GSL */
47/* #undef DEAL_II_WITH_HDF5 */
48#define DEAL_II_WITH_KOKKOS
49#define DEAL_II_FEATURE_KOKKOS_BUNDLED_CONFIGURED
50/* #undef DEAL_II_WITH_LAPACK */
51/* #undef LAPACK_WITH_64BIT_BLAS_INDICES */
52/* #undef DEAL_II_LAPACK_WITH_MKL */
53/* #undef DEAL_II_WITH_MAGIC_ENUM */
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#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
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_OPENMP_SIMD_PRAGMA _Pragma("omp simd")
142
143
144/***********************************************************************
145 * Language features:
146 *
147 * For documentation see cmake/checks/check_01_cxx_features.cmake
148 */
149
150/* #undef DEAL_II_HAVE_CXX14 */
151#define DEAL_II_HAVE_CXX17
152/* #undef DEAL_II_HAVE_CXX20 */
153/* #undef DEAL_II_HAVE_CXX23 */
154
155#define DEAL_II_HAVE_FP_EXCEPTIONS
156/* #undef DEAL_II_HAVE_COMPLEX_OPERATOR_OVERLOADS */
157#define DEAL_II_HAVE_CXX17_BESSEL_FUNCTIONS
158/* #undef DEAL_II_CXX14_CONSTEXPR_BUG */
159
160// The following three are defined for backwards compatibility with older
161// deal.II versions:
162#define DEAL_II_WITH_CXX11
163#define DEAL_II_WITH_CXX14
164#define DEAL_II_WITH_CXX17
165
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)
174#else
175# define DEAL_II_CXX20_REQUIRES(condition)
176#endif
177
183#ifdef DEAL_II_HAVE_CXX23
184# define define DEAL_II_ASSUME(expr) [[assume(expr)]]
185#else
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);
190# else
191/* no way with GCC to express this without evaluating 'expr' */
192# define DEAL_II_CXX23_ASSUME(expr) \
193 do \
194 { \
195 } \
196 while (false)
197# endif
198#endif
199
200
205#define DEAL_II_DEPRECATED [[deprecated]]
206#define DEAL_II_DEPRECATED_WITH_COMMENT(comment) [[deprecated(comment)]]
207
214/* #undef DEAL_II_EARLY_DEPRECATIONS */
215#ifndef DEAL_II_DEPRECATED_EARLY
216// guard to allow user to override DEAL_II_DEPRECATED_EARLY
217#ifdef DEAL_II_EARLY_DEPRECATIONS
218#define DEAL_II_DEPRECATED_EARLY [[deprecated]]
219#else
220#define DEAL_II_DEPRECATED_EARLY
221#endif
222#endif
223
224#ifndef DEAL_II_DEPRECATED_EARLY_WITH_COMMENT
225// guard to allow user to override DEAL_II_DEPRECATED_EARLY
226#ifdef DEAL_II_EARLY_DEPRECATIONS
227#define DEAL_II_DEPRECATED_EARLY_WITH_COMMENT(comment) [[deprecated(comment)]]
228#else
229#define DEAL_II_DEPRECATED_EARLY_WITH_COMMENT(comment)
230#endif
231#endif
232
233#define DEAL_II_FALLTHROUGH [[fallthrough]]
234#define DEAL_II_CONSTEXPR constexpr
235
236
237/***********************************************************************
238 * System features:
239 *
240 * For documentation see cmake/checks/check_02_system_features.cmake
241 */
242
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
247/* #undef DEAL_II_HAVE_JN */
248
249/* #undef DEAL_II_MSVC */
250
251
252/***********************************************************************
253 * Feature configuration
254 *
255 * For documentation see cmake/configure/configure_*.cmake and
256 * cmake/modules/Find*.cmake
257 */
258
259/* cmake/modules/FindADOLC.cmake */
260/* #undef DEAL_II_ADOLC_WITH_ATRIG_ERF */
261/* #undef DEAL_II_ADOLC_WITH_ADVANCED_BRANCHING */
262/* #undef DEAL_II_ADOLC_WITH_TAPELESS_REFCOUNTING */
263
264/* cmake/modules/FindARBORX.cmake */
265/* #undef DEAL_II_ARBORX_WITH_MPI */
266
267/* cmake/modules/FindARPACK.cmake */
268/* #undef DEAL_II_ARPACK_WITH_PARPACK */
269
270/* cmake/modules/FindGMSH.cmake */
271/* #undef DEAL_II_GMSH_WITH_API */
272
273/* cmake/modules/FindPETSC.cmake */
274/* #undef DEAL_II_PETSC_WITH_COMPLEX */
275/* #undef DEAL_II_PETSC_WITH_HYPRE */
276/* #undef DEAL_II_PETSC_WITH_MUMPS */
277/* #undef DEAL_II_PETSC_WITH_KOKKOS */
278
279/* cmake/modules/FindSUNDIALS.cmake */
280/* #undef DEAL_II_SUNDIALS_WITH_IDAS */
281
282/* cmake/modules/FindSYMENGINE.cmake */
283/* #undef DEAL_II_SYMENGINE_WITH_LLVM */
284
285/* cmake/configure/configure_20_boost.cmake */
286/* #undef DEAL_II_BOOST_HAS_BROKEN_HEADER_DEPRECATIONS */
287
288/* cmake/configure/configure_50_cgal.cmake */
289/* #undef DEAL_II_CGAL_HAS_DEPRECATED_BOOST_INCLUDES */
290
291/* cmake/configure/configure_2_trilinos.cmake */
292/* #undef DEAL_II_TRILINOS_CXX_SUPPORTS_SACADO_COMPLEX_RAD */
293/* #undef DEAL_II_TRILINOS_WITH_AMESOS2 */
294/* #undef DEAL_II_TRILINOS_WITH_BELOS */
295/* #undef DEAL_II_TRILINOS_WITH_EPETRAEXT */
296/* #undef DEAL_II_TRILINOS_WITH_IFPACK2 */
297/* #undef DEAL_II_TRILINOS_WITH_MUELU */
298/* #undef DEAL_II_TRILINOS_WITH_NOX */
299/* #undef DEAL_II_TRILINOS_WITH_ROL */
300/* #undef DEAL_II_TRILINOS_WITH_SACADO */
301/* #undef DEAL_II_TRILINOS_WITH_SEACAS */
302/* #undef DEAL_II_TRILINOS_WITH_TPETRA */
303/* #undef DEAL_II_TRILINOS_WITH_ZOLTAN */
304
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
309# endif
310#endif
311
312/***********************************************************************
313 * Various macros for version number query and comparison:
314 *
315 * These macros are defined to make testing for specific versions within
316 * the deal.II main code as simple as possible.
317 */
318
319/*
320 * deal.II:
321 */
322
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) \
333 >= \
334 (major)*10000 + (minor)*100 + (subminor))
335
336/*
337 * boost:
338 */
339#define DEAL_II_BOOST_VERSION_MAJOR 1
340#define DEAL_II_BOOST_VERSION_MINOR 84
341#define DEAL_II_BOOST_VERSION_SUBMINOR 0
342
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) \
347 >= \
348 (major)*100000 + (minor)*100 + (subminor))
349
350/*
351 * Gmsh:
352 */
353#ifdef DEAL_II_WITH_GMSH
354# define DEAL_II_GMSH_EXECUTABLE_PATH ""
355#endif
356
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
365
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) \
370 >= \
371 (major)*10000 + (minor)*100 + (subminor))
372#endif
373
374/*
375 * p4est:
376 */
377
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
383
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) \
389 >= \
390 (major)*1000000 + (minor)*10000 + (subminor)*100 + (patch))
391#endif
392
393/*
394 * SUNDIALS:
395 */
396
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
401
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) \
406 >= \
407 (major)*10000 + (minor)*100 + (patch))
408
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) \
413 < \
414 (major)*10000 + (minor)*100 + (patch))
415#endif
416
417/*
418 * PETSc:
419 *
420 * Note: The following macros are defined in petscversion.h
421 * so we don't repeat them here.
422 */
423
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)
429#endif
430
431/*
432 * SLEPC:
433 */
434
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)
440#endif
441
442/*
443 * Trilinos:
444 */
445
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
450
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) \
455 >= \
456 (major)*10000 + (minor)*100 + (subminor))
457#endif
458
459/*
460 * CGAL:
461 */
462
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
467
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))
472#endif
473
474/*
475 * MPI
476 */
477
478#ifdef DEAL_II_WITH_MPI
479# define DEAL_II_MPI_VERSION_MAJOR
480# define DEAL_II_MPI_VERSION_MINOR
481
482# define DEAL_II_MPI_VERSION_GTE(major,minor) \
483 ((DEAL_II_MPI_VERSION_MAJOR * 100 + \
484 DEAL_II_MPI_VERSION_MINOR) \
485 >= \
486 (major)*100 + (minor))
487#else
488# define DEAL_II_MPI_VERSION_GTE(major,minor) false
489#endif
490
491/* #undef DEAL_II_MPI_WITH_DEVICE_SUPPORT */
492
493/***********************************************************************
494 * Two macro names that we put at the top and bottom of all deal.II files
495 * and that will be expanded to "namespace dealii {" and "}".
496 */
497
498#define DEAL_II_NAMESPACE_OPEN namespace dealii {
499#define DEAL_II_NAMESPACE_CLOSE }
500
501/***********************************************************************
502 * Two macros to guard external header includes.
503 *
504 * Selectively disable diagnostics set by "-Wextra" (and similar flags) for
505 * GCC and compiler accepting GCC dialects (such as clang).
506 * "diagnostic push" is supported since gcc-4.6 and clang-3.3.
507 */
508
509#ifdef DEAL_II_COMPILER_HAS_DIAGNOSTIC_PRAGMA
510
511/* keep pragmas with an exclamation mark in order.. */
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\"")
554
555# define DEAL_II_ENABLE_EXTRA_DIAGNOSTICS \
556_Pragma("GCC diagnostic pop")
557
558#else
559
560# define DEAL_II_DISABLE_EXTRA_DIAGNOSTICS
561# define DEAL_II_ENABLE_EXTRA_DIAGNOSTICS
562
563#endif
564
565/***********************************************************************
566 * Define macros for picking the correct C linkage name for a Fortran function.
567 * See cmake/configure/configure_fortran_mangling.cmake for more information.
568 */
569
570#define DEAL_II_FORTRAN_MANGLE(name, NAME) name ## _
571
572#define DEAL_II_FORTRAN_MANGLE_UNDERSCORE(name, NAME) name ## _
573
574/***********************************************************************
575 * Define a portable preprocessor macro that generates custom warnings
576 * reporting the line and the file where the warning appears. Taken from:
577 * http://goodliffe.blogspot.com/2009/07/c-how-to-say-warning-to-visual-studio-c.html
578 */
579
580#ifdef _MSC_VER
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))
585#else
586 #define DEAL_II_DO_PRAGMA(x) _Pragma(#x)
587 #define DEAL_II_WARNING(desc) DEAL_II_DO_PRAGMA(message(#desc))
588#endif
589
590
591/***********************************************************************
592 * Final inclusions:
593 */
594
595/*
596 * Some systems require including mpi.h before stdio.h which happens in
597 * types.h
598 */
599#if defined(DEAL_II_WITH_MPI)
601# include <mpi.h>
603#endif
604
605#include <deal.II/base/numbers.h>
606#include <deal.II/base/types.h>
607
608/*
609 * Include the boost version header to do a quick version check in case, by
610 * accident, we have configured with one version of boost but are compiling
611 * either the library or an external application with a different version of
612 * boost.
613 */
614#include <boost/version.hpp>
615static_assert(
616 BOOST_VERSION == 100000 * DEAL_II_BOOST_VERSION_MAJOR +
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 "
623 "deal.II.");
624
625#endif
#define DEAL_II_BOOST_VERSION_MINOR
Definition config.h:340
#define DEAL_II_DISABLE_EXTRA_DIAGNOSTICS
Definition config.h:512
#define DEAL_II_BOOST_VERSION_MAJOR
Definition config.h:339
#define DEAL_II_ENABLE_EXTRA_DIAGNOSTICS
Definition config.h:555
#define DEAL_II_BOOST_VERSION_SUBMINOR
Definition config.h:341