Skip to content

Commit

Permalink
guard the print statement in the case when the matrix is singular.
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaoyeli committed Jun 22, 2024
1 parent 098f95e commit 6cecd12
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 4 deletions.
5 changes: 4 additions & 1 deletion SRC/cgssv.c
Original file line number Diff line number Diff line change
Expand Up @@ -232,9 +232,12 @@ cgssv(superlu_options_t *options, SuperMatrix *A, int *perm_c, int *perm_r,
/* Solve the system A*X=B, overwriting B with X. */
int info1;
cgstrs (trans, L, U, perm_c, perm_r, B, stat, &info1);
} else {
}
#if ( PRNTlevel>=1 )
else {
printf("cgstrf info %lld\n", (long long) *info); fflush(stdout);
}
#endif

utime[SOLVE] = SuperLU_timer_() - t;

Expand Down
5 changes: 4 additions & 1 deletion SRC/dgssv.c
Original file line number Diff line number Diff line change
Expand Up @@ -232,9 +232,12 @@ dgssv(superlu_options_t *options, SuperMatrix *A, int *perm_c, int *perm_r,
/* Solve the system A*X=B, overwriting B with X. */
int info1;
dgstrs (trans, L, U, perm_c, perm_r, B, stat, &info1);
} else {
}
#if ( PRNTlevel>=1 )
else {
printf("dgstrf info %lld\n", (long long) *info); fflush(stdout);
}
#endif

utime[SOLVE] = SuperLU_timer_() - t;

Expand Down
5 changes: 4 additions & 1 deletion SRC/sgssv.c
Original file line number Diff line number Diff line change
Expand Up @@ -232,9 +232,12 @@ sgssv(superlu_options_t *options, SuperMatrix *A, int *perm_c, int *perm_r,
/* Solve the system A*X=B, overwriting B with X. */
int info1;
sgstrs (trans, L, U, perm_c, perm_r, B, stat, &info1);
} else {
}
#if ( PRNTlevel>=1 )
else {
printf("sgstrf info %lld\n", (long long) *info); fflush(stdout);
}
#endif

utime[SOLVE] = SuperLU_timer_() - t;

Expand Down
5 changes: 4 additions & 1 deletion SRC/zgssv.c
Original file line number Diff line number Diff line change
Expand Up @@ -232,9 +232,12 @@ zgssv(superlu_options_t *options, SuperMatrix *A, int *perm_c, int *perm_r,
/* Solve the system A*X=B, overwriting B with X. */
int info1;
zgstrs (trans, L, U, perm_c, perm_r, B, stat, &info1);
} else {
}
#if ( PRNTlevel>=1 )
else {
printf("zgstrf info %lld\n", (long long) *info); fflush(stdout);
}
#endif

utime[SOLVE] = SuperLU_timer_() - t;

Expand Down

0 comments on commit 6cecd12

Please sign in to comment.