Skip to content
Snippets Groups Projects
Commit 49d51eb0 authored by oliver.sander_at_tu-dresden.de's avatar oliver.sander_at_tu-dresden.de
Browse files

UMFPackSolver: Remove several hard-wired linear algebra types

Removing these assumptions about the linear algebra types
is one step towards support for unnested linear algebra,
like BCRSMatrix<double> etc.  More work for that is needed,
though.
parent 32c94c10
No related branches found
No related tags found
1 merge request!40UMFPackSolver: Remove several hard-wired linear algebra types
Pipeline #23648 passed
...@@ -18,6 +18,7 @@ ...@@ -18,6 +18,7 @@
#include <dune/istl/io.hh> #include <dune/istl/io.hh>
#include <dune/solvers/common/canignore.hh> #include <dune/solvers/common/canignore.hh>
#include <dune/solvers/common/defaultbitvector.hh>
#include <dune/solvers/solvers/linearsolver.hh> #include <dune/solvers/solvers/linearsolver.hh>
namespace Dune namespace Dune
...@@ -29,15 +30,8 @@ namespace Solvers ...@@ -29,15 +30,8 @@ namespace Solvers
/** \brief Wraps the UMFPack sparse direct solver */ /** \brief Wraps the UMFPack sparse direct solver */
template <class MatrixType, class VectorType> template <class MatrixType, class VectorType>
class UMFPackSolver class UMFPackSolver
: public LinearSolver<MatrixType,VectorType>, public CanIgnore<Dune::BitSetVector<VectorType::block_type::dimension> > : public LinearSolver<MatrixType,VectorType>, public CanIgnore<DefaultBitVector_t<VectorType> >
{ {
enum {blocksize = VectorType::block_type::dimension};
typedef typename VectorType::field_type field_type;
typedef Dune::FieldMatrix<field_type, blocksize, blocksize> MatrixBlock;
typedef Dune::FieldVector<field_type, blocksize> VectorBlock;
public: public:
/** \brief Default constructor */ /** \brief Default constructor */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment