From 160ef0a91bf4301d3d3da7ad0cd7e55905aba22e Mon Sep 17 00:00:00 2001 From: maho Date: Wed, 5 May 2004 18:27:53 +0000 Subject: Unbreak. Suggestion by: "Pedro F. Giffuni" and kris --- cad/tochnog/Makefile | 2 -- cad/tochnog/files/patch-src+so_suplu.c | 22 ++++++++++++++++++++++ 2 files changed, 22 insertions(+), 2 deletions(-) create mode 100644 cad/tochnog/files/patch-src+so_suplu.c (limited to 'cad/tochnog') diff --git a/cad/tochnog/Makefile b/cad/tochnog/Makefile index f608b74262a..2fd45094fe3 100644 --- a/cad/tochnog/Makefile +++ b/cad/tochnog/Makefile @@ -23,8 +23,6 @@ BUILD_DEPENDS+= ${LOCALBASE}/lib/libsuperlu_mt.a:${PORTSDIR}/math/superlu_mt BUILD_DEPENDS+= ${LOCALBASE}/lib/libsuperlu.a:${PORTSDIR}/math/superlu .endif -BROKEN= "Does not compile" - .include .if ${OSVERSION} >= 500113 diff --git a/cad/tochnog/files/patch-src+so_suplu.c b/cad/tochnog/files/patch-src+so_suplu.c new file mode 100644 index 00000000000..26c6e82a9eb --- /dev/null +++ b/cad/tochnog/files/patch-src+so_suplu.c @@ -0,0 +1,22 @@ +--- so_suplu.c.orig Thu May 6 03:24:22 2004 ++++ so_suplu.c Thu May 6 03:24:25 2004 +@@ -53,6 +53,8 @@ + int *perm_r, *perm_c; + int perm_spec; + int nrhs; ++ SuperLUStat_t stat; ++ superlu_options_t options; + #endif + + /* Create Matrix A in the format expected by SuperLU */ +@@ -103,7 +105,9 @@ + + /* Solve */ + #if SUPERLU_USE +- dgssv( &A, perm_c, perm_r, &L, &U, &B, &info ); ++ /* Initialize the statistics variables. */ ++ StatInit(&stat); ++ dgssv(&options, &A, perm_c, perm_r, &L, &U, &B, &stat, &info ); + #elif SUPERLU_MT_USE + pdgssv( nthread, &A, perm_c, perm_r, &L, &U, &B, &info ); + #elif SUPERLU_DIST_USE -- cgit