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

Added methods insertNewIndex and removeOldIndex to DofManager.

[[Imported from SVN: r2310]]
parent d254ab27
Branches
Tags
No related merge requests found
......@@ -807,6 +807,18 @@ namespace Dune {
resizeDofMem();
}
template <class EntityType>
void insertNewIndex (EntityType & en )
{
insertIndices_.apply( en );
}
template <class EntityType>
void removeOldIndex (EntityType & en )
{
removeIndices_.apply( en );
}
private:
//! resize the MemObject if necessary
void resizeDofMem()
......@@ -882,7 +894,6 @@ namespace Dune {
template <class ObjectStreamType, class EntityType>
void scatter ( ObjectStreamType & str, EntityType & en )
{
//resize();
std::pair < ObjectStreamType * , const EntityType * > p (&str,&en);
dataWriter_.apply( p );
}
......@@ -890,7 +901,6 @@ namespace Dune {
template <class ObjectStreamType, class EntityType>
void gather ( ObjectStreamType & str, EntityType & en )
{
resize();
std::pair < ObjectStreamType * , const EntityType * > p (&str,&en);
dataReader_.apply( p );
}
......@@ -900,7 +910,7 @@ namespace Dune {
{
// here the elements already have been created that means we can
// all resize and the memory is adapted
resize();
//resize();
dataXtractor_.apply(str,en);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment