dune-grid
2.1.1
|
default base class for index set implementations for FR numerics More...
#include <dune/grid/alugrid/common/defaultindexsets.hh>
Public Types | |
enum | { ncodim = GridType::dimension + 1 } |
Public Member Functions | |
DefaultGridIndexSetBase (const GridType &grid) | |
Conschdrugdor. | |
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 GridType & | grid_ |
const bool | adaptive_ |
default base class for index set implementations for FR numerics
Dune::DefaultGridIndexSetBase< GridType >::DefaultGridIndexSetBase | ( | const GridType & | grid | ) | [inline] |
Conschdrugdor.
bool Dune::DefaultEmptyIndexSet::adaptive | ( | ) | const [inline, inherited] |
returns true if index set can be used for adaptive calculations
References Dune::DefaultEmptyIndexSet::adaptive_.
int Dune::DefaultEmptyIndexSet::additionalSizeEstimate | ( | ) | const [inline, inherited] |
no extra memory for restriction is needed
bool Dune::DefaultEmptyIndexSet::compress | ( | ) | [inline, inherited] |
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, inherited] |
do nothing here, because fathers index should already exist
References Dune::DefaultEmptyIndexSet::adaptive_.
bool Dune::DefaultEmptyIndexSet::needsCompress | ( | ) | const [inline, inherited] |
returns true if index set gernally needs compress after adaptation
int Dune::DefaultEmptyIndexSet::newIndex | ( | int | hole, |
int | codim | ||
) | const [inline, inherited] |
return new index, for dof manager only
int Dune::DefaultEmptyIndexSet::numberOfHoles | ( | int | codim | ) | const [inline, inherited] |
we have no old size
int Dune::DefaultEmptyIndexSet::oldIndex | ( | int | hole, |
int | codim | ||
) | const [inline, inherited] |
return old index, for dof manager only
bool Dune::DefaultEmptyIndexSet::processXdr | ( | XDR * | xdrs | ) | [inline, protected, inherited] |
References Dune::DefaultEmptyIndexSet::type().
Referenced by Dune::DefaultEmptyIndexSet::read_xdr(), and Dune::DefaultEmptyIndexSet::write_xdr().
bool Dune::DefaultEmptyIndexSet::read_xdr | ( | const std::basic_string< char > | filename, |
int | timestep | ||
) | [inline, inherited] |
read index set to xdr file
References Dune::DefaultEmptyIndexSet::processXdr().
void Dune::DefaultEmptyIndexSet::removeOldIndex | ( | const EntityType & | en | ) | [inline, inherited] |
do nothing here, because fathers index should already exist
References Dune::DefaultEmptyIndexSet::adaptive_.
void Dune::DefaultEmptyIndexSet::resize | ( | ) | [inline, inherited] |
nothing to do here
static int Dune::DefaultEmptyIndexSet::type | ( | ) | [inline, static, inherited] |
Referenced by Dune::DefaultEmptyIndexSet::processXdr().
bool Dune::DefaultEmptyIndexSet::write_xdr | ( | const std::basic_string< char > | filename, |
int | timestep | ||
) | [inline, inherited] |
write index set to xdr file
References Dune::DefaultEmptyIndexSet::processXdr().
const bool Dune::DefaultEmptyIndexSet::adaptive_ [protected, inherited] |
const GridType& Dune::DefaultGridIndexSetBase< GridType >::grid_ [protected] |