#endif
ISCreateGeneral (get_mpi_communicator(), 1, &petsc_row, &index_set);
- static const PetscScalar zero = 0;
#if (PETSC_VERSION_MAJOR <= 2) && (PETSC_VERSION_MINOR <= 2)
+ static const PetscScalar zero = 0;
const int ierr
= MatZeroRows(matrix, index_set, &zero);
#else
const int ierr
- = MatZeroRowsIS(matrix, index_set, &zero);
+ = MatZeroRowsIS(matrix, index_set, 0);
#endif
AssertThrow (ierr == 0, ExcPETScError(ierr));
ISCreateGeneral (get_mpi_communicator(), rows.size(),
&petsc_rows[0], &index_set);
- static const PetscScalar zero = 0;
#if (PETSC_VERSION_MAJOR <= 2) && (PETSC_VERSION_MINOR <= 2)
+ static const PetscScalar zero = 0;
const int ierr
= MatZeroRows(matrix, index_set, &zero);
#else
const int ierr
- = MatZeroRowsIS(matrix, index_set, &zero);
+ = MatZeroRowsIS(matrix, index_set, 0.);
#endif
AssertThrow (ierr == 0, ExcPETScError(ierr));