Commit a3bc38e3 authored by Dominic Kempf's avatar Dominic Kempf

Change code examples to use YaspGrid instead of Sgrid

parent dc843811
......@@ -6,7 +6,7 @@
#include "config.h" // file constructed by ./configure script
#include <iomanip>
#include <iostream>
#include <dune/grid/sgrid.hh> // load sgrid definition
#include <dune/grid/yaspgrid.hh> // load yaspgrid definition
#include <dune/common/parallel/mpihelper.hh> // include mpi helper class
#include "functors.hh"
......
......@@ -22,13 +22,8 @@ public:
Dune::FieldVector<double,dim> length(1.0);
std::array<int,dim> elements;
std::fill(elements.begin(), elements.end(), size);
std::bitset<dim> periodicity(0);
grid_ = std::unique_ptr<Dune::YaspGrid<dim> >(new Dune::YaspGrid<dim>(
#if HAVE_MPI
MPI_COMM_WORLD,
#endif
length,elements,periodicity,1));
grid_ = std::unique_ptr<Dune::YaspGrid<dim> >(new Dune::YaspGrid<dim>(length,elements));
}
Dune::YaspGrid<dim>& grid ()
......
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