From b6f1c9e3af714d6d378e51332469b7e13e00e575 Mon Sep 17 00:00:00 2001 From: Bruno Turcksin Date: Tue, 3 Dec 2024 10:06:59 -0500 Subject: [PATCH] Fix typos --- source/base/polynomials_piecewise.cc | 6 +++--- source/grid/grid_out.cc | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/source/base/polynomials_piecewise.cc b/source/base/polynomials_piecewise.cc index 67e96a0fab..a300659aaa 100644 --- a/source/base/polynomials_piecewise.cc +++ b/source/base/polynomials_piecewise.cc @@ -139,9 +139,9 @@ namespace Polynomials else { const double offset = step * interval; - // ROCm 5.7 throw a floating point exception in debug when trying to - // evaluate (x < offset && x > offset + step). Separating the - // conditions fixes the issue. + // ROCm 5.7 throws a floating point exception in debug mode when + // trying to evaluate (x < offset && x > offset + step). Separating + // the conditions fixes the issue. if (x < offset) { for (unsigned int k = 0; k <= n_derivatives; ++k) diff --git a/source/grid/grid_out.cc b/source/grid/grid_out.cc index 3e5d34603e..6ade6e4ba3 100644 --- a/source/grid/grid_out.cc +++ b/source/grid/grid_out.cc @@ -2140,7 +2140,7 @@ GridOut::write_svg(const Triangulation<2, 2> &tria, std::ostream &out) const if (n != 1) { - // The assert is a workaround a compiler bug in ROCm 5.7 which + // The assert is a workaround for a compiler bug in ROCm 5.7 which // evaluated index/(n-1) when n == 1 in debug mode. When adding // the assert the ratio is not evaluated. Assert((n - 1.) != 0., ExcInvalidState()); -- 2.39.5