Skip to content
Snippets Groups Projects
Commit 448f5a4d authored by Ansgar Burchardt's avatar Ansgar Burchardt
Browse files

Use std::array instead of Dune::array.

parent 4640af2a
No related branches found
No related tags found
No related merge requests found
...@@ -3,9 +3,9 @@ ...@@ -3,9 +3,9 @@
#ifndef DUNE_BOX_CONSTRAINT_HH #ifndef DUNE_BOX_CONSTRAINT_HH
#define DUNE_BOX_CONSTRAINT_HH #define DUNE_BOX_CONSTRAINT_HH
#include <array>
#include <limits> #include <limits>
#include <dune/common/array.hh>
#include <dune/common/fvector.hh> #include <dune/common/fvector.hh>
template <class T, int dim> template <class T, int dim>
...@@ -63,7 +63,7 @@ public: ...@@ -63,7 +63,7 @@ public:
protected: protected:
Dune::array<T, 2*dim> val; std::array<T, 2*dim> val;
}; };
......
...@@ -3,13 +3,10 @@ ...@@ -3,13 +3,10 @@
#ifndef DUNE_SOLVERS_COMMON_INTERVAL_HH #ifndef DUNE_SOLVERS_COMMON_INTERVAL_HH
#define DUNE_SOLVERS_COMMON_INTERVAL_HH #define DUNE_SOLVERS_COMMON_INTERVAL_HH
#include <array>
#include <iostream> #include <iostream>
#include <algorithm> #include <algorithm>
#include <dune/common/array.hh>
namespace Dune { namespace Dune {
namespace Solvers { namespace Solvers {
...@@ -69,7 +66,7 @@ public: ...@@ -69,7 +66,7 @@ public:
private: private:
/** \brief The actual data */ /** \brief The actual data */
Dune::array<field_type,2> data_; std::array<field_type,2> data_;
}; };
//! Output operator for Interval //! Output operator for Interval
......
...@@ -4,6 +4,7 @@ ...@@ -4,6 +4,7 @@
#define OBSTACLE_TNNMG_STEP_HH #define OBSTACLE_TNNMG_STEP_HH
// std includes // std includes
#include <array>
#include <vector> #include <vector>
#include <algorithm> #include <algorithm>
...@@ -200,7 +201,7 @@ class ObstacleTNNMGStep ...@@ -200,7 +201,7 @@ class ObstacleTNNMGStep
coarseCorrection_ = 0; coarseCorrection_ = 0;
// mark indices for truncation and count truncated indices per component // mark indices for truncation and count truncated indices per component
typename Dune::array<int, blockSize> truncationCount; typename std::array<int, blockSize> truncationCount;
truncationCount.fill(0); truncationCount.fill(0);
BitVector truncate(x.size(), false); BitVector truncate(x.size(), false);
for(size_t i=0; i<x.size(); ++i) for(size_t i=0; i<x.size(); ++i)
......
...@@ -3,6 +3,7 @@ ...@@ -3,6 +3,7 @@
#include <config.h> #include <config.h>
#include <array>
#include <iostream> #include <iostream>
#include <sstream> #include <sstream>
...@@ -170,7 +171,7 @@ bool checkWithYaspGrid(int refine, const std::string fileName="") ...@@ -170,7 +171,7 @@ bool checkWithYaspGrid(int refine, const std::string fileName="")
typedef Dune::YaspGrid<dim> GridType; typedef Dune::YaspGrid<dim> GridType;
typename Dune::FieldVector<typename GridType::ctype,dim> L(1.0); typename Dune::FieldVector<typename GridType::ctype,dim> L(1.0);
typename Dune::array<int,dim> s; typename std::array<int,dim> s;
std::fill(s.begin(), s.end(), 1); std::fill(s.begin(), s.end(), 1);
GridType grid(L, s); GridType grid(L, s);
......
...@@ -3,6 +3,7 @@ ...@@ -3,6 +3,7 @@
#include <config.h> #include <config.h>
#include <array>
#include <iostream> #include <iostream>
#include <sstream> #include <sstream>
...@@ -171,7 +172,7 @@ bool checkWithYaspGrid(int refine, const std::string fileName="") ...@@ -171,7 +172,7 @@ bool checkWithYaspGrid(int refine, const std::string fileName="")
typedef Dune::YaspGrid<dim> GridType; typedef Dune::YaspGrid<dim> GridType;
typename Dune::FieldVector<typename GridType::ctype,dim> L(1.0); typename Dune::FieldVector<typename GridType::ctype,dim> L(1.0);
typename Dune::array<int,dim> s; typename std::array<int,dim> s;
std::fill(s.begin(), s.end(), 1); std::fill(s.begin(), s.end(), 1);
GridType grid(L, s); GridType grid(L, s);
......
#include <config.h> #include <config.h>
#include <array>
#include <iostream> #include <iostream>
#include <sstream> #include <sstream>
...@@ -139,7 +140,7 @@ bool checkWithYaspGrid(int refine, const std::string fileName="") ...@@ -139,7 +140,7 @@ bool checkWithYaspGrid(int refine, const std::string fileName="")
typedef Dune::YaspGrid<dim> GridType; typedef Dune::YaspGrid<dim> GridType;
typename Dune::FieldVector<typename GridType::ctype,dim> L(1.0); typename Dune::FieldVector<typename GridType::ctype,dim> L(1.0);
typename Dune::array<int,dim> s; typename std::array<int,dim> s;
for (int i=0; i<dim; i++) for (int i=0; i<dim; i++)
s[i] = 1; s[i] = 1;
std::bitset<dim> periodic(false); std::bitset<dim> periodic(false);
......
...@@ -3,6 +3,7 @@ ...@@ -3,6 +3,7 @@
#include <config.h> #include <config.h>
#include <array>
#include <iostream> #include <iostream>
#include <sstream> #include <sstream>
...@@ -148,7 +149,7 @@ bool checkWithYaspGrid(int refine, const std::string fileName="") ...@@ -148,7 +149,7 @@ bool checkWithYaspGrid(int refine, const std::string fileName="")
typedef Dune::YaspGrid<dim> GridType; typedef Dune::YaspGrid<dim> GridType;
typename Dune::FieldVector<typename GridType::ctype,dim> L(1.0); typename Dune::FieldVector<typename GridType::ctype,dim> L(1.0);
typename Dune::array<int,dim> s; typename std::array<int,dim> s;
std::fill(s.begin(), s.end(), 1); std::fill(s.begin(), s.end(), 1);
GridType grid(L, s); GridType grid(L, s);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment