---
 src/numerics/petsc_matrix.C |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/src/numerics/petsc_matrix.C b/src/numerics/petsc_matrix.C
index 1fdc67b..5e36a97 100644
--- a/src/numerics/petsc_matrix.C
+++ b/src/numerics/petsc_matrix.C
@@ -198,10 +198,17 @@ void PetscMatrix<T>::zero_rows (std::vector<int> & rows, 
T diag_value)
 
   int ierr=0;
 
+#if PETSC_VERSION_RELEASE && PETSC_VERSION_LESS_THAN(3,1,1)
   if(!rows.empty())
     ierr = MatZeroRows(_mat, rows.size(), &rows[0], diag_value);
   else
     ierr = MatZeroRows(_mat, 0, PETSC_NULL, diag_value);
+#else
+  if(!rows.empty())
+    ierr = MatZeroRows(_mat, rows.size(), &rows[0], diag_value, PETSC_NULL, 
PETSC_NULL);
+  else
+    ierr = MatZeroRows(_mat, 0, PETSC_NULL, diag_value, PETSC_NULL, 
PETSC_NULL);
+#endif
 
   CHKERRABORT(libMesh::COMM_WORLD,ierr);
 }
-- 
1.7.4.1


------------------------------------------------------------------------------
Enable your software for Intel(R) Active Management Technology to meet the
growing manageability and security demands of your customers. Businesses
are taking advantage of Intel(R) vPro (TM) technology - will your software 
be a part of the solution? Download the Intel(R) Manageability Checker 
today! http://p.sf.net/sfu/intel-dev2devmar
_______________________________________________
Libmesh-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/libmesh-users

Reply via email to