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)