diff --git a/src/mynonlinearity.hh b/src/mynonlinearity.hh index 31bfb287495f0407fd92f08516f34d21b0405af9..7e2bda65122340323b739f6893e534290a8ef209 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(); }