Updating autotest for SuperLU-dist version 6.3.1
This commit is contained in:
parent
249383ad61
commit
35386791fb
@ -49,7 +49,7 @@ co="--enable-debug --with-mli --with-superlu --with-superlu-include=/home/falgou
|
||||
./test.sh basic.sh $src_dir -co: $co -mo: $mo
|
||||
./renametest.sh basic $output_dir/basic-superlu
|
||||
|
||||
co="--enable-debug --with-mli --with-superlu --with-superlu-include=/home/falgout2/codes/superlu/SuperLU_5.2.1/SRC --with-dsuperlu --with-dsuperlu-include=/home/falgout2/codes/superlu/SuperLU_DIST_5.2.1/SRC --with-blas-lib=\\'-L/home/falgout2/codes/blas/BLAS-3.7.1 -lblas -lgfortran\\' --with-dsuperlu-lib=\\'-L/home/falgout2/codes/superlu/SuperLU_DIST_5.2.1/lib -lsuperlu_dist -L/home/falgout2/codes/parmetis/parmetis-4.0.3/build/Linux-x86_64/libparmetis -lparmetis -L/home/falgout2/codes/parmetis/parmetis-4.0.3/build/Linux-x86_64/libmetis -lmetis\\'"
|
||||
co="--enable-debug --with-mli --with-superlu --with-superlu-include=/home/falgout2/codes/superlu/SuperLU_5.2.1/SRC --with-dsuperlu --with-dsuperlu-include=/home/falgout2/codes/superlu/superlu_dist-6.3.1/SRC --with-blas-lib=\\'-L/home/falgout2/codes/blas/BLAS-3.7.1 -lblas -lgfortran\\' --with-dsuperlu-lib=\\'-L/home/falgout2/codes/superlu/superlu_dist-6.3.1/lib -lsuperlu_dist -L/home/falgout2/codes/parmetis/parmetis-4.0.3/build/Linux-x86_64/libparmetis -lparmetis -L/home/falgout2/codes/parmetis/parmetis-4.0.3/build/Linux-x86_64/libmetis -lmetis -lstdc++\\'"
|
||||
./test.sh basic.sh $src_dir -co: $co -mo: $mo -ro: $ro
|
||||
./renametest.sh basic $output_dir/basic-dsuperlu
|
||||
|
||||
|
||||
@ -40,9 +40,8 @@ HYPRE_Int hypre_SLUDistSetup( HYPRE_Solver *solver, hypre_ParCSRMatrix *A, HYPRE
|
||||
MPI_Comm comm = hypre_ParCSRMatrixComm(A);
|
||||
hypre_CSRMatrix *A_local;
|
||||
HYPRE_Int num_rows;
|
||||
HYPRE_Int num_procs, my_id, i;
|
||||
HYPRE_Int num_procs, my_id;
|
||||
HYPRE_Int pcols=1, prows=1;
|
||||
HYPRE_Int *rowptr = NULL;
|
||||
HYPRE_BigInt *big_rowptr = NULL;
|
||||
hypre_DSLUData *dslu_data = NULL;
|
||||
|
||||
@ -60,11 +59,15 @@ HYPRE_Int hypre_SLUDistSetup( HYPRE_Solver *solver, hypre_ParCSRMatrix *A, HYPRE
|
||||
num_rows = hypre_CSRMatrixNumRows(A_local);
|
||||
/* Now convert hypre matrix to a SuperMatrix */
|
||||
#ifdef HYPRE_MIXEDINT
|
||||
rowptr = hypre_CSRMatrixI(A_local);
|
||||
big_rowptr = hypre_CTAlloc(HYPRE_BigInt, (num_rows+1), HYPRE_MEMORY_HOST);
|
||||
for(i=0; i<(num_rows+1); i++)
|
||||
{
|
||||
big_rowptr[i] = (HYPRE_BigInt)rowptr[i];
|
||||
HYPRE_Int *rowptr = NULL;
|
||||
HYPRE_Int i;
|
||||
rowptr = hypre_CSRMatrixI(A_local);
|
||||
big_rowptr = hypre_CTAlloc(HYPRE_BigInt, (num_rows+1), HYPRE_MEMORY_HOST);
|
||||
for(i=0; i<(num_rows+1); i++)
|
||||
{
|
||||
big_rowptr[i] = (HYPRE_BigInt)rowptr[i];
|
||||
}
|
||||
}
|
||||
#else
|
||||
big_rowptr = hypre_CSRMatrixI(A_local);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user