Skip to content
Snippets Groups Projects
Commit ef936e75 authored by Oliver Sander's avatar Oliver Sander
Browse files

compiles (but doesn't link) the grid-test for 3d

[[Imported from SVN: r1091]]
parent be06e83a
Branches
Tags
No related merge requests found
......@@ -188,6 +188,7 @@ namespace Dune {
// }
};
#ifdef _2
template<>
class UGGridSubEntityFactory<0,2> {
public:
......@@ -205,12 +206,51 @@ namespace Dune {
};
template<>
/** \todo Method not implemented! */
class UGGridSubEntityFactory<1,2> {
public:
static TargetType<1,2>::T* get(TargetType<0,2>::T* c, int i){
DUNE_THROW(GridError, "UGGridSubEntityFactory<1,2>::get() not implemented!");
}
};
#endif
#ifdef _3
// Specializations for dimworld==3
template<>
class UGGridSubEntityFactory<0,3> {
public:
static TargetType<0,3>::T* get(TargetType<0,3>::T* c, int i){
return c;
}
};
template<>
class UGGridSubEntityFactory<3,3> {
public:
static TargetType<3,3>::T* get(TargetType<0,3>::T* c, int i){
return UG_NS<3>::Corner(c, i);
}
};
template<>
/** \todo Method not implemented! */
class UGGridSubEntityFactory<1,3> {
public:
static TargetType<1,3>::T* get(TargetType<0,3>::T* c, int i){
DUNE_THROW(GridError, "UGGridSubEntityFactory<1,3>::get() not implemented!");
}
};
template<>
/** \todo Method not implemented! */
class UGGridSubEntityFactory<2,3> {
public:
static TargetType<2,3>::T* get(TargetType<0,3>::T* c, int i){
DUNE_THROW(GridError, "UGGridSubEntityFactory<2,3>::get() not implemented!");
}
};
#endif
} // namespace Dune
......
......@@ -29,12 +29,14 @@ namespace Dune {
class UGGridElement :
public ElementDefault <dim,dimworld, UGCtype,UGGridElement>
{
template <int codim_, int dim_, int dimworld_>
friend class UGGridEntity;
friend class UGGridEntity<0,dim,dimworld>;
friend class UGGridEntity<2,dim,dimworld>;
friend class UGGridEntity<2,2,dimworld>;
friend class UGGridEntity<3,dim,dimworld>;
friend class UGGridEntity<3,3,dimworld>;
// friend class UGGridEntity<0,dim,dimworld>;
// friend class UGGridEntity<2,dim,dimworld>;
// friend class UGGridEntity<2,2,dimworld>;
// friend class UGGridEntity<3,dim,dimworld>;
// friend class UGGridEntity<3,3,dimworld>;
public:
......@@ -136,6 +138,10 @@ namespace Dune {
class UGGridElement<2, 3> :
public ElementDefault <2, 3, UGCtype,UGGridElement>
{
template <int codim_, int dim_, int dimworld_>
friend class UGGridEntity;
public:
//! for makeRefElement == true a Element with the coordinates of the
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment