Commit 4e2ab662 by 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 n; std::array n; std::fill(n.begin(). n.end(), 10); Dune::FieldVector 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! as the second template paramter. Coordinates are given as as a \lstinline!Dune::array,dim>!. as the second template paramter. Coordinates are given as as a \lstinline!std::array,dim>!. See the following example which initializes a grid is one cell, that covers $[-1,1]^2$: \begin{lstlisting} Dune::array > coords; std::array > coords; coords[0] = {-1., 1.}; coords[1] = {-1., 1.}; ... ...
 ... ... @@ -3,6 +3,7 @@ #include // file generated by CMake // C/C++ includes #include #include // 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 GridType; Dune::array N; std::array N; std::fill(N.begin(), N.end(), 1); Dune::FieldVector 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!