- Home
- About DUNE
- Download
- Documentation
- Community
- Development
#include <dune/grid/alugrid/common/defaultindexsets.hh>
Public Member Functions | |
DefaultEmptyIndexSet (bool adaptive) | |
default constructor | |
bool | compress () |
bool | adaptive () const |
returns true if index set can be used for adaptive calculations | |
bool | needsCompress () const |
returns true if index set gernally needs compress after adaptation | |
template<class EntityType > | |
void | insertNewIndex (const EntityType &en) |
do nothing here, because fathers index should already exist | |
template<class EntityType > | |
void | removeOldIndex (const EntityType &en) |
do nothing here, because fathers index should already exist | |
void | resize () |
nothing to do here | |
int | additionalSizeEstimate () const |
no extra memory for restriction is needed | |
int | numberOfHoles (int codim) const |
we have no old size | |
int | oldIndex (int hole, int codim) const |
return old index, for dof manager only | |
int | newIndex (int hole, int codim) const |
return new index, for dof manager only | |
bool | write_xdr (const std::basic_string< char > filename, int timestep) |
write index set to xdr file | |
bool | read_xdr (const std::basic_string< char > filename, int timestep) |
read index set to xdr file | |
Static Public Member Functions | |
static int | type () |
Protected Member Functions | |
bool | processXdr (XDR *xdrs) |
Protected Attributes | |
const bool | adaptive_ |
The DefaultGridIndexSet is a wrapper for the grid index which can be index of entity or globalIndex. The DofMapper uses an IndexSet for mapping the dofs, so we can hide the real grid index behind the index set. Furthermore if a grid doesn't provide the consecutive index set then this can be calculated in the IndexSet. These two following index sets are just the identiy to the grid indices.
The DefaultGridIndexSetBase defines some methods that are needed for index sets that cope with adaptation, but aren't needed for the following index set, so most of this methods do notin'.
Dune::DefaultEmptyIndexSet::DefaultEmptyIndexSet | ( | bool | adaptive | ) | [inline] |
default constructor
bool Dune::DefaultEmptyIndexSet::adaptive | ( | ) | const [inline] |
returns true if index set can be used for adaptive calculations
References adaptive_.
int Dune::DefaultEmptyIndexSet::additionalSizeEstimate | ( | ) | const [inline] |
no extra memory for restriction is needed
bool Dune::DefaultEmptyIndexSet::compress | ( | ) | [inline] |
return false mean the no memory has to be allocated and no compress of date has to be done
void Dune::DefaultEmptyIndexSet::insertNewIndex | ( | const EntityType & | en | ) | [inline] |
do nothing here, because fathers index should already exist
References adaptive_.
bool Dune::DefaultEmptyIndexSet::needsCompress | ( | ) | const [inline] |
returns true if index set gernally needs compress after adaptation
int Dune::DefaultEmptyIndexSet::newIndex | ( | int | hole, | |
int | codim | |||
) | const [inline] |
return new index, for dof manager only
int Dune::DefaultEmptyIndexSet::numberOfHoles | ( | int | codim | ) | const [inline] |
we have no old size
int Dune::DefaultEmptyIndexSet::oldIndex | ( | int | hole, | |
int | codim | |||
) | const [inline] |
return old index, for dof manager only
bool Dune::DefaultEmptyIndexSet::processXdr | ( | XDR * | xdrs | ) | [inline, protected] |
References type().
Referenced by read_xdr(), and write_xdr().
bool Dune::DefaultEmptyIndexSet::read_xdr | ( | const std::basic_string< char > | filename, | |
int | timestep | |||
) | [inline] |
read index set to xdr file
References processXdr().
void Dune::DefaultEmptyIndexSet::removeOldIndex | ( | const EntityType & | en | ) | [inline] |
do nothing here, because fathers index should already exist
References adaptive_.
void Dune::DefaultEmptyIndexSet::resize | ( | ) | [inline] |
nothing to do here
static int Dune::DefaultEmptyIndexSet::type | ( | ) | [inline, static] |
Referenced by processXdr().
bool Dune::DefaultEmptyIndexSet::write_xdr | ( | const std::basic_string< char > | filename, | |
int | timestep | |||
) | [inline] |
write index set to xdr file
References processXdr().
const bool Dune::DefaultEmptyIndexSet::adaptive_ [protected] |
Referenced by adaptive(), insertNewIndex(), and removeOldIndex().
Generated on Fri Apr 29 2011 with Doxygen (ver 1.7.1) [doxygen-log,error-log].