Commit 0b6a4fd1 authored by Dominic Kempf's avatar Dominic Kempf

Change more occurences of SGrid -> YaspGrid

parent 588c6c07
......@@ -579,7 +579,7 @@ there are/is 4 element(s) on level 1
\begin{exc} Play with different dimensions, codimension
(\lstinline!SGrid! supports all codimenions) and refinements.
(\lstinline!YaspGrid! supports all codimenions) and refinements.
\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
Dune::FieldVector<int,2> n;
n[0] = n[1] = 10;
and hence they are all slightly different for different grid implementations.
Dune::FieldVector<double,2> 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
Dune::array<int,dim> n;
std::fill(n.begin(). n.end(), 10);
Dune::FieldVector<double,2> upper;
upper[0] = upper[1] = 1.0;
Dune::FieldVector<double,dim> upper(1.0);
Dune::SGrid<2,2> grid(n, lower, upper);
YaspGrid<dim> grid(upper, n);
If you want to do the same for a sequential \lstinline!YaspGrid! the code is
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