|
|
@ -36,7 +36,7 @@
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* File: mld_slud_impl.c
|
|
|
|
* File: mld_slud_impl.c
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* Functions: mld_dsludist_factor_, mld_dsludist_solve_, mld_dsludist_free_.
|
|
|
|
* Functions: mld_dsludist_fact_, mld_dsludist_solve_, mld_dsludist_free_.
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* This file is an interface to the SuperLU_dist routines for sparse factorization and
|
|
|
|
* This file is an interface to the SuperLU_dist routines for sparse factorization and
|
|
|
|
* solve. It was obtained by modifying the c_fortran_dgssv.c file from the SuperLU_dist
|
|
|
|
* solve. It was obtained by modifying the c_fortran_dgssv.c file from the SuperLU_dist
|
|
|
@ -114,17 +114,17 @@ typedef struct {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#ifdef Add_
|
|
|
|
#ifdef Add_
|
|
|
|
#define mld_dsludist_factor_ mld_dsludist_factor_
|
|
|
|
#define mld_dsludist_fact_ mld_dsludist_fact_
|
|
|
|
#define mld_dsludist_solve_ mld_dsludist_solve_
|
|
|
|
#define mld_dsludist_solve_ mld_dsludist_solve_
|
|
|
|
#define mld_dsludist_free_ mld_dsludist_free_
|
|
|
|
#define mld_dsludist_free_ mld_dsludist_free_
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
#ifdef AddDouble_
|
|
|
|
#ifdef AddDouble_
|
|
|
|
#define mld_dsludist_factor_ mld_dsludist_factor__
|
|
|
|
#define mld_dsludist_fact_ mld_dsludist_fact__
|
|
|
|
#define mld_dsludist_solve_ mld_dsludist_solve__
|
|
|
|
#define mld_dsludist_solve_ mld_dsludist_solve__
|
|
|
|
#define mld_dsludist_free_ mld_dsludist_free__
|
|
|
|
#define mld_dsludist_free_ mld_dsludist_free__
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
#ifdef NoChange
|
|
|
|
#ifdef NoChange
|
|
|
|
#define mld_dsludist_factor_ mld_dsludist_factor
|
|
|
|
#define mld_dsludist_fact_ mld_dsludist_fact
|
|
|
|
#define mld_dsludist_solve_ mld_dsludist_solve
|
|
|
|
#define mld_dsludist_solve_ mld_dsludist_solve
|
|
|
|
#define mld_dsludist_free_ mld_dsludist_free
|
|
|
|
#define mld_dsludist_free_ mld_dsludist_free
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
@ -133,7 +133,7 @@ typedef struct {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void
|
|
|
|
void
|
|
|
|
mld_dsludist_factor_(int *n, int *nl, int *nnzl, int *ffstr,
|
|
|
|
mld_dsludist_fact_(int *n, int *nl, int *nnzl, int *ffstr,
|
|
|
|
double *values, int *rowptr, int *colind,
|
|
|
|
double *values, int *rowptr, int *colind,
|
|
|
|
#ifdef Have_SLUDist_
|
|
|
|
#ifdef Have_SLUDist_
|
|
|
|
fptr *f_factors, /* a handle containing the address
|
|
|
|
fptr *f_factors, /* a handle containing the address
|
|
|
@ -174,7 +174,7 @@ mld_dsludist_factor_(int *n, int *nl, int *nnzl, int *ffstr,
|
|
|
|
double *ival;
|
|
|
|
double *ival;
|
|
|
|
|
|
|
|
|
|
|
|
trans = NOTRANS;
|
|
|
|
trans = NOTRANS;
|
|
|
|
/* fprintf(stderr,"Entry to sludist_factor\n"); */
|
|
|
|
/* fprintf(stderr,"Entry to sludist_fact\n"); */
|
|
|
|
grid = (gridinfo_t *) SUPERLU_MALLOC(sizeof(gridinfo_t));
|
|
|
|
grid = (gridinfo_t *) SUPERLU_MALLOC(sizeof(gridinfo_t));
|
|
|
|
superlu_gridinit(MPI_COMM_WORLD, *nprow, *npcol, grid);
|
|
|
|
superlu_gridinit(MPI_COMM_WORLD, *nprow, *npcol, grid);
|
|
|
|
/* Initialize the statistics variables. */
|
|
|
|
/* Initialize the statistics variables. */
|
|
|
|