Skip to content

Commit

Permalink
clang-format and tidy
Browse files Browse the repository at this point in the history
  • Loading branch information
ddement committed Feb 20, 2025
1 parent 001ce91 commit 7bad94e
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,7 @@ struct CalculateStiffnessQuadraturePointValues {
qp_r0(i_elem, i_qp, 3)
};
const auto x0_prime_data = Kokkos::Array<double, 3>{
qp_x0_prime(i_elem, i_qp, 0), qp_x0_prime(i_elem, i_qp, 1),
qp_x0_prime(i_elem, i_qp, 2)
qp_x0_prime(i_elem, i_qp, 0), qp_x0_prime(i_elem, i_qp, 1), qp_x0_prime(i_elem, i_qp, 2)
};
auto xr_data = Kokkos::Array<double, 4>{};
auto u_data = Kokkos::Array<double, 3>{};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ struct ExecuteCalculateGravityForce {
};

TEST(CalculateGravityForceTestsMasses, OneNode) {
double mass = 1.;
constexpr double mass = 1.;

const auto eta_tilde = Kokkos::View<double[3][3]>("eta_tilde");
constexpr auto eta_tilde_data = std::array{37., 38., 39., 40., 41., 42., 43., 44., 45.};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ struct ExecuteCalculateInertialForces {
};

TEST(CalculateInertialForcesTestsMasses, OneNode) {
double mass = 1.;
constexpr double mass = 1.;

const auto u_ddot = Kokkos::View<double[3]>("u_ddot");
constexpr auto u_ddot_data = std::array{37., 38., 39.};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ void TestCalculateStiffnessMatrixTests_OneElement() {

Kokkos::parallel_for(
"CalculateStiffnessMatrix", 1,
KOKKOS_LAMBDA(const size_t i_elem) {
KOKKOS_LAMBDA(size_t) {
constexpr auto c1 = 2.;
constexpr auto c2 = 1.;
constexpr auto l = 1.;
Expand Down

0 comments on commit 7bad94e

Please sign in to comment.