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

[P] fix some warnings

parent 6154dc12
No related branches found
No related tags found
1 merge request!10Draft: consolidate refactoring work
Pipeline #125214 failed
......@@ -122,7 +122,7 @@ struct oswald_interpolation_for_all_grids<V, VT, Dune::XT::Common::tuple_null_ty
};
PYBIND11_MODULE(_interpolations_oswald, m)
PYBIND11_MODULE(_interpolations_oswald, /*m*/)
{
namespace py = pybind11;
using namespace Dune;
......
......@@ -200,9 +200,7 @@ public:
result *= 0;
// collect quadrature data
// - therefore, count how many quadrature points there are
size_t num_quadrature_points = 0;
for (const auto& DUNE_UNUSED(quadrature_point) : QuadratureRules<D, d>::rule(element.type(), integrand_order_))
++num_quadrature_points;
const size_t num_quadrature_points = QuadratureRules<D, d>::rule(element.type(), integrand_order_).size();
std::vector<double> integration_factor(num_quadrature_points);
std::vector<double> quadrature_weight(num_quadrature_points);
// - and store them in a numpy.ndarray
......
......@@ -154,9 +154,7 @@ public:
result *= 0;
// collect quadrature data
// - therefore, count how many quadrature points there are
size_t num_quadrature_points = 0;
for (const auto& DUNE_UNUSED(quadrature_point) : QuadratureRules<D, d>::rule(element.type(), integrand_order_))
++num_quadrature_points;
const size_t num_quadrature_points = QuadratureRules<D, d>::rule(element.type(), integrand_order_).size();
std::vector<double> integration_factor(num_quadrature_points);
std::vector<double> quadrature_weight(num_quadrature_points);
// - and store them in a numpy.ndarray
......
......@@ -200,7 +200,7 @@ namespace bindings {
// };
PYBIND11_MODULE(_operators_laplace_ipdg_flux_reconstruction, m)
PYBIND11_MODULE(_operators_laplace_ipdg_flux_reconstruction, /*m*/)
{
namespace py = pybind11;
using namespace Dune;
......
......@@ -22,7 +22,7 @@ using namespace Dune;
template <class V>
V& get_vec_ref(py::handle list_element, const bool recurse = true)
V& get_vec_ref(py::handle list_element)
{
try {
return list_element.cast<V&>();
......
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