Commit 4e2ab662 authored by Ansgar Burchardt's avatar Ansgar Burchardt

use `std::array` instead of removed `Dune::array`

parent c70cc53a
Pipeline #4640 failed with stage
in 18 minutes and 52 seconds
......@@ -956,7 +956,7 @@ and hence they are all slightly different for different grid implementations.
As already seen int he introduction, the code to construct a sequential \
\lstinline!YaspGrid! with 10 cells in each direction is
\begin{lstlisting}
Dune::array<int,dim> n;
std::array<int,dim> n;
std::fill(n.begin(). n.end(), 10);
Dune::FieldVector<double,dim> upper(1.0);
......@@ -978,11 +978,11 @@ direction $i$. The vertices of the grid are then given by the tuples
Such tensorproduct grid is a structured non-equidistant grid. Having a non-zero
lower left corner is possible by specifying coordinates accordingly. \lstinline!YaspGrid!s
tensorproduct features are enabled by using \lstinline!TensorProductCoordinates<ctype,dim>!
as the second template paramter. Coordinates are given as as a \lstinline!Dune::array<std::vector<ctype>,dim>!.
as the second template paramter. Coordinates are given as as a \lstinline!std::array<std::vector<ctype>,dim>!.
See the following example which initializes a grid is one cell, that covers $[-1,1]^2$:
\begin{lstlisting}
Dune::array<std::vector<ctype,2> > coords;
std::array<std::vector<ctype,2> > coords;
coords[0] = {-1., 1.};
coords[1] = {-1., 1.};
......
......@@ -3,6 +3,7 @@
#include <config.h> // file generated by CMake
// C/C++ includes
#include <array>
#include <iostream> // for standard I/O
// Dune includes
......@@ -118,7 +119,7 @@ int main(int argc, char **argv)
// make a grid
const int dim=2;
typedef Dune::YaspGrid<dim> GridType;
Dune::array<int,dim> N;
std::array<int,dim> N;
std::fill(N.begin(), N.end(), 1);
Dune::FieldVector<GridType::ctype,dim> H(1.0);
GridType grid(H,N);
......
Markdown is supported
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