Skip to content
Snippets Groups Projects
Commit 7025b682 authored by Dominic Kempf's avatar Dominic Kempf
Browse files

Use dynamic category

parent a476c7ac
No related branches found
No related tags found
No related merge requests found
...@@ -18,8 +18,6 @@ namespace Dune { ...@@ -18,8 +18,6 @@ namespace Dune {
typedef Y range_type; typedef Y range_type;
typedef typename X::field_type field_type; typedef typename X::field_type field_type;
enum { category = Dune::SolverCategory::sequential };
NonlinearOnTheFlyOperator(const GO& go) NonlinearOnTheFlyOperator(const GO& go)
: go_(go) : go_(go)
, u_(static_cast<X*>(0)) , u_(static_cast<X*>(0))
...@@ -46,6 +44,11 @@ namespace Dune { ...@@ -46,6 +44,11 @@ namespace Dune {
y.axpy(alpha,temp); y.axpy(alpha,temp);
} }
virtual Dune::SolverCategory::Category category() const
{
return Dune::SolverCategory::sequential;
}
private : private :
const GO& go_; const GO& go_;
const X* u_; const X* u_;
......
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