]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Provide a "vector_type" typedef in the (iterative) solver interface 737/head
authorMatthias Maier <tamiko@43-1.org>
Sun, 5 Apr 2015 21:00:26 +0000 (23:00 +0200)
committerMatthias Maier <tamiko@43-1.org>
Sun, 5 Apr 2015 21:00:26 +0000 (23:00 +0200)
include/deal.II/lac/solver.h

index f986658876854338b9251270be8e9ae145a30c65..9f36a760e92580f356012702f17a831bdfc4ffd2 100644 (file)
@@ -322,6 +322,11 @@ template <class VECTOR = Vector<double> >
 class Solver : public Subscriptor
 {
 public:
+  /**
+   * A typedef for the underlying vector type
+   */
+  typedef VECTOR vector_type;
+
   /**
    * Constructor. Takes a control object which evaluates the conditions for
    * convergence, and an object that allows solvers to allocate memory for

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.