Skip to content

Commit

Permalink
clang-format
Browse files Browse the repository at this point in the history
  • Loading branch information
dweindl committed Nov 10, 2024
1 parent a1cdcb8 commit 2c362b4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions src/solver_cvodes.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,10 @@ static_assert((int)InterpolationType::polynomial == CV_POLYNOMIAL, "");
static_assert((int)LinearMultistepMethod::adams == CV_ADAMS, "");
static_assert((int)LinearMultistepMethod::BDF == CV_BDF, "");

#define STATIC_ASSERT_EQUAL(amici_constant, cv_constant) \
static_assert(amici_constant == cv_constant, #amici_constant " != " #cv_constant)
#define STATIC_ASSERT_EQUAL(amici_constant, cv_constant) \
static_assert( \
amici_constant == cv_constant, #amici_constant " != " #cv_constant \
)

STATIC_ASSERT_EQUAL(amici::AMICI_SUCCESS, CV_SUCCESS);
STATIC_ASSERT_EQUAL(amici::AMICI_ROOT_RETURN, CV_ROOT_RETURN);
Expand Down
2 changes: 1 addition & 1 deletion src/steadystateproblem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ void SteadystateProblem::findSteadyState(
|| solver.getNewtonMaxSteps() == 0
|| (solver.getSensitivityOrder() >= SensitivityOrder::first
&& model.getSteadyStateSensitivityMode()
== SteadyStateSensitivityMode::integrationOnly
== SteadyStateSensitivityMode::integrationOnly
&& ((it == -1
&& solver.getSensitivityMethodPreequilibration()
== SensitivityMethod::forward)
Expand Down

0 comments on commit 2c362b4

Please sign in to comment.