Commit 7e01b9f9 authored by Bernd Flemisch's avatar Bernd Flemisch
Browse files

Apply 3 suggestion(s) to 2 file(s)

parent 1f603347
......@@ -41,8 +41,8 @@ namespace Dumux {
* \brief A parallel helper class providing a nonoverlapping
* decomposition of all degrees of freedom
*/
template<class LinearSolverTraits, bool canCommunicate>
class ParallelISTLHelperImpl;
template<class LinearSolverTraits, bool canCommunicate = false>
class ParallelISTLHelperImpl {};
template<class LinearSolverTraits>
class ParallelISTLHelperImpl<LinearSolverTraits, true>
......@@ -427,10 +427,6 @@ private:
}; // class ParallelISTLHelperImpl
template<class LinearSolverTraits>
class ParallelISTLHelperImpl<LinearSolverTraits, false>
{};
template<class LinearSolverTraits>
using ParallelISTLHelper = ParallelISTLHelperImpl<LinearSolverTraits,
LinearSolverTraits::canCommunicate>;
......
......@@ -78,9 +78,7 @@ public:
if (Dune::MPIHelper::getCollectiveCommunication().size() > 1)
DUNE_THROW(Dune::NotImplemented, "norm in parallel");
static const Dune::SeqScalarProduct<Vector> sp;
return sp.norm(x);
return Dune::SeqScalarProduct<Vector>().norm(x);
}
//! the name of the linear solver
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment