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

realloc of class Array replaced by new resize method.

[[Imported from SVN: r146]]
parent f8aa5498
Branches
Tags
No related merge requests found
......@@ -374,14 +374,14 @@ namespace Dune {
for(int i=0; i< levOcu_-1; i++)
{
int length = functionSpace_.size( i );
(dofVec_[i]).realloc( length );
(dofVec_[i]).resize( length );
for( int j=0; j<length; j++)
(dofVec_[i])[j] = 0.0;
}
// the last level is done always
int length = functionSpace_.size( level_ );
(dofVec_[level_]).realloc( length );
(dofVec_[level_]).resize( length );
for( int j=0; j<length; j++) (dofVec_[level_])[j] = 0.0;
};
......
......@@ -71,7 +71,7 @@ namespace Dune {
baseFuncSet_ = & ( fSpace_.getBaseFunctionSet(en) );
numOfDof_ = baseFuncSet_->getNumberOfBaseFunctions();
if(numOfDof_ > map_.size())
map_.realloc( numOfDof_ );
map_.resize( numOfDof_ );
for(int i=0; i<numOfDof_; i++)
map_ [i] = fSpace_.mapToGlobal ( en , i);
built_ = true;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment