gridenums.hh
00001 #ifndef DUNE_GRIDENUMS_HH
00002 #define DUNE_GRIDENUMS_HH
00003
00004 #include <dune/common/exceptions.hh>
00005
00006 namespace Dune {
00007
00008
00016 enum PartitionType {
00017 InteriorEntity=0,
00018 BorderEntity=1 ,
00019 OverlapEntity=2 ,
00020 FrontEntity=3 ,
00021 GhostEntity=4
00022 };
00023
00027 inline std::string PartitionName(PartitionType type)
00028 {
00029 switch(type) {
00030 case InteriorEntity:
00031 return "interior";
00032 case BorderEntity:
00033 return "border";
00034 case OverlapEntity:
00035 return "overlap";
00036 case FrontEntity:
00037 return "front";
00038 case GhostEntity:
00039 return "ghost";
00040 default:
00041 DUNE_THROW(NotImplemented, "name of unknown partition type requested");
00042 }
00043 }
00044
00048 enum InterfaceType {
00049 InteriorBorder_InteriorBorder_Interface=0,
00050 InteriorBorder_All_Interface=1,
00051 Overlap_OverlapFront_Interface=2,
00052 Overlap_All_Interface=3,
00053 All_All_Interface=4
00054 };
00055
00059 enum PartitionIteratorType {
00060 Interior_Partition=0,
00061 InteriorBorder_Partition=1,
00062 Overlap_Partition=2,
00063 OverlapFront_Partition=3,
00064 All_Partition=4,
00065 Ghost_Partition=5
00066 };
00067
00068
00072 enum CommunicationDirection {
00073 ForwardCommunication,
00074 BackwardCommunication
00075 };
00076
00077 }
00078 #endif