From: young Date: Tue, 6 Mar 2012 09:51:35 +0000 (+0000) Subject: Update PETScWrappers for the next backward-compatibility failure... X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=13efdcc880f7242bc10338b84645dc5ddb37b64c;p=dealii-svn.git Update PETScWrappers for the next backward-compatibility failure... git-svn-id: https://svn.dealii.org/trunk@25212 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/source/lac/petsc_parallel_sparse_matrix.cc b/deal.II/source/lac/petsc_parallel_sparse_matrix.cc index 8c5838729c..9e83e7aa12 100644 --- a/deal.II/source/lac/petsc_parallel_sparse_matrix.cc +++ b/deal.II/source/lac/petsc_parallel_sparse_matrix.cc @@ -193,12 +193,21 @@ namespace PETScWrappers // use the call sequence indicating only // a maximal number of elements per row // for all rows globally +#ifdef DEAL_II_PETSC_VERSION_DEV + const int ierr + = MatCreateAIJ(communicator, + local_rows, local_columns, + m, n, + n_nonzero_per_row, 0, 0, 0, + &matrix); +#else const int ierr = MatCreateMPIAIJ(communicator, local_rows, local_columns, m, n, n_nonzero_per_row, 0, 0, 0, &matrix); +#endif AssertThrow (ierr == 0, ExcPETScError(ierr)); // set symmetric flag, if so requested @@ -234,7 +243,7 @@ namespace PETScWrappers // For the case that // local_columns is smaller // than one of the row lengths - // MatCreateMPIAIJ throws an + // MatCreate(MPI)AIJ throws an // error. In this case use a // PETScWrappers::SparseMatrix for (unsigned int i=0; i