Skip to content

Commit 53f941e

Browse files
committed
add printing nonzeros in A and fill ratio.
1 parent e3c902f commit 53f941e

File tree

2 files changed

+11
-9
lines changed

2 files changed

+11
-9
lines changed

SRC/prec-independent/symbfact.c

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ int_t symbfact
9191
)
9292
{
9393

94-
int_t m, n, min_mn, j, i, k, irep, nseg, pivrow, info;
94+
int_t m, n, min_mn, nnz, j, i, k, irep, nseg, pivrow, info;
9595
int_t *iwork, *perm_r, *segrep, *repfnz;
9696
int_t *xprune, *marker, *parent, *xplore;
9797
int_t relax, *desc, *relax_end;
@@ -104,11 +104,11 @@ int_t symbfact
104104

105105
m = A->nrow;
106106
n = A->ncol;
107+
nnz = ((NCPformat*)A->Store)->nnz;
107108
min_mn = SUPERLU_MIN(m, n);
108109

109110
/* Allocate storage common to the symbolic factor routines */
110-
info = symbfact_SubInit(options, DOFACT, NULL, 0, m, n,
111-
((NCPformat*)A->Store)->nnz,
111+
info = symbfact_SubInit(options, DOFACT, NULL, 0, m, n, nnz,
112112
Glu_persist, Glu_freeable);
113113
if ( info != 0 )
114114
return info;
@@ -188,11 +188,13 @@ int_t symbfact
188188

189189
if ( !pnum && (options->PrintStat == YES)) {
190190
nnzLU = nnzL + nnzU - min_mn;
191-
printf("\tMatrix size min_mn " IFMT "\n", min_mn);
192-
printf("\tNonzeros in L " IFMT "\n", nnzL);
193-
printf("\tNonzeros in U " IFMT "\n", nnzU);
194-
printf("\tnonzeros in L+U " IFMT "\n", nnzLU);
195-
printf("\tnonzeros in LSUB " IFMT "\n", nnzLSUB);
191+
printf("\tmatrix dimension " IFMT "\n", min_mn);
192+
printf("\tnonzeros in A " IFMT "\n", nnz);
193+
printf("\tnonzeros in L " IFMT "\n", nnzL);
194+
printf("\tnonzeros in U " IFMT "\n", nnzU);
195+
printf("\tnonzeros in L+U " IFMT "\n", nnzLU);
196+
printf("\tfill ratio " "%8.1f" "\n", (float)nnzLU/nnz);
197+
printf("\tnonzeros in LSUB " IFMT "\n", nnzLSUB);
196198
}
197199
SUPERLU_FREE(iwork);
198200

SRC/prec-independent/trfAux.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2593,7 +2593,7 @@ void permCol_SymbolicFact3d(superlu_dist_options_t *options, int n, SuperMatrix
25932593
#if (PRNTlevel >= 1)
25942594
if (!iam)
25952595
{
2596-
printf("\tNo of supers %ld\n", (long)Glu_persist->supno[n - 1] + 1);
2596+
printf("\tNumber of supers %ld\n", (long)Glu_persist->supno[n - 1] + 1);
25972597
printf("\tSize of G(L) %ld\n", (long)Glu_freeable->xlsub[n]);
25982598
printf("\tSize of G(U) %ld\n", (long)Glu_freeable->xusub[n]);
25992599
printf("\tint %lu, short %lu, float %lu, double %lu\n",

0 commit comments

Comments
 (0)