Skip to content

Commit

Permalink
Formatting codes for clang-sanitizer
Browse files Browse the repository at this point in the history
  • Loading branch information
hidekb committed Jan 17, 2025
1 parent 2d221c1 commit 6091226
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/walberla_bridge/src/utils/types_conversion.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ inline Utils::VectorXd<9> to_vector9d(Matrix3<float> const &m) {
inline Utils::Vector3i to_vector3i(Vector3<float> const &v) {
#ifndef NDEBUG
for (auto const i : {0u, 1u, 2u}) {
assert(std::abs(static_cast<double>(v[i] - static_cast<int>(v[i])) < 1e-5));
assert(std::abs(v[i] - static_cast<int>(v[i])) < 1e-5);
}
#endif
return Utils::Vector3i{
Expand Down
3 changes: 2 additions & 1 deletion testsuite/python/lb_shear.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@
DENS = 2.3
TIME_STEP = 0.02
# Box size will be H +2 AGRID to make room for walls.
# The number of grid cells should be divisible by four and 2 in all directions
# The number of grid cells should be divisible by four
# in shear plane normal direction and 2 in all directions
# for testing on multiple mpi nodes and multiple blocks per mpirank.
H = 10 * AGRID
W = 6 * AGRID
Expand Down

0 comments on commit 6091226

Please sign in to comment.