Skip to content

Commit

Permalink
format (again... doing it manually because clang-format here and on G…
Browse files Browse the repository at this point in the history
…itHub don't always agree)
  • Loading branch information
BrendanKKrueger committed Oct 23, 2024
1 parent 1955937 commit fce0f56
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions spiner/regular_grid_1d.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,7 @@ class RegularGrid1D {
PORTABLE_INLINE_FUNCTION RegularGrid1D(T xmin, T xmax, size_t N)
: xmin_(xmin), xmax_(xmax), umin_(Transform::forward(xmin)),
umax_(Transform::forward(xmax)),
du_((umax_ - umin_) / static_cast<T>(N - 1)), inv_du_(1 / du_), N_(N)
{
du_((umax_ - umin_) / static_cast<T>(N - 1)), inv_du_(1 / du_), N_(N) {
// A transform could be monotonically decreasing, so there's no guarantee
// that umin_ < umax_
PORTABLE_ALWAYS_REQUIRE(xmin_ < xmax_ && N_ > 0, "Valid grid");
Expand Down

0 comments on commit fce0f56

Please sign in to comment.