/usr/include/dune/grid/albertagrid/albertaheader.hh is in libdune-grid-dev 2.2.1-2.
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 | #ifndef DUNE_ALBERTAHEADER_HH
#define DUNE_ALBERTAHEADER_HH
#if HAVE_ALBERTA
#if not (ALBERTA_DIM > 0)
#if HEADERCHECK
#undef ALBERTA_DIM
#define ALBERTA_DIM 2
#else
#error ALBERTA_DIM should be 1, 2, or 3
#endif
#endif
// Set ALBERTA's DIM_OF_WORLD preprocessor variable
#ifndef ALBERTA_DIM
#error "ALBERTA_DIM needed to use AlbertaGrid."
#endif
#define DIM_OF_WORLD ALBERTA_DIM
// if we have ALBERTA C++ lib define namespace for ALBERTA
#ifdef __ALBERTApp__
#define ALBERTA Alberta::
#else
#define ALBERTA ::
#endif
#ifndef ALBERTA_DEBUG
#define ALBERTA_DEBUG 0
#endif
// MAX, MIN, and ABS are defined macros of ALBERTA
// if they are not defined elsewhere, they are undefined here
#ifndef MAX
#define _MAX_NOT_DEFINED_
#endif
#ifndef MIN
#define _MIN_NOT_DEFINED_
#endif
#ifndef ABS
#define _ABS_NOT_DEFINED_
#endif
#ifndef DIM_OF_WORLD
#error "DIM_OF_WORLD not defined."
#endif
#ifdef HAVE_CONFIG_H
#define ALBERTASAVE_HAVE_CONFIG_H HAVE_CONFIG_H
#undef HAVE_CONFIG_H
#endif
#include <alberta/alberta.h>
#ifdef ALBERTASAVE_HAVE_CONFIG_H
#define HAVE_CONFIG_H ALBERTASAVE_HAVE_CONFIG_H
#undef ALBERTASAVE_HAVE_CONFIG_H
#endif
#ifndef _ALBERTA_H_
#error "Unable to include alberta.h."
#endif
// Macro nil may be defined by alberta_util.h. If so, undefine it.
#ifdef nil
#undef nil
#endif
// Macro SQR may be defined by alberta_util.h. If so, undefine it to avoid
// clashes with Dune::SQR from dune/common/misc.hh
#ifdef SQR
#undef SQR
#endif
#endif // #if HAVE_ALBERTA
#endif // #ifndef DUNE_ALBERTAHEADER_HH
|