From ad5613caa9a05e70fee3e1c234f9abc5e7279fa7 Mon Sep 17 00:00:00 2001 From: Robert K <rokl@iris.no> Date: Tue, 24 Feb 2015 15:17:25 +0100 Subject: [PATCH] added method umv and renamed Operations. --- dune/fem-dg/misc/crs.hh | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/dune/fem-dg/misc/crs.hh b/dune/fem-dg/misc/crs.hh index f8e18c0f..a06bbc03 100644 --- a/dune/fem-dg/misc/crs.hh +++ b/dune/fem-dg/misc/crs.hh @@ -86,7 +86,7 @@ namespace Dune int N () const { return rows; } int M () const { return cols; } - struct Plus + struct Add { template <class T> void operator()( T& a, const T& b ) const @@ -95,7 +95,7 @@ namespace Dune } }; - struct Minus + struct Substract { template <class T> void operator()( T& a, const T& b ) const @@ -122,7 +122,13 @@ namespace Dune template <class X, class Y> void mmv ( const X& x, Y& y ) const { - mult( x, y, Minus() ); + mult( x, y, Substract() ); + } + + template <class X, class Y> + void umv ( const X& x, Y& y ) const + { + mult( x, y, Add() ); } template <class X, class Y, class Op> -- GitLab