]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix typos 17904/head
authorBruno Turcksin <bruno.turcksin@gmail.com>
Tue, 3 Dec 2024 15:06:59 +0000 (10:06 -0500)
committerBruno Turcksin <bruno.turcksin@gmail.com>
Tue, 3 Dec 2024 15:06:59 +0000 (10:06 -0500)
source/base/polynomials_piecewise.cc
source/grid/grid_out.cc

index 67e96a0fabf16e7c9c936496f9c0d6a3da00b904..a300659aaa19e4e5fd2bd3cabea0ea934bb0e8f5 100644 (file)
@@ -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)
index 3e5d34603ed54f293829367c0a1bf941440b8011..6ade6e4ba3f91f23af479f177dc2f840bf623766 100644 (file)
@@ -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());

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.