[Dune] [#355] Introduce variable "category" in Dune::Preconditioner (ISTL)

Dune dune at dune-project.org
Fri Jul 11 17:43:58 CEST 2008


THIS IS AN AUTOMATED MESSAGE, DO NOT REPLY.

The following task has a new comment added:

FS#355 - Introduce variable "category" in Dune::Preconditioner (ISTL)
User who did this - Markus Blatt (mblatt)

----------
There is a way to do it without changing the solver classes:

-Instead of using enums to identify the categories we use empty structs for tagging. (These can even inherit from one another, e.g. overlapping derives parallel).

-Now we can do what I think is called virtual typedef:
   + Precoditioner gets an additional template parameter we is used in its typedef category.
     template<class Cat,class X, class Y>
     class Preconditioner{
     public:
       typedef Cat category
     }
   + And the derived preconditioner set this template parameter accordingly:
     template<class X, class Y>
     class SOR : public<overlapping,X,Y>{};

Any objections?

----------

More information can be found at the following URL:
http://www.dune-project.org/flyspray/index.php?do=details&task_id=355#comment485

You are receiving this message because you have requested it from the Flyspray bugtracking system.  If you did not expect this message or don't want to receive mails in future, you can change your notification settings at the URL shown above.




More information about the Dune mailing list