Skip to content
Snippets Groups Projects
Commit 91b88468 authored by Christoph Grüninger's avatar Christoph Grüninger
Browse files

Add virtual destructors to Dumux::Vtk::Field and Dumux::NewtonSolver

This fixes a delete-non-virtual-dtor warning from Clang.
parent 4fc94947
No related branches found
No related tags found
1 merge request!1229Fix/various clang warnings
......@@ -260,6 +260,8 @@ public:
DUNE_THROW(Dune::NotImplemented, "Only element or vertex quantities allowed.");
}
virtual ~Field() {}
//! return the name of this field
virtual std::string name () const { return field_->name(); }
......
......@@ -110,6 +110,8 @@ public:
partialReassembler_ = std::make_unique<Reassembler>(*assembler_);
}
virtual ~NewtonSolver() {}
//! the communicator for parallel runs
const Communication& comm() const
{ return comm_; }
......
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