Skip to content
Snippets Groups Projects
Commit ed164c41 authored by Timo Koch's avatar Timo Koch
Browse files

§[vtk] Deprecate VTKMultiWriter

parent 6df37011
No related branches found
No related tags found
2 merge requests!675Feature/rename spatialparameter classes,!617[WIP] Next
...@@ -23,6 +23,8 @@ ...@@ -23,6 +23,8 @@
#ifndef VTK_MULTI_WRITER_HH #ifndef VTK_MULTI_WRITER_HH
#define VTK_MULTI_WRITER_HH #define VTK_MULTI_WRITER_HH
#warning "This header is deprecated. Use the new vtkoutputmodule."
#include <iostream> #include <iostream>
#include <limits> #include <limits>
#include <list> #include <list>
...@@ -39,6 +41,7 @@ ...@@ -39,6 +41,7 @@
#include <dumux/common/valgrind.hh> #include <dumux/common/valgrind.hh>
#include <dune/common/version.hh> #include <dune/common/version.hh>
#include <dune/common/deprecated.hh>
#if HAVE_MPI #if HAVE_MPI
#include <mpi.h> #include <mpi.h>
...@@ -54,13 +57,16 @@ namespace Dumux { ...@@ -54,13 +57,16 @@ namespace Dumux {
* \todo This class can most likely be replaced by Dune::VTKSequenceWriter * \todo This class can most likely be replaced by Dune::VTKSequenceWriter
*/ */
template<class GridView, Dune::VTK::OutputType OutputValue = Dune::VTK::ascii > template<class GridView, Dune::VTK::OutputType OutputValue = Dune::VTK::ascii >
class VtkMultiWriter class DUNE_DEPRECATED_MSG("Use VtkOutputModule instead!") VtkMultiWriter
{ {
enum { dim = GridView::dimension }; enum { dim = GridView::dimension };
#if DUNE_VERSION_NEWER(DUNE_COMMON,2,6)
typedef Dune::MultipleCodimMultipleGeomTypeMapper<GridView> VertexMapper;
typedef Dune::MultipleCodimMultipleGeomTypeMapper<GridView> ElementMapper;
#else
typedef Dune::MultipleCodimMultipleGeomTypeMapper<GridView, Dune::MCMGVertexLayout> VertexMapper; typedef Dune::MultipleCodimMultipleGeomTypeMapper<GridView, Dune::MCMGVertexLayout> VertexMapper;
typedef Dune::MultipleCodimMultipleGeomTypeMapper<GridView, Dune::MCMGElementLayout> ElementMapper; typedef Dune::MultipleCodimMultipleGeomTypeMapper<GridView, Dune::MCMGElementLayout> ElementMapper;
#endif
public: public:
typedef Dune::VTKWriter<GridView> VtkWriter; typedef Dune::VTKWriter<GridView> VtkWriter;
VtkMultiWriter(const GridView &gridView, VtkMultiWriter(const GridView &gridView,
......
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