Skip to content
Snippets Groups Projects
Commit 36cb58ce authored by Dmitri Naumov's avatar Dmitri Naumov
Browse files

[PL] BCs: Remove empty preTimestep().

parent 6caa4c29
No related branches found
No related tags found
No related merge requests found
...@@ -62,8 +62,6 @@ public: ...@@ -62,8 +62,6 @@ public:
// Therefore there is nothing to do here. // Therefore there is nothing to do here.
} }
virtual void preTimestep(const double /*t*/) {}
virtual ~BoundaryCondition() = default; virtual ~BoundaryCondition() = default;
}; };
......
...@@ -43,10 +43,4 @@ void BoundaryConditionCollection::addBCsForProcessVariables( ...@@ -43,10 +43,4 @@ void BoundaryConditionCollection::addBCsForProcessVariables(
// object if needed. // object if needed.
_dirichlet_bcs.resize(_boundary_conditions.size()); _dirichlet_bcs.resize(_boundary_conditions.size());
} }
void BoundaryConditionCollection::preTimestep(const double t)
{
for (auto& bc : _boundary_conditions)
bc->preTimestep(t);
}
} }
...@@ -44,8 +44,6 @@ public: ...@@ -44,8 +44,6 @@ public:
NumLib::LocalToGlobalIndexMap const& dof_table, NumLib::LocalToGlobalIndexMap const& dof_table,
unsigned const integration_order); unsigned const integration_order);
void preTimestep(const double t);
private: private:
mutable std::vector<NumLib::IndexValueVector<GlobalIndexType>> _dirichlet_bcs; mutable std::vector<NumLib::IndexValueVector<GlobalIndexType>> _dirichlet_bcs;
std::vector<std::unique_ptr<BoundaryCondition>> _boundary_conditions; std::vector<std::unique_ptr<BoundaryCondition>> _boundary_conditions;
......
...@@ -16,10 +16,6 @@ ...@@ -16,10 +16,6 @@
namespace ProcessLib namespace ProcessLib
{ {
void DirichletBoundaryCondition::preTimestep(const double /*t*/)
{
}
void DirichletBoundaryCondition::getEssentialBCValues( void DirichletBoundaryCondition::getEssentialBCValues(
const double t, NumLib::IndexValueVector<GlobalIndexType>& bc_values) const const double t, NumLib::IndexValueVector<GlobalIndexType>& bc_values) const
{ {
......
...@@ -49,8 +49,6 @@ public: ...@@ -49,8 +49,6 @@ public:
} }
} }
void preTimestep(const double t) override;
void getEssentialBCValues( void getEssentialBCValues(
const double t, const double t,
NumLib::IndexValueVector<GlobalIndexType>& bc_values) const override; NumLib::IndexValueVector<GlobalIndexType>& bc_values) const override;
......
...@@ -59,8 +59,6 @@ public: ...@@ -59,8 +59,6 @@ public:
} }
} }
void preTimestep(const double /*t*/) override {}
void getEssentialBCValues( void getEssentialBCValues(
const double /*t*/, const double /*t*/,
NumLib::IndexValueVector<GlobalIndexType>& bc_values) const override NumLib::IndexValueVector<GlobalIndexType>& bc_values) const override
......
...@@ -245,7 +245,6 @@ void Process::preTimestep(GlobalVector const& x, const double t, ...@@ -245,7 +245,6 @@ void Process::preTimestep(GlobalVector const& x, const double t,
MathLib::LinAlg::setLocalAccessibleVector(x); MathLib::LinAlg::setLocalAccessibleVector(x);
preTimestepConcreteProcess(x, t, delta_t); preTimestepConcreteProcess(x, t, delta_t);
_boundary_conditions.preTimestep(t);
} }
void Process::postTimestep(GlobalVector const& x) void Process::postTimestep(GlobalVector const& x)
......
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