aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages/patches/superlu-dist-scotchmetis.patch
diff options
context:
space:
mode:
authorEric Bavier <bavier@member.fsf.org>2014-05-19 00:12:46 -0500
committerEric Bavier <bavier@member.fsf.org>2014-05-19 00:15:11 -0500
commita54aefead6bfcc35bce0ac2aebb4cd32eb94208e (patch)
treeeae6f4714969a1bdbfaa5e4a5212eca24fc812f9 /gnu/packages/patches/superlu-dist-scotchmetis.patch
parent6acb4adb34a1b76744c024c945cca5cfdbdfffc5 (diff)
downloadguix-a54aefead6bfcc35bce0ac2aebb4cd32eb94208e.tar
guix-a54aefead6bfcc35bce0ac2aebb4cd32eb94208e.tar.gz
gnu: Add superlu-dist package.
* gnu/packages/maths.scm (superlu-dist): New variable. * gnu/packages/patches/superlu-dist-scotchmetis.patch: New patch. * gnu-system.am (dist_patch_DATA): Add it.
Diffstat (limited to 'gnu/packages/patches/superlu-dist-scotchmetis.patch')
-rw-r--r--gnu/packages/patches/superlu-dist-scotchmetis.patch21
1 files changed, 21 insertions, 0 deletions
diff --git a/gnu/packages/patches/superlu-dist-scotchmetis.patch b/gnu/packages/patches/superlu-dist-scotchmetis.patch
new file mode 100644
index 0000000000..3d78380551
--- /dev/null
+++ b/gnu/packages/patches/superlu-dist-scotchmetis.patch
@@ -0,0 +1,21 @@
+The METIS interface from Scotch may segfault if passed NULL to indicate a
+default parameter, so use the older calling style.
+
+--- a/SRC/get_perm_c.c 2014-05-16 23:38:30.070835316 -0500
++++ b/SRC/get_perm_c.c 2014-05-16 23:39:04.582836211 -0500
+@@ -70,11 +70,13 @@
+ #else
+
+ /* Earlier version 3.x.x */
+- /* METIS_NodeND(&nm, b_colptr, b_rowind, &numflag, metis_options,
+- perm, iperm);*/
++ METIS_NodeND(&nm, b_colptr, b_rowind, &numflag, metis_options,
++ perm, iperm);
+
+ /* Latest version 4.x.x */
++#if 0
+ METIS_NodeND(&nm, b_colptr, b_rowind, NULL, NULL, perm, iperm);
++#endif
+
+ /*check_perm_dist("metis perm", n, perm);*/
+ #endif