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

some more documentation

[[Imported from SVN: r2111]]
parent 606abfc3
No related branches found
No related tags found
No related merge requests found
......@@ -138,20 +138,14 @@ namespace Dune {
friend class UGGridHierarchicIndexSet<UGGrid<dim,dimworld> >;
/** \brief UGGrid is only implemented for 2 and 3 dimension
* for 1d use SGrid or OneDGrid */
/** \brief UGGrid is only implemented for 2 and 3 dimension */
CompileTimeChecker< (dimworld==dim) && ((dim==2) || (dim==3)) > Use_UGGrid_only_for_2d_and_3d;
// #ifdef _2
// CompileTimeChecker< (dimworld==dim) && (dim==2) > Use_UGGrid_only_for_2d_when_built_for_2d;
// #endif
// #ifdef _3
// CompileTimeChecker< (dimworld==dim) && (dim==3) > Use_UGGrid_only_for_3d_when_built_for_3d;
// #endif
//**********************************************************
// The Interface Methods
//**********************************************************
public:
/** \brief The standard Dune grid traits */
typedef GridTraits<dim,
dimworld,
Dune::UGGrid<dim,dimworld> ,
......@@ -163,7 +157,10 @@ namespace Dune {
UGGridIntersectionIterator,
UGGridHierarchicIterator> Traits;
/** \brief The type of a UGGrid hierarchic index set */
typedef UGGridHierarchicIndexSet<Dune::UGGrid<dim,dimworld> > HierarchicIndexSetType;
/** \brief The type of a UGGrid level index set */
typedef DefaultLevelIndexSet<Dune::UGGrid<dim,dimworld> > LevelIndexSetType;
//! The type used to store coordinates
......@@ -269,7 +266,7 @@ namespace Dune {
*/
void loadBalance(int strategy, int minlevel, int depth, int maxlevel, int minelement);
/*! The communication interface
/** \brief The communication interface
@param T: array class holding data associated with the entities
@param P: type used to gather/scatter data in and out of the message buffer
@param codim: communicate entites of given codim
......@@ -299,12 +296,27 @@ namespace Dune {
}
#endif
/** \brief Start the coarse grid creation process */
void createbegin();
/** \brief End the coarse grid creation process */
void createend();
/** \brief Adapt the grid without constructing the green closure
WARNING: This is a very special method. Omitting the green closure does
not mean that UG creates correct nonconforming meshes. For internal
reasons (bugs?) though, it allows you to do uniform refinement with
a few anisotropic refinement rules such as UG3d::PRISM_QUADSECT or
UG3d::HEX_QUADSECT_0.
*/
void adaptWithoutClosure();
/** \brief Rudimentary substitute for a hierarchic iterator on faces
\param e, elementSide Grid face specified by an element and one of its sides
\param maxl The finest level that should be traversed by the iterator
\param children For each subface: element index, elementSide, and level
*/
void getChildrenOfSubface(typename Traits::template codim<0>::EntityPointer & e,
int elementSide,
int maxl,
......@@ -332,7 +344,7 @@ namespace Dune {
/** \brief Read access to the UG-internal grid name */
const std::string& name() const {return name_;}
/** \brief Calls a few interal methods to properly set up a UG grid */
void makeNewUGMultigrid();
/** \brief Does uniform refinement
......@@ -351,18 +363,22 @@ namespace Dune {
private:
// Access to entity implementations through the interface wrappers
template <int cd>
UGGridEntity<cd,dim,const UGGrid>& getRealEntity(typename Traits::template codim<cd>::Entity& entity) {
return entity.realEntity;
}
// Const access to entity implementations through the interface wrappers
template <int cd>
const UGGridEntity<cd,dim,const UGGrid>& getRealEntity(const typename Traits::template codim<cd>::Entity& entity) const {
return entity.realEntity;
}
// Start up the UG system
void init(unsigned int heapSize, unsigned int envHeapSize);
// Recomputes entity indices after the grid was changed
void setLocalIndices();
// Each UGGrid object has a unique name to identify it in the
......@@ -378,10 +394,6 @@ namespace Dune {
// Our set of level indices
mutable LevelIndexSetType* levelIndexSet_;
// true if grid was refined
//bool wasChanged_;
// number of entitys of each level an codim
Array<int> size_;
......
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