Skip to content
Snippets Groups Projects
Commit 87d18b8f authored by Praetorius, Simon's avatar Praetorius, Simon
Browse files

Merge branch 'issue/vtkwriter_example' into 'master'

correct dune version checkout and feature check in vtkwriter

See merge request spraetor/dune-vtk!13
parents 4d0ad4f5 e446a49b
No related branches found
No related tags found
No related merge requests found
...@@ -38,7 +38,7 @@ static TestCases test_cases = { ...@@ -38,7 +38,7 @@ static TestCases test_cases = {
template <class GridView> template <class GridView>
void write (std::string prefix, GridView const& gridView) void write (std::string prefix, GridView const& gridView)
{ {
#if ! DUNE_VERSION_NEWER(DUNE_FUNCTIONS, 2, 6) #if DUNE_VERSION_LT(DUNE_FUNCTIONS, 2, 7)
using namespace BasisBuilder; using namespace BasisBuilder;
#else #else
using namespace BasisFactory; using namespace BasisFactory;
...@@ -77,7 +77,7 @@ int main (int argc, char** argv) ...@@ -77,7 +77,7 @@ int main (int argc, char** argv)
{ {
Dune::MPIHelper::instance(argc, argv); Dune::MPIHelper::instance(argc, argv);
#ifdef HAVE_UG #if HAVE_UG
// Test VtkWriter for UGGrid // Test VtkWriter for UGGrid
Hybrid::forEach(std::make_tuple(int_<2>{}, int_<3>{}), [](auto dim) Hybrid::forEach(std::make_tuple(int_<2>{}, int_<3>{}), [](auto dim)
{ {
...@@ -87,7 +87,7 @@ int main (int argc, char** argv) ...@@ -87,7 +87,7 @@ int main (int argc, char** argv)
FieldVector<double,dim.value> upperRight; upperRight = 1.0; FieldVector<double,dim.value> upperRight; upperRight = 1.0;
auto numElements = filledArray<dim.value,unsigned int>(8); auto numElements = filledArray<dim.value,unsigned int>(8);
auto gridPtr = StructuredGridFactory<GridType>::createSimplexGrid(lowerLeft, upperRight, numElements); auto gridPtr = StructuredGridFactory<GridType>::createSimplexGrid(lowerLeft, upperRight, numElements);
gridPtr->loadBalance();
write("vtkwriter_ug", gridPtr->leafGridView()); write("vtkwriter_ug", gridPtr->leafGridView());
} }
}); });
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment