Skip to content

Commit

Permalink
return inlet concentration instead of first axial cell
Browse files Browse the repository at this point in the history
  • Loading branch information
schmoelder committed May 10, 2021
1 parent 44e0f81 commit 32cd482
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/libcadet/model/GeneralRateModel.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -453,7 +453,7 @@ class GeneralRateModel : public UnitOperationBase
virtual double const* inlet(unsigned int port, unsigned int& stride) const
{
stride = _idx.strideColComp();
return &_idx.c(_data, 0, 0);
return _data;
}
virtual double const* outlet(unsigned int port, unsigned int& stride) const
{
Expand Down
2 changes: 1 addition & 1 deletion src/libcadet/model/GeneralRateModel2D.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -433,7 +433,7 @@ class GeneralRateModel2D : public UnitOperationBase
virtual double const* inlet(unsigned int port, unsigned int& stride) const
{
stride = _idx.strideColComp();
return &_idx.c(_data, 0, port, 0);
return _data;
}
virtual double const* outlet(unsigned int port, unsigned int& stride) const
{
Expand Down
2 changes: 1 addition & 1 deletion src/libcadet/model/LumpedRateModelWithPores.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,7 @@ class LumpedRateModelWithPores : public UnitOperationBase
virtual double const* inlet(unsigned int port, unsigned int& stride) const
{
stride = _idx.strideColComp();
return &_idx.c(_data, 0, 0);
return _data;
}
virtual double const* outlet(unsigned int port, unsigned int& stride) const
{
Expand Down
2 changes: 1 addition & 1 deletion src/libcadet/model/LumpedRateModelWithoutPores.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ class LumpedRateModelWithoutPores : public UnitOperationBase
virtual double const* inlet(unsigned int port, unsigned int& stride) const
{
stride = _idx.strideColComp();
return &_idx.c(_data, 0, 0);
return _data;
}
virtual double const* outlet(unsigned int port, unsigned int& stride) const
{
Expand Down

0 comments on commit 32cd482

Please sign in to comment.