Skip to content

Commit c666401

Browse files
committed
fixup! fixup! ready to debug
1 parent 4cec44a commit c666401

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

src/libcadet/model/StirredTankModel.cpp

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -358,6 +358,9 @@ namespace cadet
358358
// Reconfigure reaction model
359359
bool dynReactionConfSuccess = true;
360360
_hasQuasiStationaryReactionBulk = false;
361+
_MconvMoityBulk = Eigen::Matrix<active, Eigen::Dynamic, Eigen::Dynamic>::Zero(0, 0); // matrix for conserved moities
362+
_QsCompBulk.clear();
363+
_nConservedQuants = 0;
361364
if (_dynReactionBulk && _dynReactionBulk->requiresConfiguration())
362365
{
363366
paramProvider.pushScope("reaction_bulk");
@@ -389,12 +392,7 @@ namespace cadet
389392
}
390393
}
391394
}
392-
else
393-
{
394-
_MconvMoityBulk = Eigen::Matrix<active, Eigen::Dynamic, Eigen::Dynamic>::Zero(0, 0); // matrix for conserved moities
395-
_QsCompBulk.clear();
396-
_nConservedQuants = 0;
397-
}
395+
398396

399397
for (unsigned int type = 0; type < _nParType; ++type)
400398
{

0 commit comments

Comments
 (0)