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

Do not hardwire BitsetVector as default in IterationStep

Use DefaultBitVector_t instead.  That way, the default has to be
overridden less frequently.
parent fc983e3e
No related branches found
No related tags found
1 merge request!57Do not hardwire BitsetVector as default in IterationStep
Pipeline #54104 passed
...@@ -7,6 +7,11 @@ ...@@ -7,6 +7,11 @@
- The internal matrix of the`EnergyNorm` can now be accessed by `getMatrix()`. - The internal matrix of the`EnergyNorm` can now be accessed by `getMatrix()`.
- The default `BitVectorType` of the class `IterationStep` is now
`Solvers::DefaultBitVector_t<VectorType>` rather than `Dune::BitSetVector`.
This should do the right thing in more situations, while being fully
backward-compatible.
- `codespell` spell checker is now active for automated spell checking in the Gitlab CI. - `codespell` spell checker is now active for automated spell checking in the Gitlab CI.
To exclude false positives add the words to the `--ignore-words-list` in `.gitlab-ci.yml`. To exclude false positives add the words to the `--ignore-words-list` in `.gitlab-ci.yml`.
......
...@@ -6,8 +6,8 @@ ...@@ -6,8 +6,8 @@
#include <vector> #include <vector>
#include <string> #include <string>
#include <dune/common/bitsetvector.hh>
#include <dune/solvers/common/canignore.hh> #include <dune/solvers/common/canignore.hh>
#include <dune/solvers/common/defaultbitvector.hh>
#include <dune/solvers/common/numproc.hh> #include <dune/solvers/common/numproc.hh>
namespace Dune { namespace Dune {
...@@ -15,7 +15,7 @@ namespace Dune { ...@@ -15,7 +15,7 @@ namespace Dune {
namespace Solvers { namespace Solvers {
//! Base class for iteration steps being called by an iterative solver //! Base class for iteration steps being called by an iterative solver
template<class VectorType, class BitVectorType = Dune::BitSetVector<VectorType::block_type::dimension> > template<class VectorType, class BitVectorType = Solvers::DefaultBitVector_t<VectorType> >
class IterationStep : virtual public NumProc, public CanIgnore<BitVectorType> class IterationStep : virtual public NumProc, public CanIgnore<BitVectorType>
{ {
public: public:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment