Skip to content

Commit

Permalink
..
Browse files Browse the repository at this point in the history
  • Loading branch information
dweindl committed Oct 18, 2024
1 parent e8d9910 commit 2868a14
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions include/amici/defines.h
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ constexpr double pi = M_PI;
//
// NOTE: When adding / removing / renaming return codes,
// please update simulation_status_to_str_map in amici.h
constexpr int AMICI_WARNING= 99;
constexpr int AMICI_RECOVERABLE_ERROR= 1;
constexpr int AMICI_UNRECOVERABLE_ERROR= -10;
constexpr int AMICI_TOO_MUCH_WORK= -1;
Expand Down
1 change: 1 addition & 0 deletions src/amici.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ std::map<int, std::string> simulation_status_to_str_map = {
{AMICI_NOT_RUN, "AMICI_NOT_RUN"},
{AMICI_LSETUP_FAIL, "AMICI_LSETUP_FAIL"},
{AMICI_FIRST_QRHSFUNC_ERR, "AMICI_FIRST_QRHSFUNC_ERR"},
{AMICI_WARNING, "AMICI_WARNING"},
};

std::unique_ptr<ReturnData> runAmiciSimulation(
Expand Down
4 changes: 4 additions & 0 deletions src/solver_cvodes.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,10 @@ static_assert(
amici::AMICI_FIRST_QRHSFUNC_ERR == CV_FIRST_QRHSFUNC_ERR,
"AMICI_FIRST_QRHSFUNC_ERR != CV_FIRST_QRHSFUNC_ERR"
);
static_assert(
amici::AMICI_WARNING == CV_WARNING,
"AMICI_WARNING != CV_WARNING"
);

/*
* The following static members are callback function to CVODES.
Expand Down
4 changes: 4 additions & 0 deletions src/solver_idas.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,10 @@ static_assert(
amici::AMICI_IDAS_CONSTR_FAIL == IDA_CONSTR_FAIL,
"AMICI_IDAS_CONSTR_FAIL != IDA_CONSTR_FAIL"
);
static_assert(
amici::AMICI_WARNING == IDA_WARNING,
"AMICI_WARNING != IDA_WARNING"
);

/*
* The following static members are callback function to IDAS.
Expand Down

0 comments on commit 2868a14

Please sign in to comment.