Skip to content
Snippets Groups Projects
Commit e1470ef2 authored by Robert Klöfkorn's avatar Robert Klöfkorn
Browse files

Added check for oppositeVertex, to use only when the vertices are set

correctly.


git-svn-id: https://dune.mathematik.uni-freiburg.de/svn/alugrid/trunk@330 0d966ed9-3843-0410-af09-ebfb50bd7c74
parent d715a7aa
No related branches found
No related tags found
No related merge requests found
...@@ -50,26 +50,6 @@ class GitterBasis : public virtual Gitter, public Gitter :: Geometric { ...@@ -50,26 +50,6 @@ class GitterBasis : public virtual Gitter, public Gitter :: Geometric {
int _idn ; int _idn ;
} ; } ;
#if 0
// organizes the indices for boundary faces and
// the opposite vertices for ghost cells
class Dune_hbndDefault
{
protected:
int _index;
public:
inline Dune_hbndDefault ();
inline int getIndex () const;
inline void setIndex ( int idx );
protected:
inline void splitGhost () {}
inline void setGhost (Gitter::helement_STI *) {}
};
#endif
class Dune_Hbnd3Default class Dune_Hbnd3Default
{ {
protected: protected:
...@@ -402,8 +382,14 @@ inline void GitterBasis :: Objects :: Dune_Hbnd3Default ...@@ -402,8 +382,14 @@ inline void GitterBasis :: Objects :: Dune_Hbnd3Default
inline const double (& GitterBasis :: Objects :: Dune_Hbnd3Default ::oppositeVertex (int i) const) [3] inline const double (& GitterBasis :: Objects :: Dune_Hbnd3Default ::oppositeVertex (int i) const) [3]
{ {
#ifdef __USE_INTERNAL_FACES__
assert((i >= 0) && (i < _dimvx)); assert((i >= 0) && (i < _dimvx));
return _oppVx; return _oppVx;
#else
cerr << "Dune_Hbnd3Default ::oppositeVertex is not supported when compiled without the '__USE_INTERNAL_FACES__' cpp variable! in: "<<__FILE__<<" line: " <<__LINE__<<endl;
abort();
return _oppVx;
#endif
} }
inline int GitterBasis :: Objects :: Dune_Hbnd3Default :: dimVx () const { return _dimvx; } inline int GitterBasis :: Objects :: Dune_Hbnd3Default :: dimVx () const { return _dimvx; }
...@@ -427,8 +413,14 @@ inline void GitterBasis :: Objects :: Dune_Hbnd4Default ...@@ -427,8 +413,14 @@ inline void GitterBasis :: Objects :: Dune_Hbnd4Default
inline const double (& GitterBasis :: Objects :: Dune_Hbnd4Default ::oppositeVertex (int i) const) [3] inline const double (& GitterBasis :: Objects :: Dune_Hbnd4Default ::oppositeVertex (int i) const) [3]
{ {
#ifdef __USE_INTERNAL_FACES__
assert((i >= 0) && (i < _dimvx)); assert((i >= 0) && (i < _dimvx));
return _oppVx[i]; return _oppVx[i];
#else
cerr << "Dune_Hbnd4Default ::oppositeVertex is not supported when compiled without the '__USE_INTERNAL_FACES__' cpp variable! in: "<<__FILE__<<" line: " <<__LINE__<<endl;
abort();
return _oppVx[i];
#endif
} }
inline int GitterBasis :: Objects :: Dune_Hbnd4Default :: dimVx () const { return _dimvx; } inline int GitterBasis :: Objects :: Dune_Hbnd4Default :: dimVx () const { return _dimvx; }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment