Commit 6bc52cb3 authored by Praetorius, Simon's avatar Praetorius, Simon
Browse files

Remove unused variable warnings and integer conversion warnings

parent 89c6ad62
......@@ -76,10 +76,10 @@ void LagrangePointSetBuilder<K,1>::operator() (GeometryType gt, int order, Point
if (order > 1) {
// Inner nodes
Vec p{0.0};
for (unsigned int i = 0; i < order-1; i++)
for (int i = 0; i < order-1; i++)
{
p[0] += 1.0 / order;
points.push_back(LP{p,Key{0,dim-1,i}});
points.push_back(LP{p,Key{0,dim-1,(unsigned int)(i)}});
}
}
}
......
......@@ -26,7 +26,7 @@ template <class W>
VtkTimeseriesWriter<W>::~VtkTimeseriesWriter ()
{
if (initialized_) {
int ec = std::remove(filenameMesh_.c_str());
[[maybe_unused]] int ec = std::remove(filenameMesh_.c_str());
assert(ec == 0);
for (auto const& timestep : timesteps_) {
ec = std::remove(timestep.second.c_str());
......
......@@ -39,9 +39,9 @@ void write (std::string prefix, index_constant<dim>)
using InterpolationF = LagrangeInterpolationFactory<Vtk::LagrangePointSet, dim, double>;
GenericLocalFiniteElement<BasisF, CoefficientF, InterpolationF> localFE(GeometryTypes::cube(dim), order);
auto const& localBasis = localFE.localBasis();
auto const& localCoefficints = localFE.localCoefficients();
auto const& localInterpolation = localFE.localInterpolation();
[[maybe_unused]] auto const& localBasis = localFE.localBasis();
[[maybe_unused]] auto const& localCoefficints = localFE.localCoefficients();
[[maybe_unused]] auto const& localInterpolation = localFE.localInterpolation();
}
{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment