From 75e9e17925113baa36c34aaf22d326cfadf13cc4 Mon Sep 17 00:00:00 2001 From: Hideki Kobayashi Date: Fri, 10 Jan 2025 15:27:04 +0100 Subject: [PATCH] Formatting codes for git style --- src/utils/tests/Vector_test.cpp | 3 ++- .../generated_kernels/FieldAccessorsDoublePrecision.h | 6 +++--- .../tests/LBWalberlaImpl_field_accessors_tests.cu | 10 +++++----- 3 files changed, 10 insertions(+), 9 deletions(-) diff --git a/src/utils/tests/Vector_test.cpp b/src/utils/tests/Vector_test.cpp index 0835a3e204..64463077fd 100644 --- a/src/utils/tests/Vector_test.cpp +++ b/src/utils/tests/Vector_test.cpp @@ -44,7 +44,8 @@ using Utils::Vector; /* Number of nontrivial Baxter permutations of length 2n-1. (A001185) */ -#define TEST_NUMBERS {0, 1, 1, 7, 21, 112, 456, 2603, 13203} +#define TEST_NUMBERS \ + { 0, 1, 1, 7, 21, 112, 456, 2603, 13203 } constexpr int test_numbers[] = TEST_NUMBERS; constexpr std::size_t n_test_numbers = sizeof(test_numbers) / sizeof(int); diff --git a/src/walberla_bridge/src/lattice_boltzmann/generated_kernels/FieldAccessorsDoublePrecision.h b/src/walberla_bridge/src/lattice_boltzmann/generated_kernels/FieldAccessorsDoublePrecision.h index 2a81092829..6218a47937 100644 --- a/src/walberla_bridge/src/lattice_boltzmann/generated_kernels/FieldAccessorsDoublePrecision.h +++ b/src/walberla_bridge/src/lattice_boltzmann/generated_kernels/FieldAccessorsDoublePrecision.h @@ -55,8 +55,8 @@ #pragma clang diagnostic ignored "-Wunused-variable" #endif -#include #include +#include namespace walberla { namespace lbm { @@ -339,7 +339,7 @@ inline void add(GhostLayerField *vec_field, inline void initialize(GhostLayerField *vec_field, Vector3 const &vec) { #ifdef CALIPER - CALI_CXX_MARK_FUNCTION; + CALI_CXX_MARK_FUNCTION; #endif WALBERLA_FOR_ALL_CELLS_INCLUDING_GHOST_LAYER_XYZ(vec_field, { double &xyz0 = vec_field->get(x, y, z, uint_t{0u}); @@ -352,7 +352,7 @@ inline void initialize(GhostLayerField *vec_field, inline void add_to_all(GhostLayerField *vec_field, Vector3 const &vec) { #ifdef CALIPER - CALI_CXX_MARK_FUNCTION; + CALI_CXX_MARK_FUNCTION; #endif WALBERLA_FOR_ALL_CELLS_INCLUDING_GHOST_LAYER_XYZ(vec_field, { double &xyz0 = vec_field->get(x, y, z, uint_t{0u}); diff --git a/src/walberla_bridge/tests/LBWalberlaImpl_field_accessors_tests.cu b/src/walberla_bridge/tests/LBWalberlaImpl_field_accessors_tests.cu index 5312bc216a..bdc817a414 100644 --- a/src/walberla_bridge/tests/LBWalberlaImpl_field_accessors_tests.cu +++ b/src/walberla_bridge/tests/LBWalberlaImpl_field_accessors_tests.cu @@ -106,11 +106,11 @@ boost::test_tools::predicate_result almost_equal(R const &val, R const &ref, for (auto i = 0ul; i < val.size(); ++i) { if (auto const diff = std::abs(val[i] - ref[i]); diff > atol) { res = false; - res.message() << "val{" << print_first_n(val) << "} and " - << "ref{" << print_first_n(ref) << "} mismatch: " - << "val[" << i << "]{" << val[i] << "} != " - << "ref[" << i << "]{" << ref[i] << "} " - << "(difference{" << diff << "} > delta{" << atol << "})"; + res.message() << "val{" << print_first_n(val) << "} and " << "ref{" + << print_first_n(ref) << "} mismatch: " << "val[" << i + << "]{" << val[i] << "} != " << "ref[" << i << "]{" + << ref[i] << "} " << "(difference{" << diff << "} > delta{" + << atol << "})"; break; } }