@@ -32,7 +32,7 @@ void pdbridge_init(int_t m, int_t n, int_t nnz, int_t *rowind, int_t *colptr , d
32
32
double * berr ;
33
33
double * b , * xtrue ;
34
34
int m1 , n1 ;
35
- int nprow , npcol , lookahead , colperm , rowperm , ir , symbfact , batch ;
35
+ int nprow , npcol , lookahead , colperm , rowperm , ir , symbfact , batch , sympattern ;
36
36
int iam , info , ldb , ldx ;
37
37
char * * cpp , c , * postfix ;;
38
38
FILE * fp , * fopen ();
@@ -56,6 +56,7 @@ void pdbridge_init(int_t m, int_t n, int_t nnz, int_t *rowind, int_t *colptr , d
56
56
rowperm = -1 ;
57
57
ir = -1 ;
58
58
symbfact = -1 ;
59
+ sympattern = 0 ;
59
60
batch = 0 ;
60
61
61
62
/* ------------------------------------------------------------
@@ -104,6 +105,7 @@ void pdbridge_init(int_t m, int_t n, int_t nnz, int_t *rowind, int_t *colptr , d
104
105
switch (c ) {
105
106
case 'h' :
106
107
printf ("Options:\n" );
108
+ printf ("\t-m <int>: symmetric pattern (default %4d)\n" , sympattern );
107
109
printf ("\t-r <int>: process rows (default %4d)\n" , nprow );
108
110
printf ("\t-c <int>: process columns (default %4d)\n" , npcol );
109
111
printf ("\t-p <int>: row permutation (default %4d)\n" , (slu_obj -> options ).RowPerm );
@@ -130,6 +132,8 @@ void pdbridge_init(int_t m, int_t n, int_t nnz, int_t *rowind, int_t *colptr , d
130
132
break ;
131
133
case 'b' : batch = atoi (* cpp );
132
134
break ;
135
+ case 'm' : sympattern = atoi (* cpp );
136
+ break ;
133
137
}
134
138
} else { /* Last arg is considered a filename */
135
139
if ( !(fp = fopen (* cpp , "r" )) ) {
@@ -145,6 +149,7 @@ void pdbridge_init(int_t m, int_t n, int_t nnz, int_t *rowind, int_t *colptr , d
145
149
if (lookahead != -1 ) (slu_obj -> options ).num_lookaheads = lookahead ;
146
150
if (ir != -1 ) (slu_obj -> options ).IterRefine = ir ;
147
151
if (symbfact != -1 ) (slu_obj -> options ).ParSymbFact = symbfact ;
152
+ if (sympattern == 1 ) (slu_obj -> options ).SymPattern = YES ;
148
153
149
154
int superlu_acc_offload = sp_ienv_dist (10 , & (slu_obj -> options )); //get_acc_offload();
150
155
0 commit comments