Skip to content

Commit 3cb1519

Browse files
committed
Call getter for sectionDependentScalar
1 parent 8fc3aaf commit 3cb1519

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/libcadet/model/StirredTankModel.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -419,8 +419,9 @@ void CSTRModel::useAnalyticJacobian(const bool analyticJac)
419419
void CSTRModel::notifyDiscontinuousSectionTransition(double t, unsigned int secIdx, const ConstSimulationState& simState, const AdJacobianParams& adJac)
420420
{
421421
if (_flowRateFilter.size() > 1)
422+
422423
{
423-
_curFlowRateFilter = _flowRateFilter[secIdx];
424+
_curFlowRateFilter = getSectionDependentScalar(_flowRateFilter, secIdx);
424425
}
425426
else if (_flowRateFilter.size() == 1)
426427
{

0 commit comments

Comments
 (0)