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

method size of functions space changed.

adaptet the changes here.

[[Imported from SVN: r1176]]
parent 694c809a
No related branches found
No related tags found
No related merge requests found
......@@ -86,8 +86,8 @@ namespace Dune
//! Creates a new empty matrix
SparseRowMatrix<double>* newEmptyMatrix( ) const
{
return new SparseRowMatrix<double>( this->functionSpace_.size ( this->functionSpace_.getGrid().maxlevel() ) ,
this->functionSpace_.size ( this->functionSpace_.getGrid().maxlevel() ) ,
return new SparseRowMatrix<double>( this->functionSpace_.size () ,
this->functionSpace_.size () ,
15 * dim);
}
......@@ -96,7 +96,7 @@ namespace Dune
{
this->arg_ = &arg.argument();
this->dest_ = &dest.destination();
assert(this->arg_ != NULL); assert(this->dest_ != NULL);
assert(this->arg_ != 0); assert(this->dest_ != 0);
dest.clear();
}
......@@ -144,6 +144,7 @@ namespace Dune
template < class EntityType, class MatrixType>
void getLocalMatrix( EntityType &entity, const int matSize, MatrixType& mat) const {
enum { dim = GridType::dimension };
typedef typename FunctionSpaceType::BaseFunctionSetType BaseFunctionSetType;
const BaseFunctionSetType & baseSet = this->functionSpace_.getBaseFunctionSet( entity );
......
......@@ -49,8 +49,8 @@ namespace Dune {
//! ???
SparseRowMatrix<double>* newEmptyMatrix( ) const {
return new SparseRowMatrix<double>( this->functionSpace_.size ( this->functionSpace_.getGrid().maxlevel() ) ,
this->functionSpace_.size ( this->functionSpace_.getGrid().maxlevel() ) ,
return new SparseRowMatrix<double>( this->functionSpace_.size () ,
this->functionSpace_.size () ,
10);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment