Skip to content
Snippets Groups Projects
Commit e38b6239 authored by Tobias Leibner's avatar Tobias Leibner
Browse files

apply clang format

parent 194fb9ee
No related branches found
No related tags found
No related merge requests found
...@@ -18,8 +18,8 @@ ...@@ -18,8 +18,8 @@
#else #else
#include <dune/xt/grid/parallel/partitioning/ranged-internal.hh> #include <dune/xt/grid/parallel/partitioning/ranged-internal.hh>
namespace Dune { namespace Dune {
template<class GridView, int codim> template <class GridView, int codim>
using RangedPartitioning = Dune::XT::Grid::RangedPartitioning<GridView, codim, All_Partition>; using RangedPartitioning = Dune::XT::Grid::RangedPartitioning<GridView, codim, All_Partition>;
} }
#endif #endif
......
...@@ -125,14 +125,12 @@ struct GridWalkerTest : public ::testing::Test ...@@ -125,14 +125,12 @@ struct GridWalkerTest : public ::testing::Test
void check_partitioning() void check_partitioning()
{ {
const auto gv = grid_prv.grid().leafGridView(); const auto gv = grid_prv.grid().leafGridView();
Walker<GridLayerType> walker(gv); Walker<GridLayerType> walker(gv);
size_t all_count = 0, inner_count = 0; size_t all_count = 0, inner_count = 0;
auto all_set_counter = [&](...) { all_count++; }; auto all_set_counter = [&](...) { all_count++; };
auto inner_set_counter = [&](...) { auto inner_set_counter = [&](...) { inner_count++; };
inner_count++;
};
auto on_interior_partitionset = new ApplyOn::PartitionSetEntities<GridLayerType, Dune::Partitions::Interior>(); auto on_interior_partitionset = new ApplyOn::PartitionSetEntities<GridLayerType, Dune::Partitions::Interior>();
auto on_all_partitionset = new ApplyOn::PartitionSetEntities<GridLayerType, Dune::Partitions::All>(); auto on_all_partitionset = new ApplyOn::PartitionSetEntities<GridLayerType, Dune::Partitions::All>();
walker.append(inner_set_counter, on_interior_partitionset); walker.append(inner_set_counter, on_interior_partitionset);
...@@ -141,8 +139,6 @@ struct GridWalkerTest : public ::testing::Test ...@@ -141,8 +139,6 @@ struct GridWalkerTest : public ::testing::Test
Dune::XT::Grid::RangedPartitioning<GridLayerType, 0, Dune::Interior_Partition> interior_part(gv, 1); Dune::XT::Grid::RangedPartitioning<GridLayerType, 0, Dune::Interior_Partition> interior_part(gv, 1);
Dune::XT::Grid::RangedPartitioning<GridLayerType, 0, Dune::All_Partition> all_part(gv, 1); Dune::XT::Grid::RangedPartitioning<GridLayerType, 0, Dune::All_Partition> all_part(gv, 1);
} }
}; };
......
...@@ -402,20 +402,20 @@ using extract_geometry_t = typename extract_geometry<T, codim>::type; ...@@ -402,20 +402,20 @@ using extract_geometry_t = typename extract_geometry<T, codim>::type;
template <class T, template <class T,
int c = 0, int c = 0,
PartitionIteratorType pit = All_Partition, PartitionIteratorType pit = All_Partition,
bool view = is_view<T>::value || is_dd_subdomain<T>::value || is_dd_subdomain_boundary<T>::value, bool view = is_view<T>::value || is_dd_subdomain<T>::value || is_dd_subdomain_boundary<T>::value,
bool part = is_part<T>::value> bool part = is_part<T>::value>
struct extract_iterator : public AlwaysFalse<T> struct extract_iterator : public AlwaysFalse<T>
{ {
}; };
template <class T, int c, PartitionIteratorType pit > template <class T, int c, PartitionIteratorType pit>
struct extract_iterator<T, c, pit, true, false> struct extract_iterator<T, c, pit, true, false>
{ {
typedef typename T::template Codim<c>::template Partition<pit>::Iterator type; typedef typename T::template Codim<c>::template Partition<pit>::Iterator type;
}; };
template <class T, int c, PartitionIteratorType pit > template <class T, int c, PartitionIteratorType pit>
struct extract_iterator<T, c, pit, false, true> struct extract_iterator<T, c, pit, false, true>
{ {
typedef typename T::template Codim<c>::template Partition<pit>::IteratorType type; typedef typename T::template Codim<c>::template Partition<pit>::IteratorType type;
......
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