Skip to content

Commit

Permalink
more and more little changes
Browse files Browse the repository at this point in the history
  • Loading branch information
AntoniaBerger authored and jbreue16 committed Nov 20, 2024
1 parent 6f200b0 commit e21b192
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 5 deletions.
2 changes: 1 addition & 1 deletion src/libcadet/ExchangeModelFactory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ namespace cadet
if (_exchangeModels.find(name) == _exchangeModels.end())
_exchangeModels[name] = factory;
else
throw InvalidParameterException("IPhaseTransition implementation with the name " + name + " is already registered and cannot be overwritten");
throw InvalidParameterException("IExchange implementation with the name " + name + " is already registered and cannot be overwritten");
}

bool ExchangeModelFactory::exists(const std::string& name) const
Expand Down
2 changes: 0 additions & 2 deletions src/libcadet/model/MultiChannelTransportModel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -724,14 +724,12 @@ int MultiChannelTransportModel::residual(const SimulationTime& simTime, const Co
template <typename StateType, typename ResidualType, typename ParamType, bool wantJac>
int MultiChannelTransportModel::residualImpl(double t, unsigned int secIdx, StateType const* const y, double const* const yDot, ResidualType* const res, util::ThreadLocalStorage& threadLocalMem)
{

// Handle inlet DOFs, which are simply copied to res
for (unsigned int i = 0; i < _disc.nComp * _disc.nChannel; ++i)
{
res[i] = y[i];
}


_convDispOp.residual(*this, t, secIdx, y, yDot, res, wantJac, typename ParamSens<ParamType>::enabled());

linalg::BandedSparseRowIterator jacbegin = _convDispOp.getJacRowIterator(0);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -830,8 +830,6 @@ bool MultiChannelConvectionDispersionOperator::configure(UnitOpIdx unitOpIdx, IP

setSparsityPattern();

_exchangeModel = new LinearExchangeBase();

return true;
}

Expand Down

0 comments on commit e21b192

Please sign in to comment.