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

Desctructor added.

[[Imported from SVN: r953]]
parent e9bd84a0
No related branches found
No related tags found
No related merge requests found
......@@ -61,8 +61,14 @@ namespace Dune {
DiscreteOperator (LocalOperatorImp &op, bool leaf=false , bool printMsg = false )
: localOp_ ( op ) , leaf_ (leaf), prepared_ (false) , printMsg_ (printMsg)
{
if(printMsg)
std::cout << "Make new Operator "<< this << "\n";
if(printMsg_)
std::cout << "Make new Operator " << this << "\n";
}
virtual ~DiscreteOperator ()
{
if(printMsg_)
std::cout << "Delete operator " << this << "\n";
}
/*! add another discrete operator by combining the two local operators
......@@ -87,7 +93,7 @@ namespace Dune {
// memorize this new generated object because is represents this
// operator and is deleted if this operator is deleted
saveObjPointer( discrOp );
this->saveObjPointer( discrOp );
return *discrOp;
}
......
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