- Home
- About DUNE
- Download
- Documentation
- Community
- Development
00001 #ifndef DUNE_ALBERTAHEADER_HH 00002 #define DUNE_ALBERTAHEADER_HH 00003 00004 #if HAVE_ALBERTA 00005 00006 #if not (ALBERTA_DIM > 0) 00007 #if HEADERCHECK 00008 #undef ALBERTA_DIM 00009 #define ALBERTA_DIM 2 00010 #else 00011 #error ALBERTA_DIM should be 1, 2, or 3 00012 #endif 00013 #endif 00014 00015 // Set ALBERTA's DIM_OF_WORLD preprocessor variable 00016 #ifndef ALBERTA_DIM 00017 #error "ALBERTA_DIM needed to use AlbertaGrid." 00018 #endif 00019 #define DIM_OF_WORLD ALBERTA_DIM 00020 00021 // if we have ALBERTA C++ lib define namespace for ALBERTA 00022 #ifdef __ALBERTApp__ 00023 #define ALBERTA Alberta:: 00024 #else 00025 #define ALBERTA :: 00026 #endif 00027 00028 #ifndef ALBERTA_DEBUG 00029 #define ALBERTA_DEBUG 0 00030 #endif 00031 00032 // MAX, MIN, and ABS are defined macros of ALBERTA 00033 // if they are not defined elsewhere, they are undefined here 00034 #ifndef MAX 00035 #define _MAX_NOT_DEFINED_ 00036 #endif 00037 00038 #ifndef MIN 00039 #define _MIN_NOT_DEFINED_ 00040 #endif 00041 00042 #ifndef ABS 00043 #define _ABS_NOT_DEFINED_ 00044 #endif 00045 00046 #ifndef DIM_OF_WORLD 00047 #error "DIM_OF_WORLD not defined." 00048 #endif 00049 00050 #ifdef HAVE_CONFIG_H 00051 #define ALBERTASAVE_HAVE_CONFIG_H HAVE_CONFIG_H 00052 #undef HAVE_CONFIG_H 00053 #endif 00054 00055 #include <alberta.h> 00056 00057 #ifdef ALBERTASAVE_HAVE_CONFIG_H 00058 #define HAVE_CONFIG_H ALBERTASAVE_HAVE_CONFIG_H 00059 #undef ALBERTASAVE_HAVE_CONFIG_H 00060 #endif 00061 00062 #ifndef _ALBERTA_H_ 00063 #error "Unable to include alberta.h." 00064 #endif 00065 00066 // Macro nil may be defined by alberta_util.h. If so, undefine it. 00067 #ifdef nil 00068 #undef nil 00069 #endif 00070 00071 // Macro SQR may be defined by alberta_util.h. If so, undefine it to avoid 00072 // clashes with Dune::SQR from dune/common/misc.hh 00073 #ifdef SQR 00074 #undef SQR 00075 #endif 00076 00077 #endif // #if HAVE_ALBERTA 00078 00079 #endif // #ifndef DUNE_ALBERTAHEADER_HH
Generated on Fri Apr 29 2011 with Doxygen (ver 1.7.1) [doxygen-log,error-log].