File: octave9.patch

package info (click to toggle)
octave-level-set 0.3.1~git.2019.04.13-8
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,212 kB
  • sloc: cpp: 1,840; makefile: 34; sh: 20
file content (42 lines) | stat: -rw-r--r-- 1,790 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
Description: Fix FTBFS against Octave 9
Author: Rafael Laboissière <rafael@debian.org>
Forwarded: https://savannah.gnu.org/bugs/index.php?65293
Last-Update: 2024-02-11

--- octave-level-set-0.3.1~git.2019.04.13.orig/src/internal_init_narrowband.cpp
+++ octave-level-set-0.3.1~git.2019.04.13/src/internal_init_narrowband.cpp
@@ -109,7 +109,7 @@ DEFUN_DLD (__levelset_internal_init_narr
               if (nPhi * myPhi < 0.0)
                 {
                   const double frac = getZeroFraction (myPhi, nPhi);
-                  assert (lo_ieee_finite (frac));
+                  assert (lo_ieee_isfinite (frac));
 
                   /* If the neighbour value is infinite leading to a frac
                      of zero, this point is exactly on the boundary.  Thus
--- octave-level-set-0.3.1~git.2019.04.13.orig/src/nbFromGeom.cpp
+++ octave-level-set-0.3.1~git.2019.04.13/src/nbFromGeom.cpp
@@ -104,7 +104,7 @@ DEFUN_DLD (__levelset_nbFromGeom, args,
           EXTRACT_VERTEX (b, isptCoord, indB)
 
           ColumnVector dir = b - a;
-          const double len = xnorm (dir);
+          const double len = octave::xnorm (dir);
           dir /= len;
 
           /* Try to update all boundary element nodes.  */
@@ -123,11 +123,11 @@ DEFUN_DLD (__levelset_nbFromGeom, args,
               const double proj = dir.transpose () * (x - a);
               double cur;
               if (proj < 0.0)
-                cur = xnorm (x - a);
+                cur = octave::xnorm (x - a);
               else if (proj > len)
-                cur = xnorm (x - b);
+                cur = octave::xnorm (x - b);
               else
-                cur = xnorm (x - (a + proj * dir));
+                cur = octave::xnorm (x - (a + proj * dir));
 
               if (hasG)
                 {