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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
|
--- a/EXAMPLE/pclinsol.c 2026-06-09 21:45:19.791434053 +0200
+++ b/EXAMPLE/pclinsol.c 2026-06-09 21:50:22.730307528 +0200
@@ -35,7 +35,8 @@
SuperMatrix U; /* factor U */
NCPformat *Ustore;
SuperMatrix B;
- int_t nrhs, ldx, info, m, n, nnz, b;
+ int m, nn;
+ int_t nrhs, ldx, info, n, nnz, b;
int_t nprocs; /* maximum number of processors to use. */
int_t panel_size, relax, maxsup;
int_t permc_spec;
@@ -79,7 +80,9 @@
#elif defined( HB )
creadhb(&m, &n, &nnz, &a, &asub, &xa);
#else
- creadMM(&m, &n, &nnz, &a, &asub, &xa);
+ nn = n;
+ creadMM(&m, &nn, &nnz, &a, &asub, &xa);
+ n = nn;
#endif
cCreate_CompCol_Matrix(&A, m, n, nnz, a, asub, xa, SLU_NC, SLU_C, SLU_GE);
--- a/EXAMPLE/pdlinsol.c 2026-06-09 21:50:42.510103477 +0200
+++ b/EXAMPLE/pdlinsol.c 2026-06-09 21:52:01.207291624 +0200
@@ -35,7 +35,8 @@
SuperMatrix U; /* factor U */
NCPformat *Ustore;
SuperMatrix B;
- int_t nrhs, ldx, info, m, n, nnz, b;
+ int m, nn;
+ int_t nrhs, ldx, info, n, nnz, b;
int_t nprocs; /* maximum number of processors to use. */
int_t panel_size, relax, maxsup;
int_t permc_spec;
@@ -79,7 +80,9 @@
#elif defined( HB )
dreadhb(&m, &n, &nnz, &a, &asub, &xa);
#else
- dreadMM(&m, &n, &nnz, &a, &asub, &xa);
+ nn = n;
+ dreadMM(&m, &nn, &nnz, &a, &asub, &xa);
+ n = nn;
#endif
dCreate_CompCol_Matrix(&A, m, n, nnz, a, asub, xa, SLU_NC, SLU_D, SLU_GE);
--- a/EXAMPLE/pslinsol.c 2026-06-09 21:52:30.182992696 +0200
+++ b/EXAMPLE/pslinsol.c 2026-06-09 21:54:36.248692207 +0200
@@ -35,7 +35,8 @@
SuperMatrix U; /* factor U */
NCPformat *Ustore;
SuperMatrix B;
- int_t nrhs, ldx, info, m, n, nnz, b;
+ int m, nn;
+ int_t nrhs, ldx, info, n, nnz, b;
int_t nprocs; /* maximum number of processors to use. */
int_t panel_size, relax, maxsup;
int_t permc_spec;
@@ -79,7 +80,9 @@
#elif defined( HB )
sreadhb(&m, &n, &nnz, &a, &asub, &xa);
#else
- sreadMM(&m, &n, &nnz, &a, &asub, &xa);
+ nn = n;
+ sreadMM(&m, &nn, &nnz, &a, &asub, &xa);
+ n = nn;
#endif
sCreate_CompCol_Matrix(&A, m, n, nnz, a, asub, xa, SLU_NC, SLU_S, SLU_GE);
|