From 2c362b432b6da97c3f612be6ca4a0f5d692186b5 Mon Sep 17 00:00:00 2001 From: Daniel Weindl Date: Sun, 10 Nov 2024 14:52:40 +0100 Subject: [PATCH] clang-format --- src/solver_cvodes.cpp | 6 ++++-- src/steadystateproblem.cpp | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/solver_cvodes.cpp b/src/solver_cvodes.cpp index dfccbb2389..0b60304c55 100644 --- a/src/solver_cvodes.cpp +++ b/src/solver_cvodes.cpp @@ -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); diff --git a/src/steadystateproblem.cpp b/src/steadystateproblem.cpp index ce8096dee8..7c3ac9fab3 100644 --- a/src/steadystateproblem.cpp +++ b/src/steadystateproblem.cpp @@ -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)