Skip to content
Snippets Groups Projects
Commit 4701cdbc authored by Dr. Felix Tobias Schindler's avatar Dr. Felix Tobias Schindler
Browse files

[P|grid.gridprovider] fix some warnings

parent 79ca12b2
No related branches found
No related tags found
3 merge requests!41Fix compilation with icc, several other changes,!39Make functions copyable,!35dailywork-ftschindler
......@@ -56,11 +56,11 @@ public:
const std::string class_name = class_id + "_" + grid_id;
const auto ClassName = XT::Common::to_camel_case(class_name);
bound_type c(m, ClassName.c_str(), (XT::Common::to_camel_case(class_id) + " (" + grid_id + " variant)").c_str());
c.def_property_readonly("dimension", [dim](type&) { return dim; });
c.def_property_readonly("dimension", [](type&) { return dim; });
c.def_property_readonly("max_level", &type::max_level);
c.def(
"size",
[dim](type& self, const int codim) {
[](type& self, const int codim) {
DUNE_THROW_IF(
codim < 0 || codim > dim, Exceptions::wrong_codimension, "dim = " << dim << "\n codim = " << codim);
DUNE_THROW_IF(codim != dim && codim != 0 && !G::LeafGridView::conforming,
......@@ -74,7 +74,7 @@ public:
"codim"_a);
c.def(
"centers",
[dim](type& self, const int codim) {
[](type& self, const int codim) {
DUNE_THROW_IF(
codim < 0 || codim > dim, Exceptions::wrong_codimension, "dim = " << dim << "\n codim = " << codim);
DUNE_THROW_IF(codim != dim && codim != 0 && !G::LeafGridView::conforming,
......
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