Initialized some variables to prevent compiler warnings with the assumed partition.

This code is not yet correct, however.
This commit is contained in:
falgout 2012-09-28 16:01:52 +00:00
parent 0be5fa9306
commit 94784e09ca
2 changed files with 7 additions and 2 deletions

View File

@ -1740,8 +1740,11 @@ void hypre_ParCSRMatrixExtractSubmatrices(hypre_ParCSRMatrix *A_csr, HYPRE_Int *
nnz_offd = 0;
nnz_diag = nnz11;
#ifdef HYPRE_NO_GLOBAL_PARTITION
/* This case is not yet implemented! */
global_nrows = 0;
global_ncols = 0;
row_starts = NULL;
col_starts = NULL;
#else
global_nrows = proc_offsets1[nprocs];
global_ncols = proc_offsets1[nprocs];

View File

@ -948,6 +948,8 @@ hypre_ParVectorReadIJ( MPI_Comm comm,
{
hypre_fscanf(file, "%d", partitioning+i);
}
/* This is not yet implemented correctly! */
base_j = 0;
#else
partitioning = hypre_CTAlloc(HYPRE_Int,num_procs+1);