Go to the documentation of this file.00001 #ifndef VIENNAGRID_TOPOLOGY_LINE_HPP
00002 #define VIENNAGRID_TOPOLOGY_LINE_HPP
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #include "viennagrid/forwards.h"
00022 #include "viennagrid/topology/point.hpp"
00023
00028 namespace viennagrid
00029 {
00031 template <>
00032 struct simplex_tag<1>
00033 {
00034 enum { dim = 1 };
00035 static std::string name() { return "Line"; }
00036 };
00037
00038
00039 namespace topology
00040 {
00041
00042
00044 template <>
00045 struct bndcells<simplex_tag<1>, 0>
00046 {
00047 typedef point_tag tag;
00048
00049 enum{ num = 2 };
00050 };
00051
00052 }
00053
00054
00055
00057 template <>
00058 struct hypercube_tag<1>
00059 {
00060 enum { dim = 1 };
00061 static std::string name() { return "Line"; }
00062 };
00063
00064
00065 namespace topology
00066 {
00067
00068
00070 template <>
00071 struct bndcells<hypercube_tag<1>, 0>
00072 {
00073 typedef point_tag tag;
00074
00075 enum{ num = 2 };
00076 };
00077
00078 }
00079
00080 }
00081
00082 #endif
00083