Skip to content
Snippets Groups Projects
Commit afd03348 authored by Melanie Lipp's avatar Melanie Lipp
Browse files

[box] In elementsolution.hh use Dune::ReservedVector instead of...

[box] In elementsolution.hh use Dune::ReservedVector instead of Dune::Blockvector to have a fixed maximum size at compile time.
parent cbf66aae
No related branches found
No related tags found
1 merge request!2479[box] In elementsolution.hh use Dune::ReservedVector instead of...
......@@ -25,7 +25,7 @@
#define DUMUX_BOX_ELEMENT_SOLUTION_HH
#include <type_traits>
#include <dune/istl/bvector.hh>
#include <dune/common/reservedvector.hh>
#include <dumux/discretization/method.hh>
namespace Dumux {
......@@ -41,6 +41,9 @@ class BoxElementSolution
using GridView = typename GridGeometry::GridView;
using Element = typename GridView::template Codim<0>::Entity;
static constexpr int dim = GridView::dimension;
static constexpr int numCubeCorners = 1 << dim;
public:
//! export the primary variables type
using PrimaryVariables = PV;
......@@ -104,7 +107,7 @@ public:
{ return priVars_[i]; }
private:
Dune::BlockVector<PrimaryVariables> priVars_;
Dune::ReservedVector<PrimaryVariables, numCubeCorners> priVars_;
};
/*!
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment