Commit 31705d30 authored by Lukas Riedel's avatar Lukas Riedel

Fix bug and warnings in FV local operators

* Fix bug where the '_time' member was not properly used, causing a
  compiler error.
* Fix warnings where certain variables in the FV operators are now
  unused as they are not needed for the BC evaluation anymore.
parent 7920d813
......@@ -209,9 +209,7 @@ public:
const auto& entity_i = ig.inside();
// Get geometries
const auto geo_f = entity_f.geometry();
const auto& ref_el_f = referenceElement(geo_f);
const auto& center_position_f = ref_el_f.position(0,0);
const auto& geo_f = entity_f.geometry();
// Face volume for integration
const auto volume_f = geo_f.volume();
......@@ -240,7 +238,7 @@ public:
const auto distance = position_diff.two_norm();
// Evaluate Dirichlet condition
const auto g = bc->evaluate(time);
const auto g = bc->evaluate(_time);
// Inside unknown value
const RangeU u_i = x_i(lfsu_i,0);
......@@ -263,7 +261,7 @@ public:
else if (bc->type() == BCType::Neumann)
{
// Contribution to residual from Neumann boundary
RangeFieldU water_flux_f = bc->evaluate(time);
RangeFieldU water_flux_f = bc->evaluate(_time);
// adjust flux to surface tilt
const auto& bc_neumann
......
......@@ -302,7 +302,6 @@ public:
// Get geometries
auto geo_f = entity_f.geometry();
const auto& ref_el_f = referenceElement(geo_f);
// Get normal
auto normal_f = entity_f.centerUnitOuterNormal();
......
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