/usr/include/deal.II/base/config.h is in libdeal.ii-dev 8.4.2-2+b1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 | // ---------------------------------------------------------------------
//
// Copyright (C) 2012 - 2016 by the deal.II authors
//
// This file is part of the deal.II library.
//
// The deal.II library is free software; you can use it, redistribute
// it, and/or modify it under the terms of the GNU Lesser General
// Public License as published by the Free Software Foundation; either
// version 2.1 of the License, or (at your option) any later version.
// The full text of the license can be found in the file LICENSE at
// the top level of the deal.II distribution.
//
// ---------------------------------------------------------------------
#ifndef dealii__config_h
#define dealii__config_h
/***********************************************************************
* Information about deal.II:
*/
#define DEAL_II_PACKAGE_NAME "deal.II"
#define DEAL_II_PACKAGE_VERSION "8.4.2"
#define DEAL_II_VERSION_MAJOR 8
#define DEAL_II_VERSION_MINOR 4
#define DEAL_II_VERSION_SUBMINOR 2
/***********************************************************************
* Configured deal.II features:
*/
/* #undef DEAL_II_WITH_64BIT_INDICES */
#define DEAL_II_WITH_ARPACK
#define DEAL_II_WITH_BZIP2
#define DEAL_II_WITH_CXX11
#define DEAL_II_WITH_CXX14
#define DEAL_II_WITH_HDF5
#define DEAL_II_WITH_LAPACK
/* #undef DEAL_II_WITH_METIS */
#define DEAL_II_WITH_MPI
#define DEAL_II_WITH_MUPARSER
#define DEAL_II_WITH_NETCDF
#define DEAL_II_WITH_OPENCASCADE
#define DEAL_II_WITH_P4EST
#define DEAL_II_WITH_PETSC
#define DEAL_II_WITH_SLEPC
#define DEAL_II_WITH_THREADS
#define DEAL_II_WITH_TRILINOS
#define DEAL_II_WITH_UMFPACK
#define DEAL_II_WITH_ZLIB
/***********************************************************************
* Compiler bugs:
*
* For documentation see cmake/checks/check_03_compiler_bugs.cmake
*/
/* #undef DEAL_II_TEMPL_SPEC_FRIEND_BUG */
/* #undef DEAL_II_MEMBER_ARRAY_SPECIALIZATION_BUG */
/* #undef DEAL_II_MEMBER_VAR_SPECIALIZATION_BUG */
/* #undef DEAL_II_EXPLICIT_CONSTRUCTOR_BUG */
/* #undef DEAL_II_CONST_MEMBER_DEDUCTION_BUG */
/* #undef DEAL_II_BOOST_BIND_COMPILER_BUG */
/* #undef DEAL_II_BIND_NO_CONST_OP_PARENTHESES */
/* #undef DEAL_II_CONSTEXPR_BUG */
/* #undef DEAL_II_ICC_SFINAE_BUG */
/***********************************************************************
* Compiler features:
*
* For documentation see cmake/checks/check_01_compiler_features.cmake
*/
#define DEAL_II_COMPILER_USE_VECTOR_ARITHMETICS
/* #undef DEAL_II_VECTOR_ITERATOR_IS_POINTER */
#define DEAL_II_HAVE_BUILTIN_EXPECT
#define DEAL_II_HAVE_VERBOSE_TERMINATE
#define DEAL_II_HAVE_GLIBC_STACKTRACE
#define DEAL_II_HAVE_LIBSTDCXX_DEMANGLER
/* #undef __PRETTY_FUNCTION__ */
#define DEAL_II_DEPRECATED __attribute__((deprecated))
#define DEAL_II_ALWAYS_INLINE __attribute__((always_inline))
#define DEAL_II_COMPILER_HAS_DIAGNOSTIC_PRAGMA
/***********************************************************************
* CPU features:
*
* For documentation see cmake/checks/check_01_cpu_features.cmake
*/
/* #undef DEAL_II_WORDS_BIGENDIAN */
#define DEAL_II_COMPILER_VECTORIZATION_LEVEL 0
#define DEAL_II_OPENMP_SIMD_PRAGMA _Pragma("omp simd")
/***********************************************************************
* Language features:
*
* For documentation see cmake/checks/check_01_cxx_features.cmake
*/
#define DEAL_II_HAVE_CXX11_IS_TRIVIALLY_COPYABLE
/* #undef DEAL_II_HAVE_ISNAN */
#define DEAL_II_HAVE_STD_ISNAN
/* #undef DEAL_II_HAVE_UNDERSCORE_ISNAN */
#define DEAL_II_HAVE_ISFINITE
#define DEAL_II_HAVE_FP_EXCEPTIONS
/* #undef DEAL_II_HAVE_COMPLEX_OPERATOR_OVERLOADS */
/***********************************************************************
* System features:
*
* For documentation see cmake/checks/check_02_system_features.cmake
*/
#define DEAL_II_HAVE_SYS_RESOURCE_H
#define DEAL_II_HAVE_SYS_TIME_H
#define DEAL_II_HAVE_SYS_TIMES_H
#define DEAL_II_HAVE_SYS_TYPES_H
#define DEAL_II_HAVE_UNISTD_H
#define DEAL_II_HAVE_GETHOSTNAME
#define DEAL_II_HAVE_GETPID
#define DEAL_II_HAVE_TIMES
#define DEAL_II_HAVE_JN
/* #undef DEAL_II_MSVC */
/***********************************************************************
* Feature configuration
*
* For documentation see cmake/configure/configure_*.cmake and
* cmake/modules/Find*.cmake
*/
/* cmake/modules/FindARPACK.cmake */
#define DEAL_II_ARPACK_WITH_PARPACK
/* cmake/configure/configure_1_threads.cmake */
#define DEAL_II_USE_MT_POSIX
/* #undef DEAL_II_USE_MT_POSIX_NO_BARRIERS */
/*
* Depending on the use of threads, we will have to make some variables
* volatile. We do this here in a very old-fashioned C-style, but still
* convenient way.
*/
#ifdef DEAL_II_WITH_THREADS
# define DEAL_VOLATILE volatile
#else
# define DEAL_VOLATILE
#endif
/***********************************************************************
* Various macros for version number query and comparison:
*
* These macros are defined to make testing for specific versions within
* the deal.II main code as simple as possible.
*/
/*
* deal.II:
*/
#define DEAL_II_VERSION_GTE(major,minor,subminor) \
((DEAL_II_VERSION_MAJOR * 10000 + \
DEAL_II_VERSION_MINOR * 100 + \
DEAL_II_VERSION_SUBMINOR) \
>= \
(major)*10000 + (minor)*100 + (subminor))
/*
* p4est:
*/
#ifdef DEAL_II_WITH_P4EST
# define DEAL_II_P4EST_VERSION_MAJOR 1
# define DEAL_II_P4EST_VERSION_MINOR 1
# define DEAL_II_P4EST_VERSION_SUBMINOR 0
# define DEAL_II_P4EST_VERSION_PATCH 0
# define DEAL_II_P4EST_VERSION_GTE(major,minor,subminor,patch) \
((DEAL_II_P4EST_VERSION_MAJOR * 1000000 + \
DEAL_II_P4EST_VERSION_MINOR * 10000 + \
DEAL_II_P4EST_VERSION_SUBMINOR * 100 + \
DEAL_II_P4EST_VERSION_PATCH) \
>= \
(major)*1000000 + (minor)*10000 + (subminor)*100 + (patch))
#else
// p4est up to 0.3.4.1 didn't define P4EST_VERSION_*. since
// we didn't supports anything before 0.3.4, we assume 0.3.4
// This means that we can't use the new features in 0.3.4.1
# define DEAL_II_P4EST_VERSION_GTE(major,minor,subminor,patch) \
((0 * 1000000 + \
3 * 10000 + \
4 * 100 + \
0) \
>= \
(major)*1000000 + (minor)*10000 + (subminor)*100 + (patch))
#endif
/*
* PETSc:
*
* Note: The following definitions will be set in petscconf.h and
* petscversion.h, so we don't repeat them here.
*
* PETSC_VERSION_MAJOR
* PETSC_VERSION_MINOR
* PETSC_VERSION_SUBMINOR
* PETSC_VERSION_PATCH
* PETSC_VERSION_RELEASE
* PETSC_USE_COMPLEX
*/
#define DEAL_II_PETSC_VERSION_LT(major,minor,subminor) \
((PETSC_VERSION_MAJOR * 10000 + \
PETSC_VERSION_MINOR * 100 + \
PETSC_VERSION_SUBMINOR) \
< \
(major)*10000 + (minor)*100 + (subminor))
#define DEAL_II_PETSC_VERSION_GTE(major,minor,subminor) \
((PETSC_VERSION_MAJOR * 10000 + \
PETSC_VERSION_MINOR * 100 + \
PETSC_VERSION_SUBMINOR) \
>= \
(major)*10000 + (minor)*100 + (subminor))
/*
* Trilinos:
*/
#ifdef DEAL_II_WITH_TRILINOS
# define DEAL_II_TRILINOS_VERSION_MAJOR 12
# define DEAL_II_TRILINOS_VERSION_MINOR 10
# define DEAL_II_TRILINOS_VERSION_SUBMINOR 1
# define DEAL_II_TRILINOS_VERSION_GTE(major,minor,subminor) \
((DEAL_II_TRILINOS_VERSION_MAJOR * 10000 + \
DEAL_II_TRILINOS_VERSION_MINOR * 100 + \
DEAL_II_TRILINOS_VERSION_SUBMINOR) \
>= \
(major)*10000 + (minor)*100 + (subminor))
#endif
/***********************************************************************
* Two macro names that we put at the top and bottom of all deal.II files
* and that will be expanded to "namespace dealii {" and "}".
*/
#define DEAL_II_NAMESPACE_OPEN namespace dealii {
#define DEAL_II_NAMESPACE_CLOSE }
/***********************************************************************
* Two macros to guard external header includes.
*
* Selectively disable diagnostics set by "-Wextra" (and similar flags) for
* GCC and compiler accepting GCC dialects (such as clang).
* "diagnostic push" is supported since gcc-4.6 and clang-3.3.
*/
#ifdef DEAL_II_COMPILER_HAS_DIAGNOSTIC_PRAGMA
# define DEAL_II_DISABLE_EXTRA_DIAGNOSTICS \
_Pragma("GCC diagnostic push") \
_Pragma("GCC diagnostic ignored \"-Wunknown-pragmas\"") \
_Pragma("GCC diagnostic ignored \"-Wpragmas\"") \
_Pragma("GCC diagnostic ignored \"-Wextra\"") \
_Pragma("GCC diagnostic ignored \"-Woverloaded-virtual\"") \
_Pragma("GCC diagnostic ignored \"-Wunused-function\"") \
_Pragma("GCC diagnostic ignored \"-Wunused-parameter\"") \
_Pragma("GCC diagnostic ignored \"-Wunused-variable\"") \
_Pragma("GCC diagnostic ignored \"-Wtype-limits\"") \
_Pragma("GCC diagnostic ignored \"-Wtautological-constant-out-of-range-compare\"") \
_Pragma("GCC diagnostic ignored \"-Wmissing-field-initializers\"") \
_Pragma("GCC diagnostic ignored \"-Winfinite-recursion\"") \
_Pragma("GCC diagnostic ignored \"-Wunused-but-set-parameter\"") \
_Pragma("GCC diagnostic ignored \"-Wnested-anon-types\"") \
_Pragma("GCC diagnostic ignored \"-Wunused-private-field\"") \
_Pragma("GCC diagnostic ignored \"-Wdeprecated-declarations\"") \
_Pragma("GCC diagnostic ignored \"-Wunused-but-set-variable\"") \
_Pragma("GCC diagnostic warning \"-Wpragmas\"")
# define DEAL_II_ENABLE_EXTRA_DIAGNOSTICS \
_Pragma("GCC diagnostic pop")
#else
# define DEAL_II_DISABLE_EXTRA_DIAGNOSTICS
# define DEAL_II_ENABLE_EXTRA_DIAGNOSTICS
#endif
/**
* BOOST can falsely detect cxx11 support and will try to use
* variadic templates even when we disable cxx11. This would create
* a ton of warnings, so we tell boost to not use them in this case.
*/
#ifndef DEAL_II_WITH_CXX11
#define BOOST_NO_CXX11_VARIADIC_TEMPLATES
#endif
/***********************************************************************
* Final inclusions:
*/
/*
* Some systems require including mpi.h before stdio.h which happens in
* types.h
*/
#if defined(DEAL_II_WITH_MPI) || defined(DEAL_II_WITH_PETSC)
# include <mpi.h>
#endif
#include <deal.II/base/numbers.h>
#include <deal.II/base/types.h>
#endif
|