Skip to content

Commit

Permalink
- move timesense problem as it is a descendant of trajectoryproblem
Browse files Browse the repository at this point in the history
  • Loading branch information
fbergmann committed Nov 5, 2024
1 parent ab8e245 commit 37b094f
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions copasi/bindings/common/downcast_common.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -558,6 +558,10 @@ GetDowncastSwigTypeForProblem(CCopasiProblem* problem)
{
pInfo = GetDowncastSwigTypeForCOptProblem(static_cast<COptProblem*>(problem));
}
else if (dynamic_cast<CTimeSensProblem*>(problem))
{
pInfo = SWIGTYPE_p_CTimeSensProblem;
}
else if (dynamic_cast<CTrajectoryProblem*>(problem))
{
pInfo = SWIGTYPE_p_CTrajectoryProblem;
Expand All @@ -582,10 +586,6 @@ GetDowncastSwigTypeForProblem(CCopasiProblem* problem)
{
pInfo = SWIGTYPE_p_CSensProblem;
}
else if (dynamic_cast<CTimeSensProblem*>(problem))
{
pInfo = SWIGTYPE_p_CTimeSensProblem;
}

return pInfo;
}
Expand Down Expand Up @@ -616,6 +616,10 @@ GetDowncastSwigTypeForTask(CCopasiTask* task)
{
pInfo = SWIGTYPE_p_CLNATask;
}
else if (dynamic_cast<CTimeSensTask*>(task))
{
pInfo = SWIGTYPE_p_CTimeSensTask;
}
else if (dynamic_cast<CTrajectoryTask*>(task))
{
pInfo = SWIGTYPE_p_CTrajectoryTask;
Expand All @@ -640,10 +644,6 @@ GetDowncastSwigTypeForTask(CCopasiTask* task)
{
pInfo = SWIGTYPE_p_CSensTask;
}
else if (dynamic_cast<CTimeSensTask*>(task))
{
pInfo = SWIGTYPE_p_CTimeSensTask;
}

return pInfo;
}
Expand Down

0 comments on commit 37b094f

Please sign in to comment.