Changed: Undo of 02d84c07e2
It feels unneccassary and confusing with two versions of solveStep and the need for the using statement when one of them is overriden.
This commit is contained in:
@@ -53,13 +53,7 @@ public:
|
||||
}
|
||||
|
||||
//! \brief Computes the solution for the current time step.
|
||||
virtual bool solveStep(TimeStep& tp)
|
||||
{
|
||||
return this->solveStep(tp, true);
|
||||
}
|
||||
|
||||
//! \brief Computes the solution for the current time step.
|
||||
virtual bool solveStep(TimeStep& tp, bool firstS1)
|
||||
virtual bool solveStep(TimeStep& tp, bool firstS1 = true)
|
||||
{
|
||||
if (firstS1)
|
||||
return S1.solveStep(tp) && S2.solveStep(tp);
|
||||
|
||||
@@ -32,8 +32,7 @@ public:
|
||||
virtual ~SIMCoupledSI() {}
|
||||
|
||||
//! \brief Computes the solution for the current time step.
|
||||
using SIMCoupled<T1,T2>::solveStep;
|
||||
virtual bool solveStep(TimeStep& tp, bool firstS1)
|
||||
virtual bool solveStep(TimeStep& tp, bool firstS1 = true)
|
||||
{
|
||||
if (maxIter <= 0)
|
||||
maxIter = std::min(this->S1.getMaxit(),this->S2.getMaxit());
|
||||
|
||||
Reference in New Issue
Block a user