Skip to content

Commit

Permalink
fix readability-braces-around-statements issues
Browse files Browse the repository at this point in the history
  • Loading branch information
lucafedeli88 committed Oct 22, 2024
1 parent 29ed073 commit 17f5ef0
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -88,10 +88,12 @@ void test_expected_pair_number(RealType ref = zero<RealType>)
E[i][0]*fe, E[i][1]*fe, E[i][2]*fe, B[i][0]*fb, B[i][1]*fb, B[i][2]*fb,
volume*fv, dt*ft, ref);

if(res_exp[i] <= tolerance<RealType>())
if(res_exp[i] <= tolerance<RealType>()){
BOOST_CHECK_SMALL(res, tolerance<RealType>());
else
}
else{
BOOST_CHECK_SMALL((res-static_cast<RealType>(res_exp[i]))/static_cast<RealType>(res_exp[i]), tolerance<RealType>());
}
}
}

Expand Down

0 comments on commit 17f5ef0

Please sign in to comment.