Skip to content
Snippets Groups Projects
Commit d012455d authored by graeser's avatar graeser Committed by graeser@PCPOOL.MI.FU-BERLIN.DE
Browse files

tabs->spaces

added globalRefine dummy

[[Imported from SVN: r78]]
parent 255c01d9
No related branches found
No related tags found
No related merge requests found
...@@ -16,7 +16,6 @@ ...@@ -16,7 +16,6 @@
#include "subgrid/subgridgeometry.hh" #include "subgrid/subgridgeometry.hh"
#include "subgrid/subgridentity.hh" #include "subgrid/subgridentity.hh"
#include "subgrid/subgridentitypointer.hh" #include "subgrid/subgridentitypointer.hh"
#include "subgrid/subgridintersectioniterator.hh" #include "subgrid/subgridintersectioniterator.hh"
#include "subgrid/subgridleveliterator.hh" #include "subgrid/subgridleveliterator.hh"
#include "subgrid/subgridleafiterator.hh" #include "subgrid/subgridleafiterator.hh"
...@@ -27,9 +26,11 @@ ...@@ -27,9 +26,11 @@
namespace Dune { namespace Dune {
//! helper class to mark the subentities of marked elements
template <class HostGridType, int codim> template <class HostGridType, int codim>
class SubGridHelpers { class SubGridHelpers {
public: public:
static void markSubEntities(const typename HostGridType::template Codim<0>::Entity& entity, static void markSubEntities(const typename HostGridType::template Codim<0>::Entity& entity,
std::vector<BitField> entityFields[], std::vector<BitField> entityFields[],
const HostGridType* hostGrid) { const HostGridType* hostGrid) {
...@@ -270,6 +271,13 @@ public: ...@@ -270,6 +271,13 @@ public:
/** @name Grid Refinement Methods */ /** @name Grid Refinement Methods */
/*@{*/ /*@{*/
//! \todo Please doc me !
void globalRefine (int refCount)
{
//! \todo Please implement me !
DUNE_THROW(NotImplemented, "!");
}
/** \brief Mark entity for refinement /** \brief Mark entity for refinement
* *
* This only works for entities of codim 0. * This only works for entities of codim 0.
...@@ -902,11 +910,31 @@ public: ...@@ -902,11 +910,31 @@ public:
leafIndexSet_.update(*this); leafIndexSet_.update(*this);
#ifdef SUBGRID_VERBOSE #ifdef SUBGRID_VERBOSE
indexStorage.report();
std::cout << "SubGrid indices set in " << timer.elapsed()-t << " seconds." << std::endl; std::cout << "SubGrid indices set in " << timer.elapsed()-t << " seconds." << std::endl;
#endif #endif
} }
//! \todo Pleas doc me !
void report() const
{
indexStorage.report();
std::cout << "Subgrid covers (leaf level): ";
std::cout << size(dim) << " of " << hostgrid_->size(dim) << " nodes";
std::cout << " ~ " << size(dim) *100 / hostgrid_->size(dim) << " %" << std::endl;
std::cout.precision(8);
std::cout << " ";
std::cout << size(0) << " of " << hostgrid_->size(0) << " elements";
std::cout.precision(3);
std::cout << " ~ " << size(0) *100 / hostgrid_->size(0) << " %" << std::endl;
std::cout.precision(8);
return;
}
/** \brief The host grid which contains the actual grid hierarchy structure */ /** \brief The host grid which contains the actual grid hierarchy structure */
HostGrid* hostgrid_; HostGrid* hostgrid_;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment