Skip to content

Commit

Permalink
Second try fixing test/testRadialKernel.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
sleweke-bayer authored and schmoelder committed Mar 21, 2023
1 parent 707b9e9 commit 3914f3e
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions test/testRadialKernel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,9 @@
class RadialFlowModel : public cadet::test::IDiffEqModel
{
public:
RadialFlowModel(int nComp, int nCol) : _nComp(nComp), _nCol(nCol), _stencilMemory(sizeof(cadet::active) * 5)
RadialFlowModel(int nComp, int nCol) : _nComp(nComp), _nCol(nCol),
_params(cadet::active(0.0), nullptr, nullptr, nullptr, nullptr, nullptr, 0, 0, 0, 0, 0, nullptr, _dummyModel),
_stencilMemory(sizeof(cadet::active) * 5)
{
const int nPureDof = _nCol * _nComp;
_jacDisc.resize(nPureDof, 2 * nComp, 2 * nComp);
Expand All @@ -78,7 +80,6 @@ class RadialFlowModel : public cadet::test::IDiffEqModel
_params.offsetToInlet = 0;
_params.strideCell = _nComp;
_params.parDep = new cadet::model::DummyParameterParameterDependence();
_params.model = _dummyModel;
}

virtual ~RadialFlowModel() CADET_NOEXCEPT
Expand Down Expand Up @@ -435,6 +436,7 @@ class RadialFlowModel : public cadet::test::IDiffEqModel
int _nComp;
int _nCol;

DummyModel _dummyModel;
cadet::model::parts::convdisp::RadialFlowParameters<double> _params;
cadet::linalg::BandMatrix _jac;
cadet::linalg::FactorizableBandMatrix _jacDisc;
Expand All @@ -444,7 +446,6 @@ class RadialFlowModel : public cadet::test::IDiffEqModel
std::vector<cadet::active> _cellSizes;
std::vector<cadet::active> _cellBounds;
cadet::ArrayPool _stencilMemory;
DummyModel _dummyModel;

std::vector<double> _solTimes;
std::vector<double> _solution;
Expand Down

0 comments on commit 3914f3e

Please sign in to comment.