albertagrid/griddim.hh
00001 #ifndef DUNE_ALBERTA_GRIDDIM_HH
00002 #define DUNE_ALBERTA_GRIDDIM_HH
00003
00004
00005 #if defined GRIDDIM && (GRIDDIM >= 1) && (GRIDDIM <= 3)
00006 #define DIM GRIDDIM
00007 #if defined GRIDDIMWORLD
00008 #define DIM_OF_WORLD GRIDDIMWORLD
00009 #else
00010
00011 #define DIM_OF_WORLD GRIDDIM
00012 #endif
00013 #else
00014 #ifndef ALBERTA_DIM
00015 #error "ALBERTA_DIM needed to compile AlbertaGrid! \n"
00016 #endif
00017
00018 #ifndef ALBERTA_WORLD_DIM
00019 #define ALBERTA_WORLD_DIM ALBERTA_DIM
00020 #endif
00021
00022 #define DIM ALBERTA_DIM
00023 #define DIM_OF_WORLD ALBERTA_WORLD_DIM
00024 #endif
00025
00026 #endif