Skip to content

Commit

Permalink
Simplify notifyDiscontinuousSectionTransition
Browse files Browse the repository at this point in the history
  • Loading branch information
schmoelder committed Mar 26, 2022
1 parent 041d727 commit 926a763
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions src/libcadet/model/StirredTankModel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -418,14 +418,7 @@ void CSTRModel::useAnalyticJacobian(const bool analyticJac)

void CSTRModel::notifyDiscontinuousSectionTransition(double t, unsigned int secIdx, const ConstSimulationState& simState, const AdJacobianParams& adJac)
{
if (_flowRateFilter.size() > 1)
{
_curFlowRateFilter = getSectionDependentScalar(_flowRateFilter, secIdx);
}
else if (_flowRateFilter.size() == 1)
{
_curFlowRateFilter = _flowRateFilter[0];
}
_curFlowRateFilter = getSectionDependentScalar(_flowRateFilter, secIdx);
}

void CSTRModel::reportSolution(ISolutionRecorder& recorder, double const* const solution) const
Expand Down

0 comments on commit 926a763

Please sign in to comment.