diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 0373c39dc6d7e85dd70aabd779006b01fbd6f7e0..43cf69c3f28a42f08a77d3a1c3ef4071a332bf21 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -7,10 +7,10 @@ debian:10 clang-6-libcpp-17: image: registry.dune-project.org/docker/ci/dune:2.6-debian-10-clang-6-libcpp-17 script: duneci-standard-test -debian:9 gcc-6-14: - image: registry.dune-project.org/docker/ci/dune:2.6-debian-9-gcc-6-14 - script: duneci-standard-test +#debian:9 gcc-6-14: +# image: registry.dune-project.org/docker/ci/dune:2.6-debian-9-gcc-6-14 +# script: duneci-standard-test -ubuntu:18.04 clang-6-17: - image: registry.dune-project.org/docker/ci/dune:2.6-ubuntu-18.04-clang-6-17 - script: duneci-standard-test +#ubuntu:18.04 clang-6-17: +# image: registry.dune-project.org/docker/ci/dune:2.6-ubuntu-18.04-clang-6-17 +# script: duneci-standard-test diff --git a/dune.module b/dune.module index 57ba73870d70253394a5b1b9349e04717c301198..747c6adbc85295f29857c6816a64fdc51c723300 100644 --- a/dune.module +++ b/dune.module @@ -7,5 +7,5 @@ Module: dune-vtk Version: 0.1 Maintainer: simon.praetorius@tu-dresden.de #depending on -Depends: dune-grid -Suggests: dune-functions dune-spgrid dune-polygongrid \ No newline at end of file +Depends: dune-grid (>= 2.6) +Suggests: dune-functions (>= 2.6) dune-spgrid dune-polygongrid \ No newline at end of file diff --git a/dune/vtk/vtkfunction.hh b/dune/vtk/vtkfunction.hh index 148a065496b1b8f3a1b3561dd344ba5fdce27312..c71d9f498cd708cb9e19e0350c75ae9d396716be 100644 --- a/dune/vtk/vtkfunction.hh +++ b/dune/vtk/vtkfunction.hh @@ -32,7 +32,7 @@ namespace Dune } template <class T> - constexpr int Size = Impl::SizeImpl<std::decay_t<T>>::value; + constexpr int sizeOf () { return Impl::SizeImpl<std::decay_t<T>>::value; } template <class GridView> @@ -66,8 +66,8 @@ namespace Dune { using R = Range<decltype(localFunction(std::forward<F>(fct)))>; - ncomps_ = ncomps ? *ncomps : Size<R>; - type_ = type ? *type : Vtk::Map::type<R>; + ncomps_ = ncomps ? *ncomps : sizeOf<R>(); + type_ = type ? *type : Vtk::Map::type<R>(); } VtkFunction () = default; diff --git a/dune/vtk/vtktypes.hh b/dune/vtk/vtktypes.hh index 5e50c6a653ba6d3fbdd1a5db69f045924ff611b1..435b75f729a10474628dda7292bcb337591257c0 100644 --- a/dune/vtk/vtktypes.hh +++ b/dune/vtk/vtktypes.hh @@ -80,7 +80,7 @@ namespace Dune static constexpr DataTypes typeImpl (Type<long double>) { return FLOAT64; } template <class T> - static constexpr DataTypes type = typeImpl(Type<typename FieldTraits<T>::field_type>{}); + static constexpr DataTypes type () { return typeImpl(Type<typename FieldTraits<T>::field_type>{}); } }; diff --git a/src/benchmark.cc b/src/benchmark.cc index 2439c286d192f354e84f0842bf85f5177bb46134..83e12006837172bed2ba39f04db2d021a1899f54 100644 --- a/src/benchmark.cc +++ b/src/benchmark.cc @@ -12,7 +12,6 @@ #include <dune/common/parallel/mpihelper.hh> // An initializer of MPI #include <dune/common/filledarray.hh> #include <dune/common/timer.hh> -#include <dune/common/test/testsuite.hh> #include <dune/grid/uggrid.hh> #include <dune/grid/yaspgrid.hh> @@ -76,12 +75,10 @@ int main (int argc, char** argv) { Dune::MPIHelper::instance(argc, argv); - TestSuite test{}; - #ifdef HAVE_UG // Test VtkWriter for UGGrid std::cout << "UGGrid\n"; - Hybrid::forEach(std::make_tuple(int_<2>{}, int_<3>{}), [&test](auto dim) + Hybrid::forEach(std::make_tuple(int_<2>{}, int_<3>{}), [](auto dim) { using GridType = UGGrid<dim.value>; FieldVector<double,dim.value> lowerLeft; lowerLeft = 0.0; @@ -109,5 +106,4 @@ int main (int argc, char** argv) writer_new(grid.leafGridView()); }); - return test.exit(); } diff --git a/src/pvdwriter.cc b/src/pvdwriter.cc index 242b6cd159d5ca3c94d1057e4e2011c603c99faf..f415c7f7431c15a0e58d75ba35a431f0d06b5d90 100644 --- a/src/pvdwriter.cc +++ b/src/pvdwriter.cc @@ -11,13 +11,8 @@ #include <dune/common/parallel/mpihelper.hh> // An initializer of MPI #include <dune/common/exceptions.hh> // We use exceptions #include <dune/common/filledarray.hh> - -#include <dune/functions/functionspacebases/defaultglobalbasis.hh> -#include <dune/functions/functionspacebases/lagrangebasis.hh> #include <dune/functions/gridfunctions/analyticgridviewfunction.hh> - #include <dune/grid/yaspgrid.hh> - #include <dune/vtk/pvdwriter.hh> #include <dune/vtk/writers/vtkunstructuredgridwriter.hh> @@ -27,9 +22,6 @@ using namespace Dune::Functions; template <class GridView> void write (std::string prefix, GridView const& gridView) { - using namespace BasisFactory; - auto basis = makeBasis(gridView, lagrange<1>()); - FieldVector<double,GridView::dimensionworld> c; if (GridView::dimensionworld > 0) c[0] = 11.0; if (GridView::dimensionworld > 1) c[1] = 7.0;