From 792908b42844a8d33cbd88dce6d482972e9c66b2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Atgeirr=20Fl=C3=B8=20Rasmussen?= Date: Thu, 31 Mar 2016 17:19:35 +0200 Subject: [PATCH] Dodge Dune changes by using CpGrid for this test. YaspGrid requires changes to the GridInterfaceEuler class, which is not prioritized. --- examples/known_answer_test.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/examples/known_answer_test.cpp b/examples/known_answer_test.cpp index c8c8d5f..0b57825 100644 --- a/examples/known_answer_test.cpp +++ b/examples/known_answer_test.cpp @@ -289,7 +289,7 @@ void test_flowsolver(const GI& g, const RI& r, double tol, int kind) compare_pressure(g, cell_pressure); - Dune::VTKWriter vtkwriter(g.grid().leafView()); + Dune::VTKWriter vtkwriter(g.grid().leafGridView()); vtkwriter.addCellData(cell_velocity_flat, "velocity", GI::GridType::dimension); vtkwriter.addCellData(cell_pressure, "pressure"); vtkwriter.write("testsolution-" + boost::lexical_cast(0), @@ -306,12 +306,12 @@ try // Make a grid // Either a Dune::CpGrid... -// typedef Dune::CpGrid Grid; -// Grid grid; -// grid.init(param); -// grid.setUniqueBoundaryIds(true); - + typedef Dune::CpGrid Grid; + Grid grid; + grid.init(param); + grid.setUniqueBoundaryIds(true); // ... or a YaspGrid. + /* const int dim = 3; typedef Dune::YaspGrid Grid; @@ -330,7 +330,7 @@ try sz[1] = param.getDefault("dy", sz[1])*dims[1]; sz[2] = param.getDefault("dz", sz[2])*dims[2]; Grid grid(sz, dims, per, 0); - + */ // Make the grid interface Opm::GridInterfaceEuler g(grid);