Commit 0b6a4fd1 by Dominic Kempf

### Change more occurences of SGrid -> YaspGrid

parent 588c6c07
 ... ... @@ -579,7 +579,7 @@ there are/is 4 element(s) on level 1 \end{rem} \begin{exc} Play with different dimensions, codimension (\lstinline!SGrid! supports all codimenions) and refinements. (\lstinline!YaspGrid! supports all codimenions) and refinements. \end{exc} \begin{exc} The method \lstinline!corners()! of the geometry returns ... ... @@ -952,20 +952,17 @@ needs to be provided. In general, for uniform structured grids, the grid dimension, bounding box, and number of elements in each direction suffices. Such information can be given directly with the constructor of the grid object. \Dune does not currently specify the signature of grid constructors, and hence they are all slightly different. For example, to create a 2D \lstinline!SGrid! in $[0,1]^2 \subset \mathbb{R}^2$ with 10 elements in each direction call \begin{lstlisting} Dune::FieldVector n; n[0] = n[1] = 10; and hence they are all slightly different for different grid implementations. Dune::FieldVector lower; lower[0] = lower[1] = 0.0; 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::fill(n.begin(). n.end(), 10); Dune::FieldVector upper; upper[0] = upper[1] = 1.0; Dune::FieldVector upper(1.0); Dune::SGrid<2,2> grid(n, lower, upper); YaspGrid grid(upper, n); \end{lstlisting} If you want to do the same for a sequential \lstinline!YaspGrid! the code is \begin{lstlisting} ... ...
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!