Skip to content
Snippets Groups Projects
Commit de278244 authored by Elias Pipping's avatar Elias Pipping Committed by Elias Pipping
Browse files

Use Arithmetic class

parent 036e4161
No related branches found
No related tags found
No related merge requests found
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
#include <dune/common/nullptr.hh> #include <dune/common/nullptr.hh>
#include <dune/common/parametertree.hh> #include <dune/common/parametertree.hh>
#include <dune/solvers/common/staticmatrixtools.hh> #include <dune/fufem/arithmetic.hh>
#include <dune/tnnmg/problem-classes/bisection.hh> #include <dune/tnnmg/problem-classes/bisection.hh>
#include "globalnonlinearity.hh" #include "globalnonlinearity.hh"
...@@ -129,7 +129,7 @@ template <class MyConvexProblemTypeTEMPLATE> class MyBlockProblem { ...@@ -129,7 +129,7 @@ template <class MyConvexProblemTypeTEMPLATE> class MyBlockProblem {
typename MatrixType::row_type::ConstIterator it = problem.A[i].begin(); typename MatrixType::row_type::ConstIterator it = problem.A[i].begin();
typename MatrixType::row_type::ConstIterator end = problem.A[i].end(); typename MatrixType::row_type::ConstIterator end = problem.A[i].end();
for (; it != end; ++it) for (; it != end; ++it)
StaticMatrix::axpy(linearization.A[i][it.index()], 1.0, *it); Arithmetic::addProduct(linearization.A[i][it.index()], 1.0, *it);
} }
// compute nonlinearity part of hessian // compute nonlinearity part of hessian
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment