diff --git a/examples/main.cc b/examples/main.cc index ff8dad83180a971dcc0f4b21fe282a3c1579bfd5..f720d83e848756adb04b568e71942e0a054f0828 100644 --- a/examples/main.cc +++ b/examples/main.cc @@ -26,9 +26,13 @@ // method // ------ -void method ( int problem, int startLevel, int maxLevel, const char* outpath ) +void method ( int problem, int startLvl, int maxLvl, const char* outpath ) { typedef Dune::GridSelector::GridType Grid; + + const int startLevel = startLvl * Dune :: DGFGridInfo< Grid > :: refineStepsForHalf(); + const int maxLevel = maxLvl * Dune :: DGFGridInfo< Grid > :: refineStepsForHalf(); + /** type of pde to solve **/ #if TRANSPORT typedef TransportModel< Grid::dimensionworld > ModelType;