From 3be13e8ac52f7b0d3160be70854dc3046bbd9045 Mon Sep 17 00:00:00 2001
From: Elias Pipping <elias.pipping@fu-berlin.de>
Date: Mon, 19 Sep 2011 19:15:17 +0200
Subject: [PATCH] Do not use Small* in the MyNonlinearity class

---
 src/mynonlinearity.hh | 11 ++++-------
 1 file changed, 4 insertions(+), 7 deletions(-)

diff --git a/src/mynonlinearity.hh b/src/mynonlinearity.hh
index 31bfb287..7e2bda65 100644
--- a/src/mynonlinearity.hh
+++ b/src/mynonlinearity.hh
@@ -15,11 +15,8 @@
 namespace Dune {
 template <int dimension> class MyNonlinearity {
 public:
-  typedef Dune::FieldVector<double, dimension> SmallVector;
-  typedef Dune::FieldMatrix<double, dimension, dimension> SmallMatrix;
-
-  typedef SmallVector VectorType;
-  typedef SmallMatrix MatrixType;
+  typedef Dune::FieldVector<double, dimension> VectorType;
+  typedef Dune::FieldMatrix<double, dimension, dimension> MatrixType;
 
   MyNonlinearity(NiceFunction const &func) : func_(func) {}
 
@@ -49,12 +46,12 @@ template <int dimension> class MyNonlinearity {
     }
   }
 
-  void upperGradient(const SmallVector x, SmallVector &ret) const {
+  void upperGradient(const VectorType x, VectorType &ret) const {
     ret = x;
     ret *= func_.rightDifferential(x.two_norm()) / x.two_norm();
   }
 
-  void lowerGradient(const SmallVector x, SmallVector &ret) const {
+  void lowerGradient(const VectorType x, VectorType &ret) const {
     ret = x;
     ret *= func_.leftDifferential(x.two_norm()) / x.two_norm();
   }
-- 
GitLab