Skip to content

Commit

Permalink
cv ida
Browse files Browse the repository at this point in the history
  • Loading branch information
dweindl committed Mar 4, 2024
1 parent a59e403 commit fac4795
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/solver_idas.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
namespace amici {

/*
* The following static members are callback function to CVODES.
* The following static members are callback function to IDAS.
* Their signatures must not be changes.
*/

Expand Down Expand Up @@ -419,7 +419,7 @@ void IDASolver::reInitPostProcess(

auto status = IDASetStopTime(ida_mem, tout);
if (status != IDA_SUCCESS)
throw IDAException(status, "CVodeSetStopTime");
throw IDAException(status, "IDASetStopTime");

Check warning on line 422 in src/solver_idas.cpp

View check run for this annotation

Codecov / codecov/patch

src/solver_idas.cpp#L422

Added line #L422 was not covered by tests

status = IDASolve(
ami_mem, tout, t, yout->getNVector(), ypout->getNVector(), IDA_ONE_STEP
Expand Down Expand Up @@ -835,7 +835,7 @@ void IDASolver::setNonLinearSolver() const {
solver_memory_.get(), non_linear_solver_->get()
);
if (status != IDA_SUCCESS)
throw CvodeException(status, "CVodeSetNonlinearSolver");
throw IDAException(status, "IDASetNonlinearSolver");

Check warning on line 838 in src/solver_idas.cpp

View check run for this annotation

Codecov / codecov/patch

src/solver_idas.cpp#L838

Added line #L838 was not covered by tests
}

void IDASolver::setNonLinearSolverSens() const {
Expand Down Expand Up @@ -865,15 +865,15 @@ void IDASolver::setNonLinearSolverSens() const {
}

if (status != IDA_SUCCESS)
throw CvodeException(status, "CVodeSolver::setNonLinearSolverSens");
throw IDAException(status, "IDASolver::setNonLinearSolverSens");

Check warning on line 868 in src/solver_idas.cpp

View check run for this annotation

Codecov / codecov/patch

src/solver_idas.cpp#L868

Added line #L868 was not covered by tests
}

void IDASolver::setNonLinearSolverB(int which) const {
int status = IDASetNonlinearSolverB(
solver_memory_.get(), which, non_linear_solver_B_->get()
);
if (status != IDA_SUCCESS)
throw CvodeException(status, "CVodeSetNonlinearSolverB");
throw IDAException(status, "IDASetNonlinearSolverB");

Check warning on line 876 in src/solver_idas.cpp

View check run for this annotation

Codecov / codecov/patch

src/solver_idas.cpp#L876

Added line #L876 was not covered by tests
}

realtype IDASolver::get_current_time() const {

Check warning on line 879 in src/solver_idas.cpp

View check run for this annotation

Codecov / codecov/patch

src/solver_idas.cpp#L879

Added line #L879 was not covered by tests
Expand All @@ -883,7 +883,7 @@ realtype IDASolver::get_current_time() const {
realtype time;
int status = IDAGetCurrentTime(solver_memory_.get(), &time);

Check warning on line 884 in src/solver_idas.cpp

View check run for this annotation

Codecov / codecov/patch

src/solver_idas.cpp#L884

Added line #L884 was not covered by tests
if (status != IDA_SUCCESS)
throw CvodeException(status, "IDAGetCurrentTime");
throw IDAException(status, "IDAGetCurrentTime");
return time;

Check warning on line 887 in src/solver_idas.cpp

View check run for this annotation

Codecov / codecov/patch

src/solver_idas.cpp#L886-L887

Added lines #L886 - L887 were not covered by tests
}

Expand Down

0 comments on commit fac4795

Please sign in to comment.