Commit 873b2f2a authored by Christian Engwer's avatar Christian Engwer

deleted gnuplot function because it is not used and not documented in the


creadits to Martin Drohmann

[[Imported from SVN: r233]]
parent 1913c0aa
......@@ -33,43 +33,6 @@ struct P0Layout
template<class G>
void gnuplot (G& grid, std::vector<double>& c)
// first we extract the dimensions of the grid
const int dim = G::dimension;
const int dimworld = G::dimensionworld;
// type used for coordinates in the grid
// such a type is exported by every grid implementation
typedef typename G::ctype ct;
// the grid has an iterator providing the access to
// all elements (better codim 0 entities) which are leafs
// of the refinement tree.
// Note the use of the typename keyword and the traits class
typedef typename G::template Codim<0>::LeafIterator ElementLeafIterator;
// make a mapper for codim 0 entities in the leaf grid
// iterate through all entities of codim 0 at the leafs
int count = 0;
for (ElementLeafIterator it = grid.template leafbegin<0>();
it!=grid.template leafend<0>(); ++it)
Dune::GeometryType gt = it->type();
const Dune::FieldVector<ct,dim>&
local = Dune::ReferenceElements<ct,dim>::general(gt).position(0,0);
global = it->geometry().global(local);
std::cout << global[0] << " " << c[*it)] << std::endl;
template<class G>
void timeloop (G& grid, double tend, int lmin, int lmax)
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