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

Deduction guide for unstructured grid creator

parent 486efed6
No related branches found
No related tags found
No related merge requests found
......@@ -7,17 +7,19 @@ namespace Dune
{
/// Base class for data collectors in a CRTP style.
/**
* \tparam GridView Model of Dune::GridView
* \tparam Derived Implementation of a concrete DataCollector.
* \tparam Partition Dune::PartitionType [Partitions::InteriorBorder]
* \tparam GridViewType Model of Dune::GridView
* \tparam Derived Implementation of a concrete DataCollector.
* \tparam Partition Dune::PartitionType [Partitions::InteriorBorder]
**/
template <class GridView, class Derived, class Partition>
template <class GridViewType, class Derived, class Partition>
class DataCollectorInterface
{
public:
/// The partitionset to collect data from
static constexpr auto partition = Partition{};
using GridView = GridViewType;
/// The dimension of the grid
enum { dim = GridView::dimension };
......
......@@ -90,6 +90,10 @@ namespace Dune
using Super::cellData_;
};
template <class DataCollector>
VtkUnstructuredGridWriter(std::shared_ptr<DataCollector>, Vtk::FormatTypes = Vtk::BINARY, Vtk::DataTypes = Vtk::FLOAT32)
-> VtkUnstructuredGridWriter<typename DataCollector::GridView, DataCollector>;
} // end namespace Dune
#include "vtkunstructuredgridwriter.impl.hh"
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