]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Add vector_type typedef to mimic Solver class. 1647/head
authorJean-Paul Pelteret <jppelteret@gmail.com>
Tue, 22 Sep 2015 09:10:40 +0000 (11:10 +0200)
committerJean-Paul Pelteret <jppelteret@gmail.com>
Tue, 22 Sep 2015 09:10:40 +0000 (11:10 +0200)
This definition is required to use the SolverSelector with
inverse_operator.

include/deal.II/lac/solver_selector.h

index f6ec534ac81a26d7843ef3ab968f8562f994341b..cc135cad50e957e5491154bcf4335bfe0d009807 100644 (file)
@@ -98,6 +98,10 @@ template <class VECTOR = Vector<double> >
 class SolverSelector : public Subscriptor
 {
 public:
+  /**
+   * A typedef for the underlying vector type
+   */
+  typedef VECTOR vector_type;
 
   /**
    * Constructor, filling in default values

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.