Skip to content

Commit d8a0c43

Browse files
committed
Fix nBin check
1 parent 1d6bfd9 commit d8a0c43

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

src/libcadet/model/reaction/CrystallizationReaction.cpp

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -470,16 +470,8 @@ class CrystallizationReaction : public IDynamicReactionModel
470470
{
471471
readScalarParameterOrArray(_bins, paramProvider, "CRY_BINS", 1);
472472

473-
if (_usePBM)
474-
{
475-
if (_bins.size() != _nBins + 2)
476-
throw InvalidParameterException("Expected CRY_BINS to have " + std::to_string(_nBins + 2) + " elements (got " + std::to_string(_bins.size()) + ")");
477-
}
478-
else
479-
{
480473
if (_bins.size() != _nBins + 1)
481474
throw InvalidParameterException("Expected CRY_BINS to have " + std::to_string(_nBins + 1) + " elements (got " + std::to_string(_bins.size()) + ")");
482-
}
483475

484476
registerParam1DArray(_parameters, _bins, [=](bool multi, unsigned int idx) { return makeParamId(hashString("CRY_BINS"), unitOpIdx, CompIndep, ParTypeIndep, BoundStateIndep, idx, SectionIndep); });
485477

0 commit comments

Comments
 (0)